Broadcom CFE backup

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 12:33, 7 January 2008 (edit)
S2s2 (Talk | contribs)
m (minor edit added winscp)
← Previous diff
Revision as of 17:34, 12 March 2008 (edit) (undo)
Sash (Talk | contribs)
m (How to backup your CFE)
Next diff →
Line 7: Line 7:
There are two methods to backup the CFE, as follows: There are two methods to backup the CFE, as follows:
 +
 +==by web interface==
 +this is working with dd-wrt post RC5 svn8428
 +backing up your cfe is easy, all you need to do is to point your browser to:
 +<pre>http://router_ip/backup/cfe.bin</pre>
 +
==by telnet/SSH== ==by telnet/SSH==
Line 26: Line 32:
this assumes you already have a JTAG cable ready to use on your router, use the following command: this assumes you already have a JTAG cable ready to use on your router, use the following command:
<pre>wrt54g -backup:cfe</pre> <pre>wrt54g -backup:cfe</pre>
- 
-==post RC5 svn8428== 
-backing up your cfe is easy, all you need to do is to point your browser to: 
-<pre>http://router_ip/backup/cfe.bin</pre> 

Revision as of 17:34, 12 March 2008


Contents

How to backup your CFE

So you're afraid you will ever need to use a backup of your CFE in case you brick your router sooner or later.

If you own a Linksys WRT54G/GL/GS and your CFE is already screwed, you could try the Skynet repairkit to make yourself a new CFE.

There are two methods to backup the CFE, as follows:

by web interface

this is working with dd-wrt post RC5 svn8428 backing up your cfe is easy, all you need to do is to point your browser to:

http://router_ip/backup/cfe.bin


by telnet/SSH

just enter the following command for all, except micro builds:

dd if=/dev/mtd/0 of=/tmp/cfe.bin

Then get the files with, for example using WinSCP, from the /tmp directory.


On micro builds it's little more tricky:

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

Then point your browser to http://routerip/user/cfe.jpg and do a "save page as" cfe.bin to your disk drive. The resulting file should be 256K in size for a cfe.bin file.

Note: "/user/cfe.jpg" points to "/tmp/www/cfe.jpg"


You could do the same for mtd/1 (kernel, firmware), mtd/2 (jffs part if any) and mtd/3 (nvram)

by JTAG

this assumes you already have a JTAG cable ready to use on your router, use the following command:

wrt54g -backup:cfe