lantiq: handle the dual-firmware layout of brnboot
authorJohn Crispin <john@openwrt.org>
Mon, 2 May 2016 18:50:23 +0000 (18:50 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 2 May 2016 18:50:23 +0000 (18:50 +0000)
commitedd7ffcb8853dc9e1dd4bcb87824c76f5935d963
treef731bcbb74f9f49f8ad977afb4d57419b9d14d32
parentccf3cadcfc4aa496f381093c266c37a7429db803
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>
SVN-Revision: 49281
target/linux/lantiq/patches-4.4/0101-find_active_root.patch [new file with mode: 0644]