WIFI-14404: Enable dual boot support on EAP105 and certificate loading on dual boot for EAP104 and OAP101 series

Signed-off-by: Tanya Singh <tanya_singh@accton.com>
This commit is contained in:
Tanya Singh
2025-02-06 08:22:35 +01:00
committed by John Crispin
parent 7544c1921b
commit b77e80cf14
3 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/sh /etc/rc.common
START=99
boot() {
case "$(board_name)" in
edgecore,eap105)
avail=$(fw_printenv -n upgrade_available)
[ ${avail} -eq 0 ] && fw_setenv upgrade_available 1
fw_setenv bootcount 0
;;
esac
}

View File

@@ -27,6 +27,17 @@ platform_do_upgrade() {
nand_upgrade_tar "$1"
;;
edgecore,eap105)
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"
;;
esac

View File

@@ -44,9 +44,14 @@ actiontec,web7200)
edgecore,ecw5211|\
edgecore,eap101|\
edgecore,eap102|\
edgecore,oap104|\
edgecore,eap104|\
edgecore,eap105|\
edgecore,eap111|\
edgecore,eap112)
edgecore,eap112|\
edgecore,oap101|\
edgecore,oap101e|\
edgecore,oap101-6e|\
edgecore,oap101e-6e)
if grep -q rootfs1 /proc/cmdline; then
PART_NAME=rootfs2
else