Add "fastboot-bootpart" flasher to flash split images using Fastboot
asus-me176c has a Fastboot interface that can be used for flashing, but in postmarketOS we do not use Android boot images for it. This is because is it not very practical - the boot partition is quite small and there is a (custom) EFI bootloader that can boot directly from any other FAT32 partition.
At the moment the installation process is manual:
- pmbootstrap install --split to have separated boot (FAT32) and rootfs images
- pmbootstrap export
- Flash boot and rootfs images manually using Fastboot
The "fastboot-bootpart" flasher implements that process in a more convenient way. When a device uses the "fastboot-bootpart" flasher:
- We generate --split images on "pmbootstrap install" by default. (This can be disabled using --no-split instead.)
- pmbootstrap flasher flash_kernel flashes the raw boot partition (not an Android boot image) using Fastboot, just like the rootfs.
There are some limitations that could be improved in the future:
-
"fastboot-bootpart" is not offered in the device wizard. I think it is special enough that no-one will be starting with it, and the difference to normal "fastboot" might be confusing.
-
Support "pmbootstrap flasher boot". asus-me176c does not support "fastboot boot" properly, but theoretically we could still generate Android boot images to use when booting an image directly.
-
At the moment the boot partition image is not regenerated when using "pmbootstrap flasher flash_kernel" (unlike when using Android boot images). "pmbootstrap install" needs to be run manually first.
I think @Mis012 was eventually interested in using something like this together with his "re-boot" bootloader for MSM8916.
Merge request reports
Activity
Please update the deviceinfo reference after this is merged. Thanks again!
By Oliver Smith on 2020-02-07T19:15:02
added 7 commits
-
12a78d67...6540c25a - 5 commits from branch
postmarketOS:master
- 0426bcf5 - pmb.config: Fix formatting for flash methods (!1871 (merged))
- 98897ea0 - add "fastboot-bootpart" flasher to flash split images with fastboot (!1871 (merged))
By Alexey Min on 2020-02-09T20:58:47
-
12a78d67...6540c25a - 5 commits from branch
added 3 commits
-
fbdc68c3 - 1 commit from branch
postmarketOS:master
- ba1e39f4 - pmb.config: Fix formatting for flash methods (!1871 (merged))
- 87dd071b - add "fastboot-bootpart" flasher to flash split images with fastboot (!1871 (merged))
By Alexey Min on 2020-02-09T21:05:08
-
fbdc68c3 - 1 commit from branch
mentioned in commit 87dd071b
By Minecrell on 2020-02-10T19:19:50
mentioned in commit ba1e39f4
By Minecrell on 2020-02-10T19:19:50