MA-15339-1 load ramdisk in boot image to do first stage mount
authorfaqiang.zhu <faqiang.zhu@nxp.com>
Sun, 29 Sep 2019 01:56:31 +0000 (09:56 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:17 +0000 (09:49 +0800)
commitff5e376fa1eba58510cd7f001f0d134f51f82e01
tree7a68b9a392b2422042a0212433ff0a87fd976fb1
parentdc2acac3cdfe0ca77747e9c435e3f140acc07705
MA-15339-1 load ramdisk in boot image to do first stage mount

With Android10 code, to build GSI image for devices launching with
Android10, the target should be "aosp_$arch-user". Google releases GSI
images is so built in user mode.

To do CTS-on-GSI test, a debug ramdisk containing .prop file to enable
adb root permission and GSI keys to verify the GSI image is needed, this
ramdisk is in boot image. so ramdisk in boot image need to be loaded by
uboot even in non-recovery mode.

To save boot time, only standard Android use ramdisk to boot up Android,
Android Auto keeps the original way: kernel be responsible for verify
and mount system partition. Let the customers to decide whether to use
recovery ramdisk to boot the system. and under this condition, user-debug
Android Auto GSI image need to be used for VTS-on-GSI test.

when use ramdisk to bootup Android, info provided by "dm=" bootarg is
not used by kernel to setup dm-verity, so it is removed from the
bootargs. The 4.19 kernel used together with this uboot does not handle
"skip_initramfs", so it's also removed.

Change-Id: Ia8b8fa8b85a44acda2670b46504038a009ce01a8
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
(cherry picked from commit e7d3c9ee1a713434d2948928ff0c4daea09ce3dc)
(cherry picked from commit 8f191d088797e9fbea49f482d0aa517f989b7821)
drivers/fastboot/fb_fsl/fb_fsl_boot.c