<div dir="ltr"><div>I just today merged[1] initial support for android boot in the sample images. This is still somewhat experimental, but allows some level of support for aboot. <br></div><div><br></div><div>The support has multiple parts:</div><div>* The abootimg rpm has an app that can create aboot images.</div><div>* The aboot-update rpm has integration between the kernel and aboot. It looks</div><div>  at the /boot/aboot.cfg file for aboot options and applies them for a kernel version</div><div>  producing a file /boot/aboot-${kernel_version}.img. It also hooks into the kernel</div><div>  rpms to run automatically when a new kernel is installed.<br></div><div>* The osbuild-aboot rpm, which must be installed on the build host, adds some</div><div>   new osbuild stages that use aboot-update. (This is in a separate copr)<br></div><div>* A new "abootqemu" target which is similar to the existing "qemu" target, but using</div><div>  aboot instead of grub/efi.</div><div>* Support in runvm for --aboot, which uses a custom bios that supports aboot. This</div><div>  allows testing of the aboot-based boot. (Only on aarch64 atm.)</div><div><br></div><div>A full example of testing this:</div><div><br></div><div>    $ sudo dnf copr enable alexl/osbuild-aboot</div><div>    $ sudo dnf install osbuild-aboot<br></div><div>    $ make cs9-abootqemu-minimal-regular.aarch64.qcow2<br>    $ make qemu-u-boot-aarch64.bin<br>    $ ./runvm --aboot --arch aarch64 cs9-abootqemu-minimal-regular.aarch64.qcow2<br></div><div><br></div><div>The qemu boot output:</div><div><br></div><div>    U-Boot 2022.07 (Aug 26 2022 - 00:00:00 +0000)<br>    [...]<br>    Device 0: 1af4 VirtIO Block Device<br>                Type: Hard Disk<br>                Capacity: 8192.0 MB = 8.0 GB (16777216 x 512)<br>    ... is now current device<br>    Found Android Boot Image<br>    <br>    virtio read: device 0 block # 2048, count 131072 ... 131072 blocks read: OK<br>    Kernel load addr 0x50000000 size 10232 KiB<br>    Kernel command line: root=UUID=76a22bf4-f153-4541-b6c7-0332c0dfaeac ro loglevel=4 efi=runtime console=ttyAMA0<br>    RAM disk load addr 0x11000000 size 25563 KiB<br>       Uncompressing Kernel Image<br>       Loading Ramdisk to fe709000, end fffff8c6 ... OK<br>       Loading Device Tree to 00000000fe606000, end 00000000fe708fff ... OK<br>    <br>    Starting kernel ...<br>    <br>    [    0.000000] ACPI: Failed to init ACPI tables<br>    <br>    Welcome to CentOS Stream 9 dracut-057-13.git20220816.el9 (Initramfs)!<br></div><div>    [...]<br></div><div><br></div><div><br></div><div>[1] <a href="https://gitlab.com/CentOS/automotive/sample-images/-/merge_requests/116">https://gitlab.com/CentOS/automotive/sample-images/-/merge_requests/116</a><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="color:rgb(46,52,54);font-family:monospace;font-size:14.6667px">=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</span><br style="color:rgb(46,52,54);font-family:monospace;font-size:14.6667px"><span style="color:rgb(46,52,54);font-family:monospace;font-size:14.6667px"> Alexander Larsson                                Red Hat, Inc </span><br style="color:rgb(46,52,54);font-family:monospace;font-size:14.6667px"><span style="color:rgb(46,52,54);font-family:monospace;font-size:14.6667px">       </span><a href="mailto:alexl@redhat.com" style="word-break:break-all;font-family:monospace;font-size:14.6667px" target="_blank">alexl@redhat.com</a><span style="color:rgb(46,52,54);font-family:monospace;font-size:14.6667px">         </span><a href="mailto:alexander.larsson@gmail.com" style="word-break:break-all;font-family:monospace;font-size:14.6667px" target="_blank">alexander.larsson@gmail.com</a><span style="color:rgb(46,52,54);font-family:monospace;font-size:14.6667px"> </span><br style="color:rgb(46,52,54);font-family:monospace;font-size:14.6667px"></div></div></div></div>