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)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 12 Oct 2022 05:48:01 +0000 (14:48 +0900)
commit1fa1a771efa5d4ced339b96972012b9928e01c84
tree503817f21d805b770226125c37361577b2a55d8d
parent2b3f7a866e8bf3bb2ef0d598a49bb25fc025b3d0
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
include/samsung/tizen_amlogic.h
tizen/build-amlogic.sh