OpenWrt Forum Archive

Topic: Can I make a .bin file from the contents of a pre-configured router?

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

I have WhiteRussion RC3 installed on a WRT54G v3.  I've then installed a few packages using ipkg.  Finally I've configured certain Nvram settings and some configuration files.  (Everything is running great -- thanks OpenWRT team!)

Is there a way to take the complete contents of this preconfigured router and make a .bin file from it?  (The idea is to then load this .bin into other routers.)

Thanks,
Bill

Sure, just run this command on the router:

dd if=/dev/mtdblock/1ro of=/tmp/backup.trx

This will save everything but the bootloader and the NVRAM. To include your custom NVRAM settings I would suggest to include your changes to NVRAM in the /etc/preinit file ...

Cheers, Max!

Is there a way to backup the nvram in such a fashion?  I would like to produce a single trx file with everything but the bootloader.  Possible?

-Duffin

The discussion might have continued from here.