mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-31 18:38:10 +00:00
ipq50xx: Fix bootbank switching when firmware upgrade is triggered for Edgecore EAP104 and OAP101 series
Fixes: WIFI-14957 Signed-off-by: Tanya Singh <tanya_singh@accton.com>
This commit is contained in:
committed by
John Crispin
parent
a967d67af3
commit
de7dc7e01a
@@ -107,12 +107,25 @@ platform_do_upgrade() {
|
|||||||
|
|
||||||
board=$(board_name)
|
board=$(board_name)
|
||||||
case $board in
|
case $board in
|
||||||
glinet,b3000|\
|
|
||||||
edgecore,oap101|\
|
edgecore,oap101|\
|
||||||
edgecore,oap101-6e|\
|
edgecore,oap101-6e|\
|
||||||
edgecore,oap101e|\
|
edgecore,oap101e|\
|
||||||
edgecore,oap101e-6e|\
|
edgecore,oap101e-6e|\
|
||||||
edgecore,eap104)
|
edgecore,eap104)
|
||||||
|
if [ "$(find_mtd_chardev rootfs)" ]; then
|
||||||
|
CI_UBIPART="rootfs"
|
||||||
|
else
|
||||||
|
if grep -q rootfs1 /proc/cmdline; then
|
||||||
|
CI_UBIPART="rootfs2"
|
||||||
|
CI_FWSETENV="active 2"
|
||||||
|
else
|
||||||
|
CI_UBIPART="rootfs1"
|
||||||
|
CI_FWSETENV="active 1"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
nand_upgrade_tar "$1"
|
||||||
|
;;
|
||||||
|
glinet,b3000)
|
||||||
CI_UBIPART="rootfs1"
|
CI_UBIPART="rootfs1"
|
||||||
[ "$(find_mtd_chardev rootfs)" ] && CI_UBIPART="rootfs"
|
[ "$(find_mtd_chardev rootfs)" ] && CI_UBIPART="rootfs"
|
||||||
nand_upgrade_tar "$1"
|
nand_upgrade_tar "$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user