I'm using the Android 11 delivery for the imx8q and am coming across the following scenario that is giving me a terrible time. This was tested with the stock Android build with no local changes. Any thoughts where to look to fix this?
Success path
1. Flash an A11 build
2. Do a factory reset <--success
Failure Path
1. Flash A11 build
2. Do an OTA update
3. Do a factory reset <-- failure
Error Log:
[ 323.210779] -- Wiping data...
[ 323.231008] I:[libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/by-name/metadata
[ 323.264835] I:[libfs_mgr]check_fs(): mount(/dev/block/by-name/metadata,/metadata,ext4)=0: Success
[ 323.274898] I:[libfs_mgr]check_fs(): unmount(/metadata) succeeded
[ 323.275033] I:[libfs_mgr]Not running /system/bin/e2fsck on /dev/block/mmcblk0p11 (executable not in system image)
[ 323.321064] I:[libfs_mgr]__mount(source=/dev/block/by-name/metadata,target=/metadata,type=ext4)=0: Success
[ 323.322758] I:Creating logical partitions with snapshots as needed
[ 323.361040] I:[libfs_mgr]Created logical partition system_b-base on device /dev/block/dm-5
[ 323.389060] I:[libfs_mgr]Created logical partition system_b-cow-img on device /dev/block/dm-6
[ 323.401994] I:Mapped system_b-cow-img to 254:6
[ 323.405555] E:DM_DEV_CREATE failed for [system_b-cow]: Device or resource busy
[ 323.427629] E:Could not create COW device: system_b-cow
[ 323.549046] E:Unable to map partitions to complete merge.
[ 323.605258] Unable to check merge status and/or complete update merge.
[ 323.644265] Unable to check update status or complete merge, cannot wipe partitions.
Hello,
Could you share the full Android version that you're working with?
Also, is it standard Android or is it Android Auto?
Best regards,
Aldo.
Android Auto. 11.0.0_1.1.0
Thanks for looking into this.
Preliminary look makes it seem this is also happening on 2.5.0
Hello,
Thank you for sharing more information, could you try with what was proposed by google here:
https://source.android.com/docs/core/ota/virtual_ab/implement-patches#fix-slot-switch
Best regards,
Aldo.