Before upgrade, save the list of installed packages:

  • opkg list-installed > /etc/config/packages.installed

Download upgrade:

  • wget -O /tmp/upgrade.tar http://downloads.openwrt.org/snapshots/trunk/mvebu/generic/openwrt-mvebu-armada-xp-linksys-mamba-squashfs-sysupgrade.tar

Upgrade:

  • sysupgrade -v /tmp/upgrade.tar

After upgrade, these steps update the opkg packages and reinstall the packages from the saved packages list.

  • opkg update
  • opkg install $( cut -f 1 -d ' ' < /etc/config/packages.installed )

Find the conflicted opkg config files, and remove them if desired (command not shown):

  • cd /
  • find | grep -e -opkg\$

Steps taken from http://techfindings.one/archives/1696