Netgear WNDR4500 info with INTERNAL PICS + CFE DUMP

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Sat Dec 31, 2011 2:36    Post subject: Netgear WNDR4500 info with INTERNAL PICS + CFE DUMP Reply with quote
Ok finally got time to get information on the WNDR4500

The unit is held together with 6 S10 HEX screws to a plastic mount face.

The router has 2 seperate radios for each band with built in signal amplifier technology. They are Broadcom BCM4331. I have taken pictures of all aspects of this device and will post them later..

The CPU and main interface board has direct surface heat sinks, this baby is well protected against heat. It uses rayspan antenna's for 2.4 and 5.8ghz band.

http://www.rayspan.com/solutions/access-points.htm

The powersupply is 12Volts at 5amps... Holy cow!!! This explains how the router can handle the amplifier circuits on board.. Netgear even boasts on the front of the box about it having hi-power amplifiers built in.

This router has a 16M Flash rom with 128M of onboard memory. CPU is impressive 600mhz

The pictures will explain it in much better detail, this is really terrific for a netgear router.

-Fractal

Uploaded at Picoodle.com

Uploaded at Picoodle.com

Uploaded at Picoodle.com

Uploaded at Picoodle.com

Uploaded at Picoodle.com


Last edited by Fractal on Mon Jan 02, 2012 17:28; edited 4 times in total
Sponsor
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Sat Dec 31, 2011 17:15    Post subject: Reply with quote
now here is the more important dump information from the file system.

-Fractal

Code:
# cat ./proc/cpuinfo
system type             : Broadcom BCM5300 chip rev 1
processor               : 0
cpu model               : MIPS 74K V4.9
BogoMIPS                : 299.82
wait instruction        : no
microsecond timers      : yes
tlb_entries             : 64
extra interrupt vector  : no
hardware watchpoint     : yes
ASEs implemented        : mips16 dsp
VCED exceptions         : not available
VCEI exceptions         : not available

unaligned_instructions  : 216
dcache hits             : 2147483648
dcache misses           : 2147482730
icache hits             : 2147483648
icache misses           : 2358811890
instructions            : 2147483648
___________________________________________________

# cat ./proc/meminfo
MemTotal:       125976 kB
MemFree:         83932 kB
Buffers:          4348 kB
Cached:          14672 kB
SwapCached:          0 kB
Active:          10204 kB
Inactive:        13680 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       125976 kB
LowFree:         83932 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:        4876 kB
Mapped:           3516 kB
Slab:            12924 kB
SReclaimable:     5088 kB
SUnreclaim:       7836 kB
PageTables:        400 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:     62988 kB
Committed_AS:    10432 kB
VmallocTotal:  1015800 kB
VmallocUsed:      4524 kB
VmallocChunk:  1009408 kB

__________________________________________________
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00200000 00010000 "boot"
mtd1: 00140000 00010000 "linux"
mtd2: 00200000 00010000 "rootfs"
mtd3: 00010000 00010000 "ML1"
mtd4: 00010000 00010000 "ML2"
mtd5: 00010000 00010000 "ML3"
mtd6: 00010000 00010000 "ML4"
mtd7: 00010000 00010000 "ML5"
mtd8: 00010000 00010000 "ML6"
mtd9: 00010000 00010000 "ML7"
mtd10: 00010000 00010000 "T_Meter1"
mtd11: 00010000 00010000 "T_Meter2"
mtd12: 00010000 00010000 "POT"
mtd13: 00010000 00010000 "board_data"
mtd14: 00010000 00010000 "nvram"
mtd15: 02000000 00020000 "kernel"
mtd16: 01ebe588 00020000 "rootfs"
mtd17: 05f00000 00020000 "brcmnand"
_________________________________________________
# cat modules
NetUSB 215440 0 - Live 0xc0211000 (P)
usb_storage 41648 0 - Live 0xc0099000
ohci_hcd 23088 0 - Live 0xc0061000
MultiSsidCntl 3712 0 - Live 0xc0022000 (P)
acos_nat 463840 0 - Live 0xc0159000 (P)
ehci_hcd 43264 0 - Live 0xc007c000
usbcore 148944 5 NetUSB,usb_storage,ohci_hcd,ehci_hcd, Live 0xc00b1000
wl 2761248 0 - Live 0xc039a000 (P)
et 61616 0 - Live 0xc006b000 (P)
ipv6_spi 43520 0 - Live 0xc0027000 (P)
igs 20848 1 wl, Live 0xc0015000 (P)
emf 23520 2 wl,igs, Live 0xc0000000 (P)
ctf 14752 0 - Live 0xc0007000 (P)

____________________________________________________
# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / squashfs ro 0 0
devfs /dev tmpfs rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
ramfs /tmp ramfs rw 0 0
usbdeffs /proc/bus/usb usbfs rw 0 0

# wl ver
5.100 RC121.0
wl0: Aug 25 2011 17:35:36 version 5.100.138.903

Busybox v1.72 <2011-08-26 14:06:26 CST>

#cat /proc/version

Linux version 2.6.22 (root@localhost.localdomain) (gcc version 4.2.3) #196 Fri Aug 26 14:05:41 CST 2011

# routerinfo

Release version : Netgear Wireless Router WNDR4500
U12H189T00/V1.0.0.58/1.0.13
Time : Aug 26 2011 14:06:57
CFE version : v1.0.3




Last edited by Fractal on Mon Jan 02, 2012 16:38; edited 1 time in total
mrengles
DD-WRT User


Joined: 25 Feb 2010
Posts: 255

PostPosted: Sun Jan 01, 2012 13:46    Post subject: Reply with quote
Thanks! Fractal
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Mon Jan 02, 2012 16:30    Post subject: Reply with quote
That should be it,

However if we need the CFE dumped I will have to mount opt with static dd binary compiled as stock firmware does not come with dd...

I am excited to contribute to the project,

-Fractal
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Mon Jan 02, 2012 16:43    Post subject: Reply with quote
Fractal wrote:
However if we need the CFE dumped I will have to mount opt with static dd binary compiled as stock firmware does not come with dd...

-Fractal

Eko wrote:
I usually dump the mtd parts to /tmp folder as jpg, like

cat /dev/mtd/0 > /tmp/cfe.jpg

then kill httpd and start it on /tmp, like

httpd -h /tmp or httpd -d /tmp

then simply point your browser to

192.168.1.1/cfe.jpg and save it as cfe.bin

same for other mtd parts

Worked more or less on every router so far. Smile


Eko wrote:
barryware wrote:
Eko wrote:
no... from running firmware


how would those commands be issued to stock, running firmware?


You need serial console, then when the router is up, press "Enter" few times, usually you get into Busybox, then you have all the commands.

If you press "tab" few times, you'll get list of all commands then.

_________________
[Moderator Deleted] Shocked
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Mon Jan 02, 2012 16:52    Post subject: Reply with quote
barryware wrote:
Fractal wrote:
However if we need the CFE dumped I will have to mount opt with static dd binary compiled as stock firmware does not come with dd...

-Fractal

Eko wrote:
I usually dump the mtd parts to /tmp folder as jpg, like

cat /dev/mtd/0 > /tmp/cfe.jpg

then kill httpd and start it on /tmp, like

httpd -h /tmp or httpd -d /tmp

then simply point your browser to

192.168.1.1/cfe.jpg and save it as cfe.bin

same for other mtd parts

Worked more or less on every router so far. Smile


Eko wrote:
barryware wrote:
Eko wrote:
no... from running firmware


how would those commands be issued to stock, running firmware?


You need serial console, then when the router is up, press "Enter" few times, usually you get into Busybox, then you have all the commands.

If you press "tab" few times, you'll get list of all commands then.


Barry, you my friend are the man!, I didnt think about dumping that cfe that way, I was going to put dd on... looks like cfe getting dumped a little earlier..

I am definatly excited to see dd-wrt on this router.

-Fractal
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Mon Jan 02, 2012 16:58    Post subject: Reply with quote
I couldn't get it to work on the 3200 because the cfe was buried very deep in the file structure.

I dumped the cfe to a usb stick. Stock firmware mounted the usb stick.. Then I just used the cat/dev command to send the cfe partition to the usb stick.

Up until the 3200, I always used the cfe's save command to grab the wholeflash, then take the wholeflash apart but linksys stripped out the command from the cfe. You need a tftp server running to do it that way.

CFE> ifconfig eth0 -addr=192.168.254.140 -mask=255.255.255.0 -gw=192.168.254.100

Device eth0: hwaddr 00-21-29-C3-34-B9, ipaddr 192.168.254.140, mask 255.255.255.0
gateway 192.168.254.100, nameserver not set
*** command status = 0

CFE> save 192.168.254.100:wholeflash.bin bc000000 400000

4194304 bytes written to 192.168.254.100:wholeflash.bin
*** command status = 0
CFE>

_________________
[Moderator Deleted] Shocked
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Mon Jan 02, 2012 17:27    Post subject: CFE & NVRAM Dumped Reply with quote
below is the CFE and NVRAM dumped from the WNDR4500 FS.

-Fractal



nvram.bin
 Description:

Download
 Filename:  nvram.bin
 Filesize:  64 KB
 Downloaded:  1789 Time(s)


cfe.bin
 Description:

Download
 Filename:  cfe.bin
 Filesize:  2 MB
 Downloaded:  1835 Time(s)

Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Mon Jan 02, 2012 17:36    Post subject: Reply with quote
barryware wrote:
I couldn't get it to work on the 3200 because the cfe was buried very deep in the file structure.

I dumped the cfe to a usb stick. Stock firmware mounted the usb stick.. Then I just used the cat/dev command to send the cfe partition to the usb stick.

Up until the 3200, I always used the cfe's save command to grab the wholeflash, then take the wholeflash apart but linksys stripped out the command from the cfe. You need a tftp server running to do it that way.

CFE> ifconfig eth0 -addr=192.168.254.140 -mask=255.255.255.0 -gw=192.168.254.100

Device eth0: hwaddr 00-21-29-C3-34-B9, ipaddr 192.168.254.140, mask 255.255.255.0
gateway 192.168.254.100, nameserver not set
*** command status = 0

CFE> save 192.168.254.100:wholeflash.bin bc000000 400000

4194304 bytes written to 192.168.254.100:wholeflash.bin
*** command status = 0
CFE>


Your method worked like a charm, however httpd wouldnt start on /tmp so I did the same thing and installed a tftp server on my desktop and moved the nvram and cfe to it... I created a ticket incase the devs are not checking this thread

http://svn.dd-wrt.com:8000/ticket/2348#ticket

I appreciate your help.

-Fractal
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Mon Jan 02, 2012 17:36    Post subject: Reply with quote
A CFE dump can be used for getting default nvram variables like board version and board nummber, this is helpful for Eko when asking him to support a router which has minor difference from an already supported router.

The WNDR4500 is not something that can be supported with the help of a cfe/nvram var dump, WNDR4500 needs lots of new platform support files because of the cpu and because it is the first router with 2 flash chips whereof one is a nand flash.
Eko is working on it on the donated 4500 and has extracted all the mtd partitions including the cfe so he is not helped by a cfe dump.

_________________
Kernel panic: Aiee, killing interrupt handler!
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Mon Jan 02, 2012 17:38    Post subject: Reply with quote
LOM wrote:
A CFE dump can be used for getting default nvram variables like board version and board nummber, this is helpful for Eko when asking him to support a router which has minor difference from an already supported router.

The WNDR4500 is not something that can be supported with the help of a cfe/nvram var dump, WNDR4500 needs lots of new platform support files because of the cpu and because it is the first router with 2 flash chips whereof one is a nand flash.
Eko is working on it on the donated 4500 and has extracted all the mtd partitions including the cfe so he is not helped by a cfe dump.


Bummer, thanks for the quick reply, I will remove the ticket... the good news is this router is allready running 2.6 kernel so the filesystem objects are there..

-Fractal
mrengles
DD-WRT User


Joined: 25 Feb 2010
Posts: 255

PostPosted: Mon Jan 02, 2012 23:50    Post subject: Reply with quote
LOM wrote:
A CFE dump can be used for getting default nvram variables like board version and board nummber, this is helpful for Eko when asking him to support a router which has minor difference from an already supported router.

The WNDR4500 is not something that can be supported with the help of a cfe/nvram var dump, WNDR4500 needs lots of new platform support files because of the cpu and because it is the first router with 2 flash chips whereof one is a nand flash.
Eko is working on it on the donated 4500 and has extracted all the mtd partitions including the cfe so he is not helped by a cfe dump.


What can help besides Eko having more free time to develope? I'd love to see this router supported.
mrengles
DD-WRT User


Joined: 25 Feb 2010
Posts: 255

PostPosted: Thu Jan 05, 2012 17:13    Post subject: Reply with quote
What's the radios default TX Power?

Fractal can you post the default nvram settings as legible plain text?

Thanks in advanced!

-mrengles
ZeDestructor
DD-WRT Novice


Joined: 30 Oct 2011
Posts: 23

PostPosted: Thu Jan 19, 2012 10:37    Post subject: Reply with quote
Pinouts from my beta Unit. Seems I don't have the power amps on the wireless (explains my reduced range compared to retail users) and less shielding as well as soldered in ports:



RED = Serial port
GREEN = most likely JTAG for core CPU
BLUE = most likely JTAG for the two BCM4331 radios

NOTE: JTAG is a guess from the 10-pin layout and PCB traces.

EDIT: "PCB traces", not "soldering traces"
ddggttff3
DD-WRT User


Joined: 06 Mar 2009
Posts: 107
Location: MinneSOTA!

PostPosted: Tue Jun 04, 2013 0:43    Post subject: Reply with quote
Any ideas on how to use that JTAG port? I have a 100% bricked WNDR4500v1 in front of me. When given power, all the LAN lights are dim. No flashing, ping, or activity of any kind, not even through UART. Seems I somehow wiped the CFE...
_________________
My Hardware:
1x WNDR3300 - 14853 NEWD C/AP Mini-HotSpot-Kaid
1x WRT54G2 - 13577 NEWD RB Micro
1x WRT310N - TomatoUSB Dev Test Build 9-22-10
1x RT-N16 - TomatoUSB SVN Build 9-13-10
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   This topic is locked: you cannot edit posts or make replies.    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