uboot-envtools: mvebu: update uci defaults for Turris Omnia
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / mvebu
index 8ed1f87ead4660438389858b1427cb5c250f9463..1d3b79b96226762e5896420de4c743985d141362 100644 (file)
@@ -15,7 +15,11 @@ board=$(board_name)
 
 case "$board" in
 cznic,turris-omnia)
-       ubootenv_add_uci_config "/dev/mtd0" "0xC0000" "0x10000" "0x40000"
+       if grep -q 'U-Boot 2015.10-rc2' /dev/mtd0; then
+               ubootenv_add_uci_config "/dev/mtd0" "0xc0000" "0x10000" "0x40000"
+       else
+               ubootenv_add_uci_config "/dev/mtd0" "0xf0000" "0x10000" "0x10000"
+       fi
        ;;
 glinet,gl-mv1000)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x8000" "0x8000" "1"