Skip to content

AOSP image for miatoll

99degree edited this page Apr 25, 2025 · 4 revisions

There is no official image nor custom image atm. If you wanna to make your own, here is a suggested procedure:

  • Go to Linaro AOSP img and download all images.
  • Go to my linux kernel image to download kernel precompiled binary
  • Go to AOSP image from google and download arm build.
  • Go to my u-boot action and download uboot img.
  • Buy a 16GB or 32 GB micro-sd (SDXC) and partition as stated in here
  • Download LineageOS recovery/boot img
  • Prepare sdcard by this tutorial or by u-boot
  • prepare linaro aosp img, since downloaded super.img might be in sparse format, check by file super.img will tell if file is sparse img. so use simg2img to expand it.
  • Boot into u-boot and flash super.img into super partition, here is another way to do so, check below.
  • prepare new_boot.img by linaro ramdisk.img, with the kernel/dtb from step 2, unpack ramdisk.img, copy fstab.qcom to fstab.default. Another way is to modify lineageos boot.img, replace kernel/dtb, copy fstab file from linaro ramdisk into new ramdisk. Make sure super.img is slotselect then fstab also need slotselect option.
  • Optionally prepare original LineageOS boot.img for dual boot old/original LineageOS.
  • flash new_boot.img by u-boot flash cmd into boot1 partition
  • mke2fs to metadata partition, optionally by u-boot format cmd
  • test the new_boot.img by fastboot and see if that boots with many debug log. wait for 15min and see if adb is working.
  • if everything is getting fine, then flash u-boot into ufs boot partition
  • since Linaro img have a problem that missing mapper.minigbm.so file so ui fail. My approach is to extract this file from step 3 vendor.img
  • create a 128M ext4 partition file, named odm.img then copy vendor.img/odm/* to this odm.img, also put this mapper.minigbm.so into /lib64/hw/
  • put init.db845.rc init odm.img/etc/init/
  • put fstab.db845c into odm.img/etc/
  • use lineageos recovery, modify boot cmd with androidboot.boot_devices=soc/8804000.sdhci to boot into recovery, then enter fastbootd
  • in fastbootd, fastboot getvar all can show the super partition inf of sdcard. if not, it is highly likely working with ufs which is not what we want. then reboot to lineageos recovery and retry.
  • if everything is fine, do fastboot.exe create-logical-partition odm 16384 flash odm odm.img
  • modify new_boot.img for fstab.qcom fstab.default, add one more entry for odm partition. test it with u-boot fastboot boot cmd, if everything is fine, flash again new_boot.img into boot1 partition
  • now u-boot can cancel fastboot by fastboot continue and then do manual boot, search boot partition and chainload.

Clone this wiki locally