Edimax PS-1208mfg =>> dd-wrt-micro is working fine :)

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3, 4  Next
Author Message
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Wed Jan 06, 2010 18:06    Post subject: Edimax PS-1208mfg =>> dd-wrt-micro is working fine :) Reply with quote
Hello everyone :)

I have some good news about the Edimax ps-1208 mfg:

CPU: Broadcom BCM5354 KFBG rev3 at 240MHz (0x29029)
FLASH: MX29LV160CBTC (2MB BotB nor flash)
RAM: 32MB according to original kernel
Serial port
Jtag port
Lan: Broadcom BCM47xx 100/100 Mbps Ethernet Controller 4.130.25.0
Wlan: eth1: Broadcom BCM4318 802.11 Wireless Controller 4.130.28.0
USB 2.0 Host port (PCI ID: 14e4:471a)
Reset button, Lan, Wlan, Status LEDs

This device is actually bricked (CFE overwrited), but I can reflash new CFE with ejtag. I have modified pjtag to probe flash chip with byte mode addresses. My big problem is to find good CFE, for this device.

I have already some informations about the original CFE:

Boot partition size = 131072(0x20000) =>> 128k CFE ?
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Byte-mode configured Flash chip (pin 47 to GND)
Partitions by the original kernel:
0x00000000-0x00200000 : "boot"
0x00000000-0x001f0000 : "linux"
0x00000000-0x00200000 : "rootfs"
0x001f0000-0x00200000 : "nvram"

My question is: How can I find a good CFE for this device ?

I have already tried some CFEs (normal and 128K) with nvram customization or not, they doesn't boot...

To help in this research I attach some files with this post (modified pjtag with source code, original nvram parameters and orginal boot logs).

When I flash, backup and compare original with flashed image (md5sum), I obtain same hash, the flashing process is working well.

Thanks in advance for your help and sorry for eventual language errors (I'm French).



probeonly.txt
 Description:
./pjtag -probeonly

Download
 Filename:  probeonly.txt
 Filesize:  1.2 KB
 Downloaded:  762 Time(s)


nvram_edimax.txt
 Description:
Nvram config by edimax, dumped in the beginning

Download
 Filename:  nvram_edimax.txt
 Filesize:  771 Bytes
 Downloaded:  748 Time(s)


pjtag.zip
 Description:
Modified pjtag to probe byte mode flash (read/write already added by Palm)

Download
 Filename:  pjtag.zip
 Filesize:  49.1 KB
 Downloaded:  1138 Time(s)



Last edited by sebtx on Mon Jan 11, 2010 21:38; edited 2 times in total
Sponsor
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Wed Jan 06, 2010 18:11    Post subject: Reply with quote
Other file: boot messages from the original firmware


boot_msg.txt
 Description:
Original firmware boot messages

Download
 Filename:  boot_msg.txt
 Filesize:  6.69 KB
 Downloaded:  780 Time(s)

DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Wed Jan 06, 2010 18:14    Post subject: Reply with quote
I don't know for sure, but you have JTAG capabilities, I wonder if the CFE from a Linksys WRT54G2 v1.0 would work. Same Proc.
_________________
The New Me
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Wed Jan 06, 2010 21:37    Post subject: Reply with quote
hey hey :)

Some very good news:

Code:
Decompressing..........done                                           
                                                                             
                                                                             
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)                                 
Build Date: Mon Jan 28 10:52:32 CST 2008 (root@localhost.localdomain)         
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.                       
                                                                             
Initializing Arena                                                           
Initializing Devices.                                                         
Boot partition size = 131072(0x20000)                                         
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.31.0             
CPU type 0x29029: 240MHz                                                     
Total memory: 32768 KBytes                                                   
                                                                             
Total memory used by CFE:  0x80400000 - 0x80497FF0 (622576)                   
Initialized Data:          0x8042F370 - 0x80431830 (9408)                     
BSS Area:                  0x80431830 - 0x80431FF0 (1984)                     
Local Heap:                0x80431FF0 - 0x80495FF0 (409600)                   
Stack Area:                0x80495FF0 - 0x80497FF0 (8192)                     
Text (code) segment:       0x80400000 - 0x8042F370 (193392)                   
Boot area (physical):      0x00498000 - 0x004D8000                           
Relocation Factor:         I:00000000 - D:00000000                           
                                                                             
Device eth0:  hwaddr 90-E6-BA-5F-15-1F, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set                                   
Null Rescue Flag.                                                             
Invalid boot block on disk                                                   
Hello!! Enter Rescue Mode: (Check error)                                     
                                                                             
Reading :: TFTP Server.                                                       
Failed.: Timeout occured                                                     
Reading :: TFTP Server.                                                       
Failed.: Timeout occured                                                     
Reading :: TFTP Server.                                                       
Failed.: Timeout occured                                                     
Reading :: TFTP Server.                                                       
Failed.: Timeout occured                                                     
Reading :: TFTP Server.                                                       
Failed.: Timeout occured                                                     
Reading :: TFTP Server.                                                       
Failed.: Interrupted                                                         
CFE> nvram show                                                               
*** command status = 0     


This is with cfe from WL500GPV2, but this cfe doesn't work well, networking is bugged, I can't upload new firmware for now. But It runs a little, my print server is alive. I try with differents cfe. I will buy another print server to dump the original cfe and put it into cfe collection.
zanny
DD-WRT Novice


Joined: 29 May 2009
Posts: 3

PostPosted: Thu Jan 07, 2010 0:17    Post subject: Reply with quote
Sebtx,
I don't have a profound knowledge of the matter, but I have the same print server, in its original configuration, and I'll be glad to help if I can. So, in case it is possible to dump the original CFE without building a JTAG cable, just let me know how to do it.
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Thu Jan 07, 2010 18:05    Post subject: Reply with quote
Hello :)

Thanks for your proposition. I need original CFE because I can't recompile it, there is a compilation error.

To backup CFE you need to build serial or jtag cable, there is no other option...

CFE that is actually in my edimax can't provide arp and can't use correctly the ethernet. when I setup static arp entry and try to upload firmware I obtain:

Code:
Reading :: TFTP Server.
Failed.: Timeout occured
Reading :: TFTP Server.
BUF == NULL!!
BUF == NULL!!
BUF == NULL!!
break!! by max retry!!
Failed.: Timeout occured
Reading :: TFTP Server.
Failed.: Timeout occured


I can't even manipulate the nvram. I'll try to flash other CFE's and eventually re-contact Edimax to query the original CFE dump...

<dream>

The final goal is to run minimal system on flash, that detects an usb key and chroot into ext2 partition containing a debian-mips rootfs. With 32MB of RAM and 2GB rootfs on usb key with full r/w access, we can imagine a lot of usages.

</dream>
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Mon Jan 11, 2010 8:18    Post subject: Reply with quote
Finally, I have compiled CFE after making corrections into sourcecode, now I have to flash it and test...
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Mon Jan 11, 2010 20:17    Post subject: Reply with quote
I have flashed new CFE; now I can upload firmware but, dd-wrt-micro won't boot...

Code:
Decompressing..........done                                                     
                                                                               
                                                                               
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)                                   
Build Date: Thu Oct 30 03:08:49 EDT 2008 (tornado@dd-wrt.com)                   
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.                         
                                                                               
Initializing Arena                                                             
Initializing Devices.                                                           
Boot partition size = 131072(0x20000)                                           
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.5               
CPU type 0x29029: 240MHz                                                       
Total memory: 32768 KBytes                                                     
                                                                               
Total memory used by CFE:  0x80700000 - 0x807977D0 (620496)                     
Initialized Data:          0x8072E860 - 0x80730FB0 (10064)                     
BSS Area:                  0x80730FB0 - 0x807317D0 (2080)                       
Local Heap:                0x807317D0 - 0x807957D0 (409600)                     
Stack Area:                0x807957D0 - 0x807977D0 (8192)                       
Text (code) segment:       0x80700000 - 0x8072E860 (190560)                     
Boot area (physical):      0x00798000 - 0x007D8000                             
Relocation Factor:         I:00000000 - D:00000000                             
                                                                               
Device eth0:  hwaddr 00-1F-1F-1D-56-59, ipaddr 192.168.1.1, mask 255.255.255.0 
        gateway not set, nameserver not set                                     
Invalid boot block on disk                                                     
Reading :: Failed.: Timeout occured                                             
Reading :: Failed.: Interrupted                                                 
CFE>
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Mon Jan 11, 2010 20:53    Post subject: Reply with quote
How how how

Now with dd-wrt.v24_micro_generic.bin I have:

Code:
Decompressing..........done                                   
                                                                               
                                                                               
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)                                   
Build Date: Thu Oct 30 03:08:49 EDT 2008 (tornado@dd-wrt.com)                   
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.                         
                                                                               
Initializing Arena                                                             
Initializing Devices.                                                           
Boot partition size = 131072(0x20000)                                           
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.5               
CPU type 0x29029: 240MHz                                                       
Total memory: 32768 KBytes                                                     
                                                                               
Total memory used by CFE:  0x80700000 - 0x807977D0 (620496)                     
Initialized Data:          0x8072E860 - 0x80730FB0 (10064)                     
BSS Area:                  0x80730FB0 - 0x807317D0 (2080)                       
Local Heap:                0x807317D0 - 0x807957D0 (409600)                     
Stack Area:                0x807957D0 - 0x807977D0 (8192)                       
Text (code) segment:       0x80700000 - 0x8072E860 (190560)                     
Boot area (physical):      0x00798000 - 0x007D8000                             
Relocation Factor:         I:00000000 - D:00000000                             
                                                                               
Device eth0:  hwaddr 00-1F-1F-1D-56-59, ipaddr 192.168.1.1, mask 255.255.255.0 
        gateway not set, nameserver not set                                     
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)                         
Loading: Failed.                                                               
Could not load :: Timeout occured                                               
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)                       
Loading: .. 3740 bytes read                                                     
Entry at 0x80001000                                                             
Closing network.                                                               
Starting program at 0x80001000                                                 


but it's stop here...
sebtx
DD-WRT User


Joined: 04 May 2009
Posts: 53

PostPosted: Mon Jan 11, 2010 21:06    Post subject: Reply with quote
YEAHHHH dd-wrt is working fine !!!!!

DD-wrt is compatible with ps-1208mfg :)

In fact there is no kernel output log into my serial port, but when i go to http://192.168.1.1, I obtain this:



dd-wrt is working fine Smile

[/img]
clem-vangelis
DD-WRT Novice


Joined: 27 Mar 2010
Posts: 19

PostPosted: Sat Mar 27, 2010 16:30    Post subject: Reply with quote
Hi ! i have the same router and i solder on the serial port. After googling a little i found that login and password are edimax and software01 Smile then it works like i charm Smile.
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1848
Location: Canada

PostPosted: Sat Mar 27, 2010 17:16    Post subject: Reply with quote
I've been looking for a portable (small) wireless USB router to run DDwrt with G3 code to convert my Blackberry's USB Internet connection to a 2.4Ghz G-wireless signal.

The ps-1208mfg would be nice to use, but does the 2MB flash even have room for G3 USB support?

TIA.

_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r54517 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Sat Mar 27, 2010 22:55    Post subject: Reply with quote
mac913 wrote:
I've been looking for a portable (small) wireless USB router to run DDwrt with G3 code to convert my Blackberry's USB Internet connection to a 2.4Ghz G-wireless signal.

The ps-1208mfg would be nice to use, but does the 2MB flash even have room for G3 USB support?

TIA.


What is G3, and how are you planning on using your BlackBerry with a router?

The reason I ask is because I have a BlackBerry, a USB capable router, and am proficient at hacking linux...you have me interested.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
clem-vangelis
DD-WRT Novice


Joined: 27 Mar 2010
Posts: 19

PostPosted: Sun Mar 28, 2010 8:55    Post subject: Reply with quote
hey sebtx i tried to tftp dd-wrt-micro (v24 the .bin) but it doesn't want to boot...
it transfer the file and then doesn't want to boot :

CFE> go
Invalid boot block on disk
Reading :: Done. 1757184 bytes read
Programming...
offset=0done. 1757184 bytes written
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: . 0 bytes read
Failed.
Could not load flash0.os:: Error
*** command status = -1
CFE>

but my CFE is still working and the network too.

can you help me ?
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1848
Location: Canada

PostPosted: Sun Mar 28, 2010 16:20    Post subject: Reply with quote
autobot wrote:
mac913 wrote:
I've been looking for a portable (small) wireless USB router to run DDwrt with G3 code to convert my Blackberry's USB Internet connection to a 2.4Ghz G-wireless signal.

The ps-1208mfg would be nice to use, but does the 2MB flash even have room for G3 USB support?

TIA.


What is G3, and how are you planning on using your BlackBerry with a router?

The reason I ask is because I have a BlackBerry, a USB capable router, and am proficient at hacking linux...you have me interested.


Sorry I meant 3G like in this thread...
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=50531&highlight=blackberry
and
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=64043&highlight=777

Can you release a version for this unit?

TIA!

_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r54517 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
Goto page 1, 2, 3, 4  Next Display posts from previous:    Page 1 of 4
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum