phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 661 forks source link

Unable to flash GSI system images in the tablet Teclast T40 Pro #2651

Open rogergithubbing opened 2 months ago

rogergithubbing commented 2 months ago

Current Behavior:

I start always with a completely fresh installation of the original system.

I flash from Windows 10 connected to an usb 2.0 with a very high quality cable.

After flashing I get the crDroid logo loading forever, or a constant bootloop without even entering crDroid loading screen Happens also with other gsi roms I have tried, vanilla, with gapps, without them... etc. no gsi rom seems to boot correctly.

I also have the doubt that in some gsi roms I get the message FAILED (remote: 'Not enough space to resize partition'), so I have to choose other gsi rooms smaller in size, and I would like to know how can I fix that, too...

Describe the bug

device do not boot after flashing

To Reproduce

fastboot devices fastboot erase system fastboot delete-logical-partition product_a fastboot flash system C:_Dades!Teclast_custom**crDroid-10.5-arm64_bgN-slim-Unofficial.img** fastboot -w

if I issue this command, I get a bootloop without entering crdroid load screen; if not, it gets stuck on crdroid load screen: fastboot --disable-verity --disable-verification flash vbmeta C:_Dades!Teclast_custom\empty_vbmeta.img

fastboot reboot

Expected behavior

Correct boot of crDroid (and other os like lineage, xperience, etc. with Android 14,13,11

Smartphone (please complete the following information):

Additional context

This is a capture of the results for the operation in Windows, using the latest platform tools from google and windows 10: Do not forget that I sometimes apply the fastboot --disable-verity command, some other times not, and that I get the bootloop described above depending on it.

C:\platform-tools>fastboot devices L30DL052513D0003504 fastboot

C:\platform-tools>fastboot erase system **** Did you mean to fastboot format this ext4 partition? Erasing 'system_a' OKAY [ 0.468s] Finished. Total time: 0.488s

C:\platform-tools>fastboot delete-logical-partition product_a Deleting 'product_a' OKAY [ 0.011s] Finished. Total time: 0.018s

C:\platform-tools>fastboot flash system C:_Dades!Teclast_custom\crDroid-10.5-arm64_bgN-slim-Unofficial.img Resizing 'system_a' OKAY [ 0.009s] Sending sparse 'system_a' 1/12 (262116 KB) OKAY [ 19.756s] Writing 'system_a' OKAY [ 2.073s] Sending sparse 'system_a' 2/12 (262116 KB) OKAY [ 20.715s] Writing 'system_a' OKAY [ 2.066s] Sending sparse 'system_a' 3/12 (262112 KB) OKAY [ 19.828s] Writing 'system_a' OKAY [ 2.099s] Sending sparse 'system_a' 4/12 (262120 KB) OKAY [ 19.755s] Writing 'system_a' OKAY [ 2.093s] Sending sparse 'system_a' 5/12 (262124 KB) OKAY [ 20.652s] Writing 'system_a' OKAY [ 2.098s] Sending sparse 'system_a' 6/12 (262124 KB) OKAY [ 20.320s] Writing 'system_a' OKAY [ 2.118s] Sending sparse 'system_a' 7/12 (262124 KB) OKAY [ 20.083s] Writing 'system_a' OKAY [ 2.030s] Sending sparse 'system_a' 8/12 (262080 KB) OKAY [ 20.320s] Writing 'system_a' OKAY [ 2.103s] Sending sparse 'system_a' 9/12 (262120 KB) OKAY [ 19.958s] Writing 'system_a' OKAY [ 2.115s] Sending sparse 'system_a' 10/12 (262128 KB) OKAY [ 20.193s] Writing 'system_a' OKAY [ 2.099s] Sending sparse 'system_a' 11/12 (262128 KB) OKAY [ 20.371s] Writing 'system_a' OKAY [ 2.115s] Sending sparse 'system_a' 12/12 (204824 KB) OKAY [ 15.874s] Writing 'system_a' OKAY [ 1.906s] Finished. Total time: 279.842s

C:\platform-tools>fastboot -w Erasing 'userdata' OKAY [ 13.781s]

F2FS-tools: mkfs.f2fs Ver: 1.16.0 (2023-04-11)

Info: Debug level = 1 Info: Trim is disabled Info: Set conf for android Info: Enable Project quota Info: Segments per section = 1 Info: Sections per zone = 1 Info: sector size = 512 Info: total sectors = 231286744 (112932 MB) Info: zone aligned segment0 blkaddr: 512 Info: add quota type = 0 => 4 Info: add quota type = 1 => 5 Info: add quota type = 2 => 6 Info: format version with "" [f2fs_init_sit_area: 641] Filling sit area at offset 0x00600000 [f2fs_init_nat_area: 675] Filling nat area at offset 0x01200000 [f2fs_add_default_dentry_root:1259] Writing default dentry root, at offset 0x1da00 [f2fs_write_root_inode:1304] Writing root inode (hot node), offset 0x1d400 [f2fs_write_default_quota:1391] Writing quota data, at offset 0001da01 (1/2) [f2fs_write_default_quota:1391] Writing quota data, at offset 0001da02 (2/2) [f2fs_write_qf_inode:1442] Writing quota inode (hot node), offset 0x1d401 [f2fs_write_default_quota:1391] Writing quota data, at offset 0001da03 (1/2) [f2fs_write_default_quota:1391] Writing quota data, at offset 0001da04 (2/2) [f2fs_write_qf_inode:1442] Writing quota inode (hot node), offset 0x1d402 [f2fs_write_default_quota:1391] Writing quota data, at offset 0001da05 (1/2) [f2fs_write_default_quota:1391] Writing quota data, at offset 0001da06 (2/2) [f2fs_write_qf_inode:1442] Writing quota inode (hot node), offset 0x1d403 [f2fs_update_nat_default:1479] Writing nat root, at offset 0x00001200 Info: Overprovision ratio = 0.430% Info: Overprovision segments = 246 (GC reserved = 239) [f2fs_write_check_point_pack: 858] Writing main segments, cp at offset 0x00000200 [f2fs_write_check_point_pack: 946] Writing Segment summary for HOT/WARM/COLD_DATA, at offset 0x00000201 [f2fs_write_check_point_pack: 960] Writing Segment summary for HOT_NODE, at offset 0x00000202 [f2fs_write_check_point_pack: 972] Writing Segment summary for WARM_NODE, at offset 0x00000203 [f2fs_write_check_point_pack: 983] Writing Segment summary for COLD_NODE, at offset 0x00000204 [f2fs_write_check_point_pack: 991] Writing cp page2, at offset 0x00000205 [f2fs_write_check_point_pack:1011] Writing NAT bits pages, at offset 0x000003fe [f2fs_write_check_point_pack:1032] Writing cp page 1 of checkpoint pack 2, at offset 0x00000400 [f2fs_write_check_point_pack:1051] Writing cp page 2 of checkpoint pack 2, at offset 0x00000405 [f2fs_write_super_block:1084] Writing super block, at offset 0x00000000 Info: format successful Warning: skip copying userdata image avb footer due to sparse image. Sending 'userdata' (97 KB) OKAY [ 0.005s] Writing 'userdata' OKAY [ 0.985s] Erasing 'cache' FAILED (remote: 'Erasing failed') fastboot: error: Command failed

C:\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta C:_Dades!Teclast_custom\empty_vbmeta.img

Rewriting vbmeta struct at offset: 0 Sending 'vbmeta_a' (0 KB) OKAY [ 0.001s] Writing 'vbmeta_a' OKAY [ 0.002s] Finished. Total time: 0.058s

C:\platform-tools>

rogergithubbing commented 2 months ago

logcat.zip

I attach the logcat captured from the crDroid stuck in the loading logo. I hope it helps.