Skip to content

Commit

Permalink
WIFI-14404: Enable dual boot support on EAP105 and certificate loadin…
Browse files Browse the repository at this point in the history
…g on dual boot for EAP104 and OAP101 series

Signed-off-by: Tanya Singh <[email protected]>
  • Loading branch information
tanyasingh-ec committed Feb 4, 2025
1 parent 8b5a449 commit 66e28d9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
13 changes: 13 additions & 0 deletions feeds/qca/ipq53xx/base-files/etc/init.d/bootcount
Original file line number Diff line number Diff line change
@@ -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
}
11 changes: 11 additions & 0 deletions feeds/qca/ipq53xx/base-files/lib/upgrade/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions feeds/tip/certificates/files/usr/bin/mount_certs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66e28d9

Please sign in to comment.