tizen: enable support for formatting MBR partition layout during flashing
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 26 Nov 2020 14:32:03 +0000 (15:32 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 16 Nov 2021 10:04:04 +0000 (11:04 +0100)
commitcdcad2e6fc8145a5e1b6f9059979ffa0cd1c506d
tree0eaca7a641487692abc925c95b2946fa86707b67
parenta8c87cbec2f9c4012f1a1640254a56644f44a06c
tizen: enable support for formatting MBR partition layout during flashing

This is ensured by the following steps:
1. enable 'mbr' command and provide default partiton layout,
2. add support for formating block device from THOR downloaded script,
3. check MBR partition layout on boot and enter THOR mode if invalid
4. provide a script for formating MBR for THOR download

MBR partition layout is checked on boot if it mathes the one defined
during u-boot compilation. If not, set dfu_alt_info to the minimal safe
list and enter THOR download mode to flash the new, proper partition
layout and the complete Tizen image.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I490e5b3314513012259f3981feae047f95649c3b
configs/khadas-vim3_defconfig
configs/khadas-vim3l_defconfig
configs/odroid-c4_defconfig
configs/odroid-n2_defconfig
include/samsung/tizen_amlogic.h
tizen/build-amlogic.sh