Microdroid uses android boot image header V4
It's the latest one supporting the bootconfig. Also this change moves
the kernel commandline paramters from uboot-env.img to boot.img. The
former will eventually be removed.
Bug: 181936566
Test: boot microdroid on VIM3L
Change-Id: I5738f07e8b98fd0d61dbea047ebbd0ceb7258f31
diff --git a/microdroid/Android.bp b/microdroid/Android.bp
index 8159d3d..488765f 100644
--- a/microdroid/Android.bp
+++ b/microdroid/Android.bp
@@ -153,9 +153,17 @@
},
},
// TODO(jiyong): change the name to init, cause it's confusing
- cmdline: "rdinit=/bin/init_vendor",
+ cmdline: "rdinit=/bin/init_vendor " +
+ "panic=-1 " +
+ // TODO(b/181936135) make the ratelimiting conditional; ratelimiting on prod build
+ "printk.devkmsg=on " +
+ "androidboot.first_stage_console=1 " +
+ "androidboot.hardware=microdroid " +
+ "androidboot.boot_devices=10000.pci " +
+ // TODO(b/181747352) remove this to enforce selinux
+ "androidboot.selinux=permissive",
dtb_prebuilt: "dummy_dtb.img",
- header_version: "3",
+ header_version: "4",
partition_name: "boot",
}
@@ -181,7 +189,7 @@
name: "microdroid_vendor_boot-5.10",
ramdisk_module: "microdroid_vendor_ramdisk-5.10",
dtb_prebuilt: "dummy_dtb.img",
- header_version: "3",
+ header_version: "4",
vendor_boot: true,
partition_name: "vendor_boot",
enabled: false,