[openwrt/openwrt] mvebu: Fix sysupgrade for GL.iNet GL-MV1000

LEDE Commits lede-commits at lists.infradead.org
Sun Apr 18 13:15:19 BST 2021


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/f965235bb5b74bbfc9f048223716c123669688e3

commit f965235bb5b74bbfc9f048223716c123669688e3
Author: Sven Eckelmann <sven at narfation.org>
AuthorDate: Thu Mar 25 13:26:15 2021 +0100

    mvebu: Fix sysupgrade for GL.iNet GL-MV1000
    
    The GL.iNet GL-MV1000 is booting from eMMC and the images for it are in
    theory sysupgrade compatible. But the platform upgrade scripts were not
    adjusted to select the mmcblock device as upgrade target. This resulted in
    a failed sysupgrade because the mtd device (NOR flash) was instead tried to
    be modified by the sysupgrade script.
    
    Fixes: 050c24f05c85 ("mvebu: add support for GL.iNet GL-MV1000")
    Signed-off-by: Sven Eckelmann <sven at narfation.org>
    (cherry picked from commit 07e5e03711d55f94db738446ef9eddc8163b53a6)
---
 target/linux/mvebu/cortexa53/base-files/lib/upgrade/platform.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/linux/mvebu/cortexa53/base-files/lib/upgrade/platform.sh b/target/linux/mvebu/cortexa53/base-files/lib/upgrade/platform.sh
index 1153fd8f38..d78f4e884a 100755
--- a/target/linux/mvebu/cortexa53/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mvebu/cortexa53/base-files/lib/upgrade/platform.sh
@@ -9,6 +9,7 @@ REQUIRE_IMAGE_METADATA=1
 
 platform_check_image() {
 	case "$(board_name)" in
+	glinet,gl-mv1000|\
 	globalscale,espressobin|\
 	globalscale,espressobin-emmc|\
 	globalscale,espressobin-ultra|\
@@ -24,6 +25,7 @@ platform_check_image() {
 
 platform_do_upgrade() {
 	case "$(board_name)" in
+	glinet,gl-mv1000|\
 	globalscale,espressobin|\
 	globalscale,espressobin-emmc|\
 	globalscale,espressobin-ultra|\
@@ -41,6 +43,7 @@ platform_do_upgrade() {
 }
 platform_copy_config() {
 	case "$(board_name)" in
+	glinet,gl-mv1000|\
 	globalscale,espressobin|\
 	globalscale,espressobin-emmc|\
 	globalscale,espressobin-ultra|\



More information about the lede-commits mailing list