I get the error message 'ko: Invalid cache cache image type: yaffs2 (expected ext4)' when I try to run android on an emulator for a mako device?

I followed all the steps given here: Construction and work and the target configuration was "aosp_mako-userdebug"

+5
source share
2 answers

I had the same problem. I just updated my android studio, which worked for me.

0
source

I solved this problem using linux tools to create the image.

  • Create file system_new.img:
    dd if=/dev/zero of=system_new.img bs=4k count=1800000
  • Create ext4 file system:
    mkfs.ext4 system_new.img
  • Cancel file system check (otherwise the image will not work):
    tune2fs -c0 -i0 system_new.img
  • Mount Image:
    sudo mount -o loop system_new.img mount_point
  • Copy the files you need.
  • Enlarge image:
    sudo umount mount_pont

Your image is ready!

You can check it with the Android emulator -avd YOUR_VIRTUAL_DEVICE -system system_new.img : emulator -avd YOUR_VIRTUAL_DEVICE -system system_new.img

0
source

All Articles