netgear wnr3500lu-v2 - is the mac addr in cfe?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
ghoffman
DD-WRT User


Joined: 03 Jan 2010
Posts: 453

PostPosted: Tue Mar 29, 2011 16:11    Post subject: netgear wnr3500lu-v2 - is the mac addr in cfe? Reply with quote
i've got the above router, want to change the hard-coded mac address.
currently do it by firmware option that sets nvram, but want to change it permanantly.
looking at cfe, there's a default netgear mac address (that's the same in a cfe from wnr834) - but i can't find the actuall mac address that the router is burned with.
(i searched the whole cfe in hex and ascii for the strings)
any thoughts?

do i use the 'burnethermac 001122334455' command?
how does this work for the lan, wan, and radio macs?
thank in advance...
Sponsor
barryware
DD-WRT Guru


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

PostPosted: Tue Mar 29, 2011 18:25    Post subject: Reply with quote
I have no hands on with that router but typically netgear units have one or more partitions on the flash chip that contain the data. It is not stored in nvram, the cfe, or kernel.

I'm sure there is a data dump and boot log posted somewhere here on the forum. The boot log will tell you the name, location, and size of the partition.

_________________
[Moderator Deleted] Shocked
ghoffman
DD-WRT User


Joined: 03 Jan 2010
Posts: 453

PostPosted: Wed Mar 30, 2011 3:35    Post subject: Reply with quote
thank you very much.
using telnet: i looked in /proc/mtd and found:
dev: size erasesize name
mtd0: 00040000 00010000 "pmon"
mtd1: 00750000 00010000 "linux"
mtd2: 005dc000 00010000 "rootfs"
mtd3: 00080000 00010000 "jffs2"
mtd4: 00010000 00010000 "nvram"
mtd5: 00010000 00010000 "board_data"

then i:
dd if=/dev/mtd5 of=mtd5.bin

then i editted mtd5.bin (by ssh),
and wrote it back (by telnet):
dd of=/dev/mtd5 if=mtd5.bin

and rebooted.
however, when i re-read the mtd5 partiton, it was not the same data that i had written with dd.
and the mac addr's were the same.

but:
when i also changed all the nvram mac addr's to correspond to the board_data mac addr's, it 'took'.

so -
there is some complex (too complex for me to fully explain right now) interaction between the mtd4 and mtd5 partition.

anyway - i was able tochange the default mac addrs - thank you again!
hopefully the above procedure will help someone else.
Display posts from previous:    Page 1 of 1
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