[openwrt/openwrt] apm821xx: fixes WNDAP620 + WNDAP660 sysupgrade failures
LEDE Commits
lede-commits at lists.infradead.org
Sun Jan 12 12:52:31 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/93bcec7b6c4a372b21790d21dfc29c562a25ff4f
commit 93bcec7b6c4a372b21790d21dfc29c562a25ff4f
Author: Christian Lamparter <chunkeey at gmail.com>
AuthorDate: Sat Jan 4 19:51:48 2025 +0100
apm821xx: fixes WNDAP620 + WNDAP660 sysupgrade failures
OpenWRT on the WNDAP6x0 refuses to sysupgrade to itself
due to a compat_version imbalance. The Image is generated
with version 2.0, but the uci-defaults says that it needs
to be at 3.0 for the device.
Fix this by downgrading WNDAP6x0 05_fix-compat-version's
values back to 2.0 so it matches what we use.
Fixes: 5815884c3a2a ("apm821xx: migrate to DSA")
Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
(cherry picked from commit e9415be4ad3cacbbd6e65fee5213baf3eaf9e07a)
---
.../apm821xx/base-files/etc/uci-defaults/05_fix-compat-version | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/target/linux/apm821xx/base-files/etc/uci-defaults/05_fix-compat-version b/target/linux/apm821xx/base-files/etc/uci-defaults/05_fix-compat-version
index 00d3954e5f..11af63c9e7 100644
--- a/target/linux/apm821xx/base-files/etc/uci-defaults/05_fix-compat-version
+++ b/target/linux/apm821xx/base-files/etc/uci-defaults/05_fix-compat-version
@@ -2,12 +2,15 @@
case "$(board_name)" in
meraki,mx60|\
-netgear,wndap620|\
-netgear,wndap660|\
netgear,wndr4700)
uci set system. at system[0].compat_version="3.0"
uci commit system
;;
+netgear,wndap620|\
+netgear,wndap660)
+ uci set system. at system[0].compat_version="2.0"
+ uci commit system
+ ;;
esac
exit 0
More information about the lede-commits
mailing list