Saturday, November 05, 2011

Upgrading the flash image of your OpenWRT device using the command line

The following steps allows you to upgrade the flash image of your OpenWRT device using the command line. This assumes that you are already running OpenWRT on your OpenWRT-compatible device.

This step is optional. Backup your current configuration.

scp -r root@192.168.1.1:/etc/config .

Log into your device.

ssh -l root 192.168.1.1

Download the latest image. Here we assume release 10.03.1-rc6 and brcm-2.4. Note the .trx extension.

cd /tmp
wget http://downloads.openwrt.org/backfire/10.03.1-rc6/brcm-2.4/openwrt-brcm-2.4-squashfs.trx

Write the downloaded image and reboot the device.

mtd -r write /tmp/openwrt-brcm-2.4-squashfs.trx

After the device reboots, access 192.168.1.1 with your web browser.

No comments: