WARNING: Before upgrading, you should backup the system first!!!
Disclaimer: This is just my experience. It is not guarantee the steps listed will work on your system.
Openwrt upgrade on x86 can be very tricky in the old days. However, it becomes an easy task starting from attitude adjustment (12.09) and onward.
The following lists the steps to upgrade to the latest snapshot (barrier breaker). You should change the image to be downloaded in step 4 for the desired version.
- Do a full system backup to avoid any lost. This is very import!!!
- login the system as root
- cd /tmp
- wget http://downloads.openwrt.org/snapshots/trunk/x86/openwrt-x86-generic-combined-ext4.img.gz
- sysupgrade -v /tmp/openwrt-x86-generic-combined-ext4.img.gz
Update: 2017-11-21 The below procedures also work in LEDE 17.01.4
Want to add a openwrt machine in hyper-v for testing? Sadly, the openwrt did not include the hyper-v device driver for the network device.
(Un)luckily there is a legacy network driver in hyper-v that can be used in openwrt.
Steps to add openwrt machine inside hyper-v:
- In hyper-v, add a machine with 64-128MB ram, legacy network device.
- Copy the openwrt image to the virtual hard disk.
- Mount the virtual hard disk (mount /dev/sda2 /mnt) and copy the tulip driver to the hard disk.
- Boot the openwrt machine.
- Inside the openwrt machine, add the tulip driver (cd /; opkg install kmod-tulip_3.3.8-1_x86.ipk)
- ifconfig -a to check the name of the network device.
- Modify /etc/config/network as usual and restart the network (or reboot).