]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
layerscape: armv8_64b: traverse ten64-mtd fix ASU support 22359/head
authorMario Andrés Pérez <mapb_@outlook.com>
Tue, 10 Mar 2026 19:21:33 +0000 (20:21 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 16 Apr 2026 18:38:51 +0000 (20:38 +0200)
The profiles.json[1] in generated and used during ASU sysupgrades takes
DEVICE_NAME as profile name which break ASU sysupgrades, use BOARD_NAME
which serves the same goal as overwriting DEVICE_NAME, allowing
sysupgrade-tar's checks be succesfully passed using the old name used in
older installations. Without affecting the generated profiles.json, thus
recovering ASU support.

*Keep the non-stardand device name with suffix "-mtd"(replaced underscore
by hyphen) to remark that this device is also supported in the armsr
(armvirt) target as originally intented[2].
*I think I have fully checked the sysupgrade path to confirm this change
does not have side effects.

[1]: https://downloads.openwrt.org/releases/25.12.0/targets/layerscape/armv8_64b/profiles.json
[2]: https://github.com/openwrt/openwrt/pull/12828
Fixes: af0546da3440dba24217949527e503820350ff05 ("layerscape: armv8_64b: add Traverse Ten64 NAND variant")
Fixes: https://github.com/openwrt/asu/issues/1583
Reported-by: DanaGoyette (github)
Co-developed-by: Eric Fahlgren <ericfahlgren@gmail.com>
Signed-off-by: Mario Andrés Pérez <mapb_@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22359
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/layerscape/image/armv8_64b.mk

index 6c486e73fab2959144b80fd61c07829ba0fcefc7..81b7e86c11a309ea6580a17334eeb95c173e28d2 100644 (file)
@@ -375,10 +375,10 @@ define Device/fsl_lx2160a-rdb-sdboot
 endef
 TARGET_DEVICES += fsl_lx2160a-rdb-sdboot
 
-define Device/traverse_ten64_mtd
+define Device/traverse_ten64-mtd
   DEVICE_VENDOR := Traverse
   DEVICE_MODEL := Ten64 (NAND boot)
-  DEVICE_NAME := ten64-mtd
+  BOARD_NAME := ten64-mtd
   DEVICE_PACKAGES += \
     uboot-envtools \
     kmod-rtc-rx8025 \
@@ -404,5 +404,5 @@ define Device/traverse_ten64_mtd
   MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 600
   SUPPORTED_DEVICES = traverse,ten64
 endef
-TARGET_DEVICES += traverse_ten64_mtd
+TARGET_DEVICES += traverse_ten64-mtd