GUI for editing CFE.bins? How to edit cfe.bin ?

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


Joined: 14 May 2007
Posts: 66

PostPosted: Sun Jun 14, 2009 20:55    Post subject: GUI for editing CFE.bins? How to edit cfe.bin ? Reply with quote
Is there an easy way of editing the CFE.bin's with your own mac addresses? I have a little time to day and I have (2) wrt54g v8's that are bricked. I have been searching for over 2 hours now with no answer of even a tutorial on how to edit a CFE.bin Sad

Could someone please help me in pointing me in the right direction or uploading the files. Thank you.
Sponsor
ak4d7
DD-WRT User


Joined: 12 May 2009
Posts: 90

PostPosted: Sun Jun 14, 2009 21:02    Post subject: Reply with quote
Why do you need to edit it with your mac address? I have a wrt54v8 that was bricked and I didn't edit the CFE with my mac address. It works fine.
drillbit
DD-WRT User


Joined: 14 May 2007
Posts: 66

PostPosted: Sun Jun 14, 2009 21:15    Post subject: Reply with quote
I got it bricked, from a kid that jtagged it and -erase:wholeflash 'ed it. So now I have downloaded a CFE.bin but need to edit it.
Murrkf
DD-WRT Guru


Joined: 22 Sep 2008
Posts: 12675

PostPosted: Sun Jun 14, 2009 22:19    Post subject: Reply with quote
You can do it with a hex editor. You just change the values for the ones that match your router. There should be three of them that are consecutive. Redhawk does this all the time. Barryware has also done it.
_________________
SIG:
I'm trying to teach you to fish, not give you a fish. If you just want a fish, wait for a fisherman who hands them out. I'm more of a fishing instructor.
LOM: "If you show that you have not bothered to read the forum announcements or to follow the advices in them then the level of help available for you will drop substantially, also known as Murrkf's law.."
barryware
DD-WRT Guru


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

PostPosted: Sun Jun 14, 2009 23:05    Post subject: Reply with quote
As Murrkf said.. Use a hex editor.. You will find the macs close to to top of the file. Check the offset at the left of the screen shot. Not at the top of the file, but near the top.

et0=xx.xx.xx.xx.xx.xx (et0=mac on your sticker).

il0=et0 +1.. So.. If et0=xx.xx.xx.xx.xx.06, il0=xx.xx.xx.xx.xx.07.

remember these are hex.. base 16 so xx~1d +1 = xx~1e.. get it? 1F + 1 = 20

_________________
[Moderator Deleted] Shocked
drillbit
DD-WRT User


Joined: 14 May 2007
Posts: 66

PostPosted: Mon Jun 15, 2009 1:16    Post subject: Reply with quote
barryware wrote:
As Murrkf said.. Use a hex editor.. You will find the macs close to to top of the file. Check the offset at the left of the screen shot. Not at the top of the file, but near the top.

et0=xx.xx.xx.xx.xx.xx (et0=mac on your sticker).

il0=et0 +1.. So.. If et0=xx.xx.xx.xx.xx.06, il0=xx.xx.xx.xx.xx.07.

remember these are hex.. base 16 so xx~1d +1 = xx~1e.. get it? 1F + 1 = 20


so in your example the mac address is 00:1D:7E:2E:65:FC
Right?
drillbit
DD-WRT User


Joined: 14 May 2007
Posts: 66

PostPosted: Mon Jun 15, 2009 14:14    Post subject: Reply with quote
anyone? did i read it right with the example posted above?
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Mon Jun 15, 2009 14:23    Post subject: Reply with quote
drillbit wrote:
e]

so in your example the mac address is 00:1D:7E:2E:65:FC
Right?


The mac address for il0 = 00:1D:7E:2E:65:FC
The mac address for et0 = 00:1D:7E:2E:65:FB

You should fill in both.

_________________
Kernel panic: Aiee, killing interrupt handler!
sumbuddie
DD-WRT User


Joined: 28 Mar 2009
Posts: 74

PostPosted: Mon Jun 15, 2009 15:10    Post subject: Reply with quote
The only other issue I had was that I had to make sure the checksum for the cfe was also correct with my WRT54G v5.

For that I used the imgtool_nvram.exe from Bitsum ( http://www.bitsum.com/openwiking/owbase/ow.asp?WRT54G5_CFE )

(actually, the imgtool_nvram.exe is quite useful for changing a variety of variable in the CFE)
Vaako
DD-WRT User


Joined: 10 Jun 2009
Posts: 364

PostPosted: Tue Jun 16, 2009 1:34    Post subject: Reply with quote
Hi sumbuddie,

I have read your awnser here above and was wondering if you sitl got this file:

imgtool_nvram.exe ????????

If you do, can you please please send it to me as i cant find it nowhere on the net and not at www.bitsum.com/.

Thanks in advance,
Vaako
mojso
DD-WRT User


Joined: 09 Sep 2007
Posts: 232
Location: Macedonia

PostPosted: Tue Jun 16, 2009 7:25    Post subject: Reply with quote
http://www.bitsum.com/files/imgtool_nvram.zip
Vaako
DD-WRT User


Joined: 10 Jun 2009
Posts: 364

PostPosted: Sun Jul 19, 2009 17:40    Post subject: Reply with quote
Thanks mojso Exclamation
_________________
Regards,
Vaako

1x Netgear R7800 Nighthawk - firmware not decided yet !!!!
1x Netgear R7000 Nighthawk r36410
1x Ubiquiti RouterStation Pro DD-WRT r23204 std (12/24/13)
1x Asus RT-N16 SVN revision 20675 NEWD-2 K2.6
1x Linksys E4200 v3.0 r34777 mega (01/31/18 )
1x Buffalo WZR-HP-G300NH B0 B0 Gargoyle FW
1x Linksys WRT600N v1.1 (Bricked)
1x Linksys WRT54GL v1.1 (DD-WRT 26446)
1x Linksys WRT54GS v2.2 (DD-WRT 26446)
1x Linksys RVS4000 (stock fw)
3x D-Link DWL-7100AP (openWRT)
2x TP-Link TL-WA801ND (Bridge mode) 100mW TX-Power
Asus WL-520GU SVN 16403M NEWD-2 Eko std-nokaid
4x Fonera with Gargoyle FW
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11563
Location: Wherever the wind blows- North America

PostPosted: Sun Jul 19, 2009 18:52    Post subject: Reply with quote
I don't think the imagetool_nvram works on the newer model CFEs...but I could be wrong.

the V8 CFE only needs one address changed....et0macaddr

All others are generated by the FW from this one address....you will find the il0macaddr to be a generic one that is the same from one unit to the next.

This is only valid info for the V8 unit.

Just get XVI32 hex editor...its easy to use...just make sure you have it set to overwrite the data as you type so you don't add additional bytes to the CFE....edit just locations for et0macaddr (somewhere around 10C0h)...the CFE must remain exactly 262,144 bytes (256K)


redhawk

_________________
The only stupid question....is the unasked one.
mrdude
DD-WRT User


Joined: 04 Nov 2008
Posts: 58

PostPosted: Sun Jul 19, 2009 19:36    Post subject: Reply with quote
I have edited the cfe for a wrt350n v1 a few times - here are the offsets:

serial - offset 3fe32
mac - offset 1e00

Laters..
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