mvebu: update and refactor uDPU DTS
[openwrt/staging/dedeckeh.git] / package / boot / uboot-envtools / files / mvebu
index cffd396ae1b489d1903a1175e8c9f768debeaaed..a90f74c517d6609a1d66f96c7c1fd09ff65547d3 100644 (file)
@@ -59,7 +59,12 @@ linksys,wrt32x)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
        ;;
 methode,udpu)
+       idx="$(find_mtd_index u-boot-env)"
+       if [ -n "$idx" ]; then
+       ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000" "1"
+       else
        ubootenv_add_uci_config "/dev/mtd0" "0x180000" "0x10000" "0x10000"
+       fi
        ;;
 esac