Author
Message
imix7 DD-WRT Novice Joined: 17 Apr 2007 Posts: 44
Posted: Tue Mar 10, 2009 18:31 Post subject: Flashing a CFE to the router without jtag?
hi,
i was wondering if it would be possible to flash the cfe without jtag? cuz, i jtaged mine with the same cfe without changing the MAC. since i'm using it on the same network, i'm haveing a conflict.
please let me know.
thanks
Back to top
Sponsor
barryware DD-WRT Guru Joined: 26 Jan 2008 Posts: 13049 Location: Behind The Reset Button
Posted: Tue Mar 10, 2009 18:41 Post subject:
Not possible. You can change yur mac via telnet or the admin, command tab.
The macs will stick unless you do a hard reset. A reboot or a power cycle will not change the macs back to the wrong ones.
If you do a hard reset, then you will have to run the commands again.
Or.. My favorite, edit the macs in the cfe with a hex editor and jtag it back into the router. _________________[Moderator Deleted]
Back to top
redhawk0 DD-WRT Guru Joined: 04 Jan 2007 Posts: 11564 Location: Wherever the wind blows- North America
Posted: Tue Mar 10, 2009 18:49 Post subject:
There is one other option...it involves the Serial terminal.
If you have serial cable (with +3.3V capability) AND a linux box running tftp server you can do it. (otherwise, JTAG is the best option)
To flash it using Serial port
At the CFE prompt (CFE> )
CFE> flash -noheader 192.168.1.X:cfe.bin flash1.boot
where 192.168.1.X is your linux box address.
This will only work if the CFE is working currently....for those that stumble onto this thread.....
YOU CAN NOT FLASH THE CFE IF YOU DON'T HAVE A WORKING CFE ALREADY ON THE UNIT.
Since you have a working CFE ...just with the wrong MAC address this should work fine.
redhawk _________________ The only stupid question....is the unasked one.
Back to top
Donny DD-WRT Guru Joined: 13 Nov 2008 Posts: 5266 Location: CENTRAL Midnowhere
Back to top
soulstace DD-WRT Guru Joined: 04 Aug 2007 Posts: 6427
Back to top
RolF DD-WRT User Joined: 28 Sep 2007 Posts: 349 Location: CCCP
Posted: Tue Mar 10, 2009 23:22 Post subject:
yes, tested and working on wl-500gp :
Code: mtd unlock cfe
mtd write -f /tmp/cfe_new.bin cfe
_________________ WL-500gP (@300MHz 128Mb RAM + USB_HDD)
WHR-HP-G54 (64 Mb RAM + SD )
Back to top
redhawk0 DD-WRT Guru Joined: 04 Jan 2007 Posts: 11564 Location: Wherever the wind blows- North America
Posted: Tue Mar 10, 2009 23:24 Post subject:
I learn something new everyday....thanx for this information soulstace and RolF
redhawk _________________ The only stupid question....is the unasked one.
Back to top
soulstace DD-WRT Guru Joined: 04 Aug 2007 Posts: 6427
Posted: Tue Mar 10, 2009 23:28 Post subject:
thanks RolF, it is interesting to see that it worked
Back to top
RolF DD-WRT User Joined: 28 Sep 2007 Posts: 349 Location: CCCP
Posted: Tue Mar 10, 2009 23:34 Post subject:
soulstace wrote: thanks RolF, it is interesting to see that it worked
that's why i asked in earler posts why dd-wrt kernel is compiled with writable cfe patrition :)
R. _________________ WL-500gP (@300MHz 128Mb RAM + USB_HDD)
WHR-HP-G54 (64 Mb RAM + SD )
Back to top
soulstace DD-WRT Guru Joined: 04 Aug 2007 Posts: 6427
Posted: Tue Mar 10, 2009 23:36 Post subject:
it's a good question.
seems risky but useful at the same time.
maybe so routers like the ones that run vxworks can be reverted.
Back to top
barryware DD-WRT Guru Joined: 26 Jan 2008 Posts: 13049 Location: Behind The Reset Button
Posted: Tue Mar 10, 2009 23:38 Post subject:
So I'm clear...
You have to have a working cfe on the unit so it will accept the commands... Yes?
If your router is fubar, can't ping, lan lights all lit, you still need jtag right?
The op just wants to change his macs so if the router has a working cfe, he could use the procedure. _________________[Moderator Deleted]
Back to top
RolF DD-WRT User Joined: 28 Sep 2007 Posts: 349 Location: CCCP
Posted: Tue Mar 10, 2009 23:40 Post subject:
@soulstace
yes, i got exactly same answer from redhawk0 earler , but we always can hawe simple "service" build for this purposes and all other "normal" builds with protected cfe :)
R. _________________ WL-500gP (@300MHz 128Mb RAM + USB_HDD)
WHR-HP-G54 (64 Mb RAM + SD )
Back to top
redhawk0 DD-WRT Guru Joined: 04 Jan 2007 Posts: 11564 Location: Wherever the wind blows- North America
Posted: Tue Mar 10, 2009 23:43 Post subject:
barryware wrote: So I'm clear...
You have to have a working cfe on the unit so it will accept the commands... Yes?
If your router is fubar, can't ping, lan lights all lit, you still need jtag right?
The op just wants to change his macs so if the router has a working cfe, he could use the procedure.
Yes...must be a working CFE to get this to work.
The OP just has a few undesireable variables...they can be changed then dumped back on using this method.
JTAG otherwise.
redhawk _________________ The only stupid question....is the unasked one.
Back to top
imix7 DD-WRT Novice Joined: 17 Apr 2007 Posts: 44
Posted: Thu Mar 12, 2009 13:04 Post subject:
thanks guys... i tried it and it worked. i've got one more question. how do i edit the MAC address in the cfe? i tired to search for the MAC using hex edit, but i couldn't find it. thanks again.
Back to top
redhawk0 DD-WRT Guru Joined: 04 Jan 2007 Posts: 11564 Location: Wherever the wind blows- North America
Posted: Thu Mar 12, 2009 13:08 Post subject:
imix7 wrote: thanks guys... i tried it and it worked. i've got one more question. how do i edit the MAC address in the cfe? i tired to search for the MAC using hex edit, but i couldn't find it. thanks again.
All CFEs are a little different. You never said what router it is.
If you send me your CFE and your MAC address in a PM...I'll embed it for you.
redhawk _________________ The only stupid question....is the unasked one.
Back to top