Skip to content

Commit

Permalink
ramips: force ZyXEL NR7101 to boot from "Kernel" partition
Browse files Browse the repository at this point in the history
Make sure BootingFlag points to the system partition we install to.

The BootingFlag variable selects which system partition the system
boots from (0 => "Kernel", 1 => "Kernel2"). OpenWrt does not yet have
device specific support for this dual image scheme, and can therefore
only boot from "Kernel".

This has not been an issue until now, since all known OEM firmware
versions have ignored "Kernel2" - leaving the BootingFlag fixed at 0.
But the newest OEM firmware has a new upgrade procedure, installing
to the "inactive" system partition and setting BootingFlag accordingly.

This workaround is needed until the dual image scheme is fully
supported.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
  • Loading branch information
bmork authored and chunkeey committed Jun 24, 2022
1 parent a1ad837 commit 79112e7
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -114,6 +114,7 @@ platform_do_upgrade() {
zyxel,nr7101)
fw_setenv CheckBypass 0
fw_setenv Image1Stable 0
[ "$(fw_printenv -n BootingFlag)" = "0" ] || fw_setenv BootingFlag 0
CI_KERNPART="Kernel"
nand_do_upgrade "$1"
;;
Expand Down

0 comments on commit 79112e7

Please sign in to comment.