Update OpenWrt Firmware

Note

OpenWrt is currently only available for the NitroWall NW678

We recommend updating OpenWrt via the pre-installed Attended Sysupgrade. To be able to use this service you need to configure it to ignore the “nitrowall” package, if it has been installed before:

  1. Go to System -> Attended Sysupgrade -> Configuration and enable the Advanced Mode -> Save & Apply

    ../../_images/openwrt_upgrade1.png
  2. Go back to overview and search for available updates

    ../../_images/openwrt_upgrade2.png
  3. Search through the list of installed packages and remove the “nitrowall” package. Then Request Firmware Image

    ../../_images/openwrt_upgrade4.png
  4. Wait for the image to be build. Then install it. Check if “keep settings and current configuration” is set

    ../../_images/openwrt_upgrade5.png
  5. The software will be installed and the NitroWall will restart.

  6. After the restart we need to reinstall the nitrowall.ipk package. This will resize your disk and add the kernel parameter pcie_aspm=off to your /boot/grub/grub.cfg which fixes a problem with the igb driver bug.

  7. Under System -> Software -> Upload Package, upload the package

    ../../_images/openwrt_installnw2.png ../../_images/openwrt_installnw1.png
  8. Install it. Afterwards the NitroWall will restart.

    ../../_images/openwrt_installnw3.png
  9. Update OpenWrt via Attended Sysupgrade.

Alternatively to the above instructions, you can login via ssh and execute this script:

#!/bin/sh
BOOT="$(sed -n -e "/\s\/boot\s.*$/{s///p;q}" /etc/mtab)"
DISK="${BOOT%%[0-9]*}"
PART="$((${BOOT##*[^0-9]}+1))"
ROOT="${DISK}${PART}"
echo "INFO: resize partion ${ROOT}"
parted -s -a opt ${DISK} "resizepart ${PART} 100%"
LOOP="$(losetup -f)"
losetup ${LOOP} ${ROOT}
echo "INFO: resize filesytem ${ROOT}"
fsck.ext4 -y -f ${LOOP}
resize2fs ${LOOP}
echo "INFO: add pcie_aspm=off as boot parameter"
sed -i s/rootwait/rootwait\ pcie_aspm=off/g /boot/grub/grub.cfg
reboot