lantiq: handle the dual-firmware layout of brnboot
author blogic
()
committer blogic
()
commit d84623b834701205c3cc349c4d0d2972b7281107
tree b872591d4387ab0e97b6b0db315960c00ec20b1a
parent b029664b31e9029163c595f1784e2004374911f8
lantiq: handle the dual-firmware layout of brnboot

brnboot based devices can have two Image partitions. When flashing
images via the brnboot recovery web interface, the Image partitions are
written alternating.

The current active Image partition is stored in the first byte of the
Primary_Setting partition by using 0x00 for Code_Image_0 and 0x01 for
Code_Image_1.

By using the information about the active "Code Image", it is possible
to ensure that the rootfs belongs to the current booted Image/Kernel.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49281 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/lantiq/patches-4.4/0101-find_active_root.patch [ new file with mode 0644 ]
comments