The vendor_boot.img now has fstab file in it. It currently mounts the
system.img to /system, but eventually we will use the dynamic partitions
in super.img.
A few more essential kernel commandline params are added. Eventually,
these androidboot.* parameters will be given via /proc/bootconfig.
Bug: 178562528
Test: build microdroid-* modules. push microdroid-boot-5.10.img as
boot.img, microdroid-vendor-boot-5.10.img as vendor_boot.img,
micrdroid.img as super.img.
Run assemble_cvd on the device.
Push microdroid-uboot_env.img as uboot_env.img
Run crosvm with the generated composite image. VM goes through the
bootloader, kernel, first stage init, and then second stage init.
Change-Id: Id1ce4f33f912bb80cd280060ecd9cabe57675660
The environment partition can control the behavior of the bootloader.
Therefore it shouldn't be dynamically created on the device.
Bug: 180675126
Test: m microdroid_uboot_env
Change-Id: If49634293f2fe7fbb82fae243632480fc7d72d30
Contexts files, plat_sepolicy.cil, and 10000.0.cil are needed to boot.
This adds those files to microdroid. But cil files are temporary and
only for testing. We'll need to migrate real cil files to Android.bp.
Bug: 178993690
Test: boot microdroid
Change-Id: I684b67bbb6906ba42a710156519723eff23938d2
This adds a minimized init.rc and services to microdroid, so microdroid
can boot and adb can work.
Bug: 179340780
Test: boot with manually added selinux stuffs and apexd session patch
Change-Id: I42ae13f3f2ac9ca22ed646564867da3931824682
These lists are based on rootdir contents. A little more shrinked.
Bug: 179652970
Test: boot with aosp_cf_x86_64_only_phone
Change-Id: I06cc7d5e8a6b7b22270217d6b2d6a1b7e6ecaebc
It consists of
* common kernel modules for virtual devices
* a dummy dtb image
Bug: 178978059
Test: m microdroid_vendor_boot-5.10
Change-Id: I7df34ef976b557ff750aa566838f744162caf1a3
This file is a simple copy of system/sepolicy/private/file_contexts to
support contexts for microdroid.img. It contains unnecessary entries,
but we'll leave it for now and clean up after enough experiment.
Bug: 178993690
Test: boot and see selinux denials are gone
Change-Id: I43782937a282b752091640b249288415137db6b6
microdroid is a minimal Linux image that we will use in VMs. Instead of
inventing a whole new Linux image from scratch, we design microdroid as
a stripped down version of the generic Android system image (GSI).
Bug: 177630284
Test: m microdroid
Test: no runtime test. This isn't mountable yet.
Change-Id: I528e9da2a0933e7d024f3606c82df585d029785c