OpenWrt Forum Archive

Topic: Patching CFE with mac address

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Ok, from reading a bit, I know I need to patch the CFE bin file with the MAC address from the router sticker (if the cfe does not come from the same router).

I got my CFE bin file from http://downloads.openwrt.org/inh/cfe/ and the associated txt file.  In there, I changed "et0macaddr=" to my mac.  I'm not sure if I also need to change the "il0macaddr=", as the "sample" cfe file contains a different MAC in both il0 and et0 fields.  Ran nvserial, and jtagged the new cfe.

Doing this, I managed to debrick my wrt54gs.  But there is one thing I don't understand:  If I "dd if=/dev/mtdblock/0 bs=1 skip=4116 count=2048 | strings > /tmp/cfe.txt", I can see the mac I patched in the cfe.txt file, but I'm wondering why "nvram show |grep mac" shows different macs for et0 and il0...??

Any thoughts??

Anyone?

i directly edited mine with a binary editor and they are diff cause theres a wifi and a lan. also check to see if bootwait is on i know for the cfe i d\led it was not even thou it was marked boot wait on

(Last edited by Weedy on 18 Jul 2005, 19:43)

Weedy wrote:

i directly edited mine with a binary editor and they are diff cause theres a wifi and a lan. also check to see if bootwait is on i know for the cfe i d\led it was not even thou it was marked boot wait on

I guess I understand why they are different for wifi and wan, but why are they different between the bootloader and the nvram variables?

The discussion might have continued from here.