From 330eead63234032b567b75b08d85e052db5041dc Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 12 Oct 2021 18:25:57 +0200 Subject: [PATCH] ipq40xx: improve SPW2AC1200 sysupgrade with this fix it does not matter if the unit is in primary or secondary boot mode. Signed-off-by: John Crispin --- patches/0036-ipq4018-add-EdgeCore-SPW2AC1200-support.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/0036-ipq4018-add-EdgeCore-SPW2AC1200-support.patch b/patches/0036-ipq4018-add-EdgeCore-SPW2AC1200-support.patch index a5c56ec5d..6fa826260 100644 --- a/patches/0036-ipq4018-add-EdgeCore-SPW2AC1200-support.patch +++ b/patches/0036-ipq4018-add-EdgeCore-SPW2AC1200-support.patch @@ -1,4 +1,4 @@ -From 68f7dfa638c8b453706c49cb18c1548870eee65c Mon Sep 17 00:00:00 2001 +From 4d1fff5847b7550e185a87b230529cab68d21967 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 4 Sep 2021 06:15:19 +0200 Subject: [PATCH 01/11] ipq4018: add EdgeCore SPW2AC1200 support @@ -73,7 +73,7 @@ index c8943d3ba3..ad2946f636 100644 engenius,eap1300 |\ engenius,eap2200 |\ diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh -index cbdd12c750..1e8a2ef0e1 100644 +index cbdd12c750..62742f0697 100644 --- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh @@ -77,6 +77,7 @@ platform_do_upgrade() { @@ -89,7 +89,7 @@ index cbdd12c750..1e8a2ef0e1 100644 nand_do_upgrade "$1" ;; + edgecore,spw2ac1200) -+ CI_UBIPART="rootfs1" ++ CI_UBIPART="$(awk -F 'ubi.mtd=' '{printf $2}' /proc/cmdline | sed -e 's/ .*$//')" + nand_do_upgrade "$1" + ;; asus,map-ac2200)