Seems like this is already supported with save_boot_params function пн, 10 янв. 2022 г. в 18:01, Dzmitry Sankouski <dsankou...@gmail.com>:
> I'm working on a project to bring mainline linux kernels to android phones. > I'm planning to use u-boot as a secondary stage bootloader packed in > android boot image, > so that linux kernel is replaced with u-boot, and initramfs is replaced > with FIT image. > > This approach allows to use u-boot on a phone without much pain with > storage drivers. > > Obviously, u-boot should know initramfs load address. It can be obtained > from initrd-start > device tree option. However, on arm64 address to the right device tree is > provided in x0 CPU > register. > > Would you accept a patch to preserve boot args on arm64? > > >