disk_layout: Introduce modern disk layout template
At this point, everybody is inheriting from legacy_disk_layout.json,
and then creating board-specific overlays that bump up the kernel
partition and rootfs partition sizes. The legacy_disk_layout.json
file cannot really be changed, as changing partition layouts for
shipping boards will likely break updates.
Introduce a new scheme where the common templates can be updated
without affecting new boards. The expectation is that the common
templates should evolve slowly, given how long legacy_disk_layout.json
The v2 edition of the disk_layout file is a copy of
legacy_disk_layout.json, but with kernel partitions bumped up to 32MB,
EFI partitions bumped up to 64MB (since they hold 2 copies of the
kernel), and rootfs partitions bumped up to 4GB. It also removes some of
the obscure old padding, which was likely there to accommodate disk drive
peculiarities that no longer exist.
TEST=build_image --board=hatch (and kukui, cheza, kalista), and verify large partitions are aligned.
Commit-Ready: Evan Green <firstname.lastname@example.org>
Tested-by: Evan Green <email@example.com>
Reviewed-by: Stephen Boyd <firstname.lastname@example.org>
2 files changed