Problem description
I need one Android image that can boot as an Android VM on Qualcomm SA8295P and also on Qualcomm SA8775P.
I already have a working VM image for SA8295P (msmnile_gvmq). I want to reuse as much as possible for SA8775P and need to know which partitions/images must be rebuilt and which can be reused.
Evidence / outputs
Current image set (from lagvm/LINUX/android/out/target/product/msmnile_gvmq):
boot.img super_empty.img vendor_boot-debug.img
dtb.img super.img vendor_boot.img
dtbo.img system_dlkm.img vendor_boot-test-harness.img
init_boot.img system_ext.img vendor_dlkm.img
metadata.img system.img vendor.img
persist.img userdata.img vendor_ramdisk-debug.img
product.img vbmeta.img vendor_ramdisk.img
ramdisk.img vendor-bootconfig.img vendor_ramdisk-test-harness.img
My initial reasoning
- Different SoCs (SA8295P vs SA8775P) → kernel, DTB/DTBO,
vendor_boot(vendor ramdisk), and*_dlkmkernel modules are SoC-specific and likely must be rebuilt for SA8775P. - My SA8775P uses GKI, so matching
boot.img/init_boot.img,vendor_boot.img,vendor_dlkm.img/system_dlkm.img, andvbmeta.imgare required;vbmetashould be regenerated. vendor.imgmight be reusable (but HALs/firmware can be SoC-specific).system.img/system_ext.img/product.imgmight be reusable if VINTF compatibility passes.- In VM scenarios, DTB/DTBO must match the hypervisor’s virtual devices.
Environment / versions
- Run mode: Android as VM on SA8295P and SA8775P
- SA8295P target:
msmnile_gvmq(boots OK) - SA8775P target: VM as well
- Android version: AOSP 14
Questions
- For SA8775P VM boot, which images must be rebuilt? Is it correct that at least these are required:
boot.img/init_boot.img,dtb.img,dtbo.img,vendor_boot.img,vendor_dlkm.img,system_dlkm.img, and regeneratedvbmeta.img? - Can I reuse
vendor.imgand/orsystem.img/system_ext.img/product.img(insidesuper.img) across SA8295P and SA8775P ? - For VM use, is there a recommended approach to keep userland common and swap only SoC-specific parts (
boot/vbmeta/dtb/*_dlkm, maybevendor) to support both SoCs with one image set?