ath79: add support for OpenMesh OM2P-HS v2
[openwrt/staging/hauke.git] / target / linux / ath79 / generic / base-files / lib / upgrade / platform.sh
index 83c4e78d25c131fd92233339c0963180061b2150..73c328173a9a79ebdbaf0d68349784082fb33725 100644 (file)
@@ -5,6 +5,9 @@
 PART_NAME=firmware
 REQUIRE_IMAGE_METADATA=1
 
+RAMFS_COPY_BIN='fw_printenv fw_setenv'
+RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
+
 redboot_fis_do_upgrade() {
        local append
        local sysup_file="$1"
@@ -45,14 +48,23 @@ platform_do_upgrade() {
                redboot_fis_do_upgrade "$1" vmlinux_2
                ;;
        jjplus,ja76pf2)
-               echo "Sysupgrade disabled due bug FS#2428"
+               redboot_fis_do_upgrade "$1" linux
+               ;;
+       openmesh,om2p-v4|\
+       openmesh,om2p-hs-v1|\
+       openmesh,om2p-hs-v2|\
+       openmesh,om2p-hs-v4)
+               PART_NAME="inactive"
+               platform_do_upgrade_openmesh "$1"
+               ;;
+       plasmacloud,pa300|\
+       plasmacloud,pa300e)
+               PART_NAME="inactive"
+               platform_do_upgrade_dualboot_datachk "$1"
                ;;
        ubnt,routerstation|\
        ubnt,routerstation-pro)
-               echo "Sysupgrade disabled due bug FS#2428"
-               ;;
-       zyxel,nbg6716)
-               nand_do_upgrade "$1"
+               redboot_fis_do_upgrade "$1" kernel
                ;;
        *)
                default_do_upgrade "$1"