Skip to content

special ramdisk img arrangement

99degree edited this page May 28, 2024 · 2 revisions

Developemnt is sticking with LOS 19 recovery img [4] with the resulting mainline kernel image.gz-dtb by fastboot.

Background

The idea is to unpack the recovery initrd img and fastboot with the compiled zImage.gz-dtb as result. In addition, The vendor bootloader capability of concat gz/tar img and also kernel gunzip handling will simplify the androidboot img as below, and boot script is provided later as named boot_joyeuse.sh by the time. The restriction is all postpending img must have same format, best is to united as cpio+gz format, if other format like los20 recovery img, best is to repack it as cpio+gz format for better compatibility.

State diagram of ANDROIDBOOT img structure

Generally speaking fastboot will combine all each those files "[]" by cmd "boot".

[ANDROID!][zImaage.gz-dtb][LOS recovery initrd.img.gz + firmware-mbn-tree.gz + bootconfig]

State diagram of ramdisk img

Execute bootconfig cmd binary from kernel build src will attach a bootconfig in the end of ramdisks.

[LOS recovery initrd.img.gz][firmware-mbn-tree.gz][bootconfig]

[4] https://download.lineageos.org/devices/miatoll/builds