mvebu: fix regression for non-generic ESPRESSObin versions
authorVladimir Vid <vladimir.vid@sartura.hr>
Fri, 7 Jun 2019 13:50:50 +0000 (15:50 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 18 Jun 2019 14:13:10 +0000 (16:13 +0200)
When targets for multiple ESPRESSObin devices were added, not all
files were updated which means any ESPRESSObin version beside generic
won't have proper networking, sysupgrade and uboot-env. This patch
fixes the issue.

* fixup network detection
* fixup uboot-env
* fixup platform.sh for sysupgrade

Signed-off-by: Vladimir Vid <vladimir.vid@sartura.hr>
package/boot/uboot-envtools/files/mvebu
target/linux/mvebu/base-files/etc/board.d/02_network
target/linux/mvebu/base-files/lib/upgrade/platform.sh

index cd8789c0e90892480ee247c59d020d3a24fe4e81..c2e746d959c9c219962dd6a5dd1d00a0c0d89829 100644 (file)
@@ -18,6 +18,9 @@ cznic,turris-omnia)
        ubootenv_add_uci_config "/dev/mtd0" "0xC0000" "0x10000" "0x40000"
        ;;
 globalscale,espressobin|\
+globalscale,espressobin-emmc|\
+globalscale,espressobin-v7|\
+globalscale,espressobin-v7-emmc|\
 marvell,armada8040-mcbin)
        ubootenv_add_uci_config "/dev/mtd0" "0x3f0000" "0x10000" "0x10000" "1"
        ;;
index f099a078b254d824f655c5c472cf9a33609c1c95..08819104d2a1bebe0a7e74af63aec51138a68d80 100755 (executable)
@@ -15,7 +15,10 @@ cznic,turris-omnia)
        ucidef_set_interface_lan "lan0 lan1 lan2 lan3 lan4"
        ucidef_set_interface_wan "eth2"
        ;;
-globalscale,espressobin)
+globalscale,espressobin|\
+globalscale,espressobin-emmc|\
+globalscale,espressobin-v7|\
+globalscale,espressobin-v7-emmc)
        ucidef_set_interfaces_lan_wan "lan0 lan1" "wan"
        ;;
 linksys,caiman|\
index c3c31ea06fb69beed2d026f9f6ed5c8e9227f9a1..a7d5f451c51424261d0c37225e1e33c82becddc4 100755 (executable)
@@ -23,7 +23,8 @@ platform_do_upgrade() {
        linksys,caiman|linksys,cobra|linksys,mamba|linksys,rango|linksys,shelby|linksys,venom)
                platform_do_upgrade_linksys "$ARGV"
                ;;
-       cznic,turris-omnia|globalscale,espressobin|marvell,armada8040-mcbin|solidrun,clearfog-base-a1|solidrun,clearfog-pro-a1)
+       cznic,turris-omnia|globalscale,espressobin|globalscale,espressobin-emmc|globalscale,espressobin-v7|globalscale,espressobin-v7-emmc|\
+       marvell,armada8040-mcbin|solidrun,clearfog-base-a1|solidrun,clearfog-pro-a1)
                platform_do_upgrade_sdcard "$ARGV"
                ;;
        *)