GKI and recovery-as-boot support (finally)#48
Draft
JamiKettunen wants to merge 5 commits into
Draft
Conversation
…-ramdisk The script will look for /ramdisk-recovery.img in the root of ramdisk and assume device is A/B if it exists. Then, if bootloader does not put "skip_initramfs" or "androidboot.force_normal_boot=1" in cmdline, it triggers boot into recovery. Cherry-picked from Volla Phone 22 [1] with dropped unnecessary /sbin/init creation that also breaks creating the usual symlink and avoiding extra cat -> gzip pipeline. [1] https://gitlab.com/ubports/porting/reference-device-ports/android11/volla-phone-22/volla-mimameid/-/commit/882ee97b)
To be still tested on eMMC devices as well, works with UFS.
Various kernel features aren't built-in anymore and their modules are split to vendor_boot ramdisk fragment concatenated on runtime into our halium initrd. Cherry-picked from Volla Phone X23 [1] [1] https://gitlab.com/ubports/porting/reference-device-ports/halium12/volla-x23/volla-vidofnir/-/commit/b311b797
This is needed on Android 12+ (GKI 2.0) devices where androidboot values were moved to bootconfig and are no longer present on kernel cmdline.
GKI devices for example may require reboot-mode from modules.load.recovery etc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stuff like this has been overlayed across most newer Ubuntu Touch ports at this point (e.g. https://gitlab.com/ubports/porting/reference-device-ports/halium12/volla-x23/volla-vidofnir/-/commits/main/ramdisk-overlay), I think it's time to bring the relevant bits back upstream here so we can stop vendoring things so much at long last which also should ease the LVM enablement steps where relevant.
Drafting for now to check if we need anything more still here.