[openwrt/openwrt] imx: cortexa53: add 'gateworks,imx8m*' to sysupgrade board checks

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 16 07:47:55 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ee73d35fbe0f18bfd0f710008de369236a220510

commit ee73d35fbe0f18bfd0f710008de369236a220510
Author: Tim Harvey <tharvey at gateworks.com>
AuthorDate: Thu Feb 13 10:36:09 2025 -0800

    imx: cortexa53: add 'gateworks,imx8m*' to sysupgrade board checks
    
    The upstream device-tree files are now using 'gateworks' instead of 'gw'
    for compatible. Add this pattern so that the newer boards support
    sysupgrade.
    
    Signed-off-by: Tim Harvey <tharvey at gateworks.com>
    Link: https://github.com/openwrt/openwrt/pull/17964
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/imx/cortexa53/base-files/lib/upgrade/platform.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/linux/imx/cortexa53/base-files/lib/upgrade/platform.sh b/target/linux/imx/cortexa53/base-files/lib/upgrade/platform.sh
index c59a69421a..f97b55f789 100755
--- a/target/linux/imx/cortexa53/base-files/lib/upgrade/platform.sh
+++ b/target/linux/imx/cortexa53/base-files/lib/upgrade/platform.sh
@@ -12,6 +12,7 @@ platform_check_image() {
 	local board=$(board_name)
 
 	case "$board" in
+	gateworks,imx8m*|\
 	gw,imx8m*)
 		return 0
 		;;
@@ -25,6 +26,7 @@ platform_do_upgrade() {
 	local board=$(board_name)
 
 	case "$board" in
+	gateworks,imx8m*|\
 	gw,imx8m*)
 		export_bootdevice && export_partdevice diskdev 0 || {
 			echo "Unable to find root device."
@@ -41,6 +43,7 @@ platform_copy_config() {
 	local partdev
 
 	case "$board" in
+	gateworks,imx8m*|\
 	gw,imx8m*)
 		export_partdevice partdev 1 && {
 			v "Storing $UPGRADE_BACKUP on /dev/$partdev..."




More information about the lede-commits mailing list