android: support the new android format mode

In the new android images, the ramdisk.img is packed in the
system.img. So transmit the "skip_initramfs" to cmdline to
ignore the ramdisk.img (if have) loaded from boot.img.

Change-Id: I1b2051d65078c903411f3ddcc0c7803cbd6892f4
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
Jason Zhu 2018-01-22 17:29:29 +08:00 committed by Kever Yang
parent 3877199611
commit 2ab11bbe30
1 changed files with 2 additions and 0 deletions

View File

@ -384,7 +384,9 @@ int android_bootloader_boot_flow(struct blk_desc *dev_desc,
* "skip_initramfs" to the cmdline to make it ignore the * "skip_initramfs" to the cmdline to make it ignore the
* recovery initramfs in the boot partition. * recovery initramfs in the boot partition.
*/ */
#ifdef CONFIG_ANDROID_AB
mode_cmdline = "skip_initramfs"; mode_cmdline = "skip_initramfs";
#endif
break; break;
case ANDROID_BOOT_MODE_RECOVERY: case ANDROID_BOOT_MODE_RECOVERY:
/* In recovery mode we still boot the kernel from "boot" but /* In recovery mode we still boot the kernel from "boot" but