Skip to content

Support ChromeOS partition table and kernel partition

jenneron requested to merge jenneron/pmbootstrap:chromeos into master

Stock bootloader on these devices boots kernel (it is intended to boot kernel, but i place secondary bootloader there) from special ChromeOS kernel partition on special GPT which is created with cgpt utility. This MR adds initial support for it introducing new deviceinfo options:

  • cgpt_kpart - path to file to be flashed to ChromeOS partition;
  • cgpt_kpart_start - offset from the start in sectors;
  • cgpt_kpart_size - partition size in sectors.

For example:


cgpt requires start and size values of partition, so these values are calculated for each partition.

Reserved size and on-device installer are not yet supported.

pmbootstrap install --sdcard=/dev/something works fine, but when doing pmbootstrap export and then dd it to SD card, root partition is not resized on boot. It should be solved in initfs, not pmbootstrap, so it's not in this MR.


Edited by jenneron

Merge request reports