Commit Graph

6 Commits

Author SHA1 Message Date
Jiyong Park 0f68cdd65d Refactor MicrodroidTestCase
... to make it easier to read and add new checks

Also made a change that json files have absolute path to the image files
so that we don't need to copy the files to the test root directory.

Bug: N/A
Test: atest MicrodroidHostTestCases
Change-Id: I7803be1ec6ec6fa68723a230aee2251f27a8a7b5
2021-06-15 19:57:55 +09:00
Jiyong Park 0eb38893bc Partitions are by default read-only.
Bug: 185073512
Test: atest MicrodroidHostTestCases
Change-Id: Icbac38955d5c115dff780b8833ceb622f0c6a909
2021-04-13 17:46:54 +09:00
Jiyong Park 7851501f2b Move uboot_env.img to a new composite disk
u-boot is updated to look for the environment partition in the second
disk.

Bug: 183006588
Test: atest MicrodroidHostTestCases
Change-Id: I2e716bb85d4762f700ea7479c68ffbcfd150857c
2021-04-13 17:44:44 +09:00
Inseob Kim 72f06a3489 Include microdroid files to virt apex
All files to run microdroid is now included to the com.android.virt
APEX:

- super image
- boot images
- vbmeta images
- bootloader
- uboot_env image
- cdisk json config

Also the documentation README.md and microdroid host tests are updated
too.

Bug: 184803590
Test: follow instructions on README.md
Test: atest MicrodroidHostTestCases
Change-Id: I71f0e32ca774b351d9f49af2754f0a1c786c2400
2021-04-12 16:15:38 +09:00
Inseob Kim ebc3a37b3e Set microdroid_cdisk images as read only
Test: atest MicrodroidHostTests
Change-Id: Ifd024c9d5e9294ac96d745aa52515fc7364816a1
2021-04-12 11:00:08 +09:00
Jooyung Han 25a2acc102 Use mk_cdisk instead of assemble_cvd
mk_cdisk is a tool to create a composite disk image. It can be used to
create other kinds of composite disks as well as os_composite.os which
was created by assemble_cvd before.

For example, if we want to pass host apexes to microdroid we can pass
them via a composite disk referencing host apex files.

Bug: 181093750
Test: running microdroid VM following updated microdroid/README.md
TEst: MicrodroidTestCase
Change-Id: Ief6468564da9eb78c6729ae64a218811919b3ae0
2021-04-08 17:13:04 +09:00