poky/scripts/lib/wic
Joshua Watt 93388921ab wic: Add gpt-hybrid partition layout
Add support for formatting a disk with a hybrid MBR & GPT partition
scheme. In this scheme, the primary partitioning method is GPT, but a
valid MBR header is also written than can point to a subset of the GPT
partitions on the disk (any partitions marked with the `--mbr` flag will
be included in this MBR). The primary purpose of this method is to allow
for SoCs that can only find a bootloader in an MBR partition to use GPT
once the bootloader is running. As an example, older versions of the
Raspberry Pi firmware can only parse MBR partitions to find a kernel (or
other bootloader like u-boot), but once those have booted GPT partitions
can be used.

In addition to the partitions annotated with the `--mbr`, a "protective"
GPT partition of type 0xEE is added, as the existence of such a
partition is the indication to tooling that this a hybrid MBR and that
the GPT partition table should be parsed instead.

(From OE-Core rev: e50e4c2a5ada6947b3503ca4d8e9c30d359e8a5d)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-09-02 11:47:50 +01:00
..
canned-wks base: add support for loongarch64 2023-02-04 17:02:10 +00:00
plugins wic: Add gpt-hybrid partition layout 2023-09-02 11:47:50 +01:00
__init__.py wic: python2 -> python3 2019-06-30 22:40:52 +01:00
engine.py wic: use shutil.which 2021-11-21 11:05:02 +00:00
filemap.py filemap.py: enforce maximum of 4kb block size 2023-03-27 15:44:02 +01:00
help.py wic: added fspassno parameter to partition 2022-05-16 23:19:18 +01:00
ksparser.py wic: Add gpt-hybrid partition layout 2023-09-02 11:47:50 +01:00
misc.py wic: add target tools to PATH when executing native commands 2022-08-02 11:29:59 +01:00
partition.py wic: Add gpt-hybrid partition layout 2023-09-02 11:47:50 +01:00
pluginbase.py scripts: Update to use exec_module() instead of load_module() 2022-01-05 17:18:16 +00:00