]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mvebu: fix Turris MOX update
authorŠtěpán Dalecký <daleckystepan@gmail.com>
Fri, 5 Jun 2026 14:02:09 +0000 (16:02 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Jun 2026 21:11:41 +0000 (23:11 +0200)
Turris MOX still upgrades from a legacy SD card image rather than
using the default sysupgrade path for cortexa53 devices.

Route image validation, upgrade handling and config backup through
the legacy_sdcard helpers so sysupgrade writes the correct image
format and preserves settings.

Signed-off-by: Štěpán Dalecký <daleckystepan@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23666
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mvebu/cortexa53/base-files/lib/upgrade/platform.sh

index 8b8149c96b24432fef8f7097e92a3bab5cabd2aa..e62e72ba55dcf2ccf3c04fb0ec820feec644068d 100755 (executable)
@@ -43,6 +43,7 @@ methode_update_active_bootscript() {
 
 platform_check_image() {
        case "$(board_name)" in
+       cznic,turris-mox|\
        glinet,gl-mv1000|\
        globalscale,espressobin|\
        globalscale,espressobin-emmc|\
@@ -59,6 +60,7 @@ platform_check_image() {
 
 platform_do_upgrade() {
        case "$(board_name)" in
+       cznic,turris-mox|\
        glinet,gl-mv1000|\
        globalscale,espressobin|\
        globalscale,espressobin-emmc|\
@@ -117,6 +119,7 @@ platform_do_upgrade() {
 }
 platform_copy_config() {
        case "$(board_name)" in
+       cznic,turris-mox|\
        glinet,gl-mv1000|\
        globalscale,espressobin|\
        globalscale,espressobin-emmc|\