Cloning OpenWRT
I use OpenWRT on Linksys WRT54GL as a firewall. I would like to have the ability to fully clone the system. Reading the docs, it looks like the following should work:
- Backup the existing OpenWRT firmware (note whether it is White Russian or
dd if=/dev/mtdblock/1 of=/tmp/backup20080704.trx scp backup20080704.trx pp:/mirror/firewall/ - Flash the WRT54GL with a “blank” firmware image, using instructions at OpenWrtDocs/Installing,
- The upload the firmware image, and reflash from within OpenWRT
mtd -r write firmware.trx linux - Or: try using TFTP (this might not work, because it needs the .bin file, not the .trx generated in Step 1)
I’ll see if this works.
6 comments
Lars ·
Lars ·
Lars ·
For NVRAM, this should be used (for a complete clone - but I’m not going to try it now):
dd if=/tmp/wrt-nvram.bin of=/dev/mtdblock/3From http://wiki.openwrt.org/BackupAndRestore#head-defee89a7e78ef2e853df32c8b8009edbfd8821b
Lars ·
Lars ·
For Kamikaze, the following should create a flashable image:
dd if=/dev/mtdblock1 of=/tmp/backup20080704.trxLars ·
mtd -r write backup20080704.trx linuxComments are closed.