mvebu: fix default partition name
authorBoris Krasnovskiy <borkra@gmail.com>
Sat, 12 Oct 2024 23:57:16 +0000 (19:57 -0400)
committerRobert Marko <robimarko@gmail.com>
Sun, 13 Oct 2024 12:18:21 +0000 (14:18 +0200)
The firmware partition name is specifc to ipTIME NAS1dual and should not be
set globally.

Fixes: #16148
Fixes: 6ff970bb51f5 ("mvebu: add support for ipTIME NAS1dual")
Signed-off-by: Boris Krasnovskiy <borkra@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16690
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh

index 049f8eeb8c8528f50c71996c1c64efb0f234cdd8..e2a82fe87c347df3df7dda5e78e72160e243bed2 100755 (executable)
@@ -6,7 +6,6 @@
 RAMFS_COPY_BIN='fw_printenv fw_setenv seq strings'
 RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
 
-PART_NAME=firmware
 REQUIRE_IMAGE_METADATA=1
 
 platform_check_image() {
@@ -74,6 +73,10 @@ platform_do_upgrade() {
                esac
                default_do_upgrade "$1"
                ;;
+       iptime,nas1dual)
+               PART_NAME=firmware
+               ;;
+
        linksys,wrt1200ac|\
        linksys,wrt1900ac-v1|\
        linksys,wrt1900ac-v2|\