10-12-2024 09:24 AM
Hello,
My Zenfone 9 is in a bootloader loop. The menu 'start' and 'recovery mode' restart the device but boot again on the bootloader.
I have never rooted the device and the bootloader is locked.
I am able to access the bootloader via fastboot:
$fastboot oem device-info
(bootloader) Verity mode: false
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: true
(bootloader) Device authorized: false
(bootloader) Device authorized2: false
(bootloader) WaterMask unlock: N
...
I downloaded the firmware on the ASUS website UL-ASUS_AI2202-ASUS-34.0304.2004.145-1.1.1-2407-user.zip . I have extracted the images of each partition but I am not able to flash some partitions, there are errors on some partitions
$ fastboot flash recovery recovery.img
Sending 'recovery' (102400 KB) OKAY [ 2.745s]
Writing 'recovery' OKAY [ 0.311s]
Finished. Total time: 3.067s
$ fastboot flash boot boot.img
Sending 'boot_a' (98304 KB) OKAY [ 2.687s]
Writing 'boot_a' OKAY [ 0.297s]
Finished. Total time: 2.997s
$ fastboot flash dtbo dtbo.img
Sending 'dtbo' (24576 KB) OKAY [ 0.666s]
Writing 'dtbo' OKAY [ 0.079s]
Finished. Total time: 0.755s
$ fastboot reboot fastboot
Rebooting into fastboot OKAY [ 0.002s]
< waiting for any device >
$ fastboot flash abl abl.img
Sending 'abl' (584 KB) OKAY [ 0.024s]
Writing 'abl' FAILED (remote: 'Direct flashing abl is not allowed.')
fastboot: error: Command failed
$ fastboot flash aop aop.img
Sending 'aop' (232 KB) OKAY [ 0.017s]
Writing 'aop' OKAY [ 0.005s]
Finished. Total time: 0.032s
$ fastboot flash aop_config aop_config.img
Sending 'aop_config' (16 KB) OKAY [ 0.011s]
Writing 'aop_config' OKAY [ 0.005s]
Finished. Total time: 0.027s
$ fastboot flash bluetooth bluetooth.img
Sending 'bluetooth' (924 KB) OKAY [ 0.033s]
Writing 'bluetooth' OKAY [ 0.007s]
Finished. Total time: 0.050s
$ fastboot flash boot boot.img
Sending 'boot_a' (98304 KB) OKAY [ 2.707s]
Writing 'boot_a' OKAY [ 0.405s]
Finished. Total time: 3.125s
$ fastboot flash cpucp cpucp.img
Sending 'cpucp' (140 KB) OKAY [ 0.008s]
Writing 'cpucp' OKAY [ 0.005s]
Finished. Total time: 0.024s
$ fastboot flash devcfg devcfg.img
Sending 'devcfg' (56 KB) OKAY [ 0.014s]
Writing 'devcfg' OKAY [ 0.005s]
Finished. Total time: 0.029s
$ fastboot flash dsp dsp.img
Sending 'dsp' (65536 KB) OKAY [ 1.794s]
Writing 'dsp' OKAY [ 0.348s]
Finished. Total time: 2.152s
$ fastboot flash dtbo dtbo.img
Sending 'dtbo' (24576 KB) OKAY [ 0.666s]
Writing 'dtbo' OKAY [ 0.049s]
Finished. Total time: 0.726s
$ fastboot flash featenabler featenabler.img
Sending 'featenabler' (92 KB) OKAY [ 0.013s]
Writing 'featenabler' OKAY [ 0.006s]
Finished. Total time: 0.029s
$ fastboot flash hyp hyp.img
Sending 'hyp' (1356 KB) OKAY [ 0.042s]
Writing 'hyp' OKAY [ 0.012s]
Finished. Total time: 0.064s
$ fastboot flash imagefv imagefv.img
Sending 'imagefv' (500 KB) OKAY [ 0.028s]
Writing 'imagefv' OKAY [ 0.006s]
Finished. Total time: 0.045s
$ fastboot flash keymaster keymaster.img
Sending 'keymaster' (364 KB) OKAY [ 0.016s]
Writing 'keymaster' OKAY [ 0.006s]
Finished. Total time: 0.033s
$ fastboot flash modem modem.img
Sending 'modem_a' (211268 KB) OKAY [ 5.773s]
Writing 'modem_a' OKAY [ 0.774s]
Finished. Total time: 6.561s
$ fastboot flash multiimgoem multiimgoem.img
Sending 'multiimgoem' (12 KB) OKAY [ 0.003s]
Writing 'multiimgoem' OKAY [ 0.007s]
Finished. Total time: 0.022s
$ fastboot flash odm odm.img
Sending 'odm' (1436 KB) OKAY [ 0.051s]
Writing 'odm' FAILED (remote: '(odm_a) No such partition')
fastboot: error: Command failed
$ fastboot flash product product.img
Invalid sparse file format at header magic
Sending sparse 'product' 1/4 (524240 KB) OKAY [ 14.410s]
Writing 'product' FAILED (remote: 'Partition not found')
fastboot: error: Command failed
$ fastboot flash qupfw qupfw.img
Sending 'qupfw' (52 KB) OKAY [ 0.009s]
Writing 'qupfw' OKAY [ 0.005s]
Finished. Total time: 0.025s
$ fastboot flash qweslicstore qweslicstore.img
Sending 'qweslicstore' (256 KB) OKAY [ 0.014s]
Writing 'qweslicstore' OKAY [ 0.004s]
Finished. Total time: 0.030s
$ fastboot flash recovery recovery.img
Sending 'recovery' (102400 KB) OKAY [ 2.759s]
Writing 'recovery' OKAY [ 0.422s]
Finished. Total time: 3.193s
$ fastboot flash shrm shrm.img
Sending 'shrm' (64 KB) OKAY [ 0.004s]
Writing 'shrm' OKAY [ 0.004s]
Finished. Total time: 0.019s
$ fastboot flash system system.img
Invalid sparse file format at header magic
Sending sparse 'system' 1/7 (524232 KB) OKAY [ 14.539s]
Writing 'system' FAILED (remote: 'Partition not found')
fastboot: error: Command failed
$ fastboot flash system_ext system_ext.img
Sending 'system_ext' (430600 KB) OKAY [ 11.804s]
Writing 'system_ext' FAILED (remote: '(system_ext_a) No such partition')
fastboot: error: Command failed
$ fastboot flash tz tz.img
Sending 'tz' (3716 KB) OKAY [ 0.110s]
Writing 'tz' OKAY [ 0.009s]
Finished. Total time: 0.128s
$ fastboot flash uefi uefi.img
Sending 'uefi' (2696 KB) OKAY [ 0.083s]
Writing 'uefi' OKAY [ 0.016s]
Finished. Total time: 0.109s
$ fastboot flash uefisecapp uefisecapp.img
Sending 'uefisecapp' (172 KB) OKAY [ 0.012s]
Writing 'uefisecapp' OKAY [ 0.006s]
Finished. Total time: 0.029s
$ fastboot flash vbmeta vbmeta.img
Sending 'vbmeta' (8 KB) OKAY [ 0.006s]
Writing 'vbmeta' OKAY [ 0.003s]
Finished. Total time: 0.019s
$ fastboot flash vbmeta_system vbmeta_system.img
Sending 'vbmeta_system' (4 KB) OKAY [ 0.006s]
Writing 'vbmeta_system' OKAY [ 0.003s]
Finished. Total time: 0.020s
$ fastboot flash vendor vendor.img
Invalid sparse file format at header magic
Sending sparse 'vendor' 1/3 (524168 KB) OKAY [ 14.546s]
Writing 'vendor' FAILED (remote: 'Partition not found')
fastboot: error: Command failed
$ fastboot flash vendor_boot vendor_boot.img
Sending 'vendor_boot' (98304 KB) OKAY [ 2.650s]
Writing 'vendor_boot' OKAY [ 0.386s]
Finished. Total time: 3.047s
$ fastboot flash vendor_dlkm vendor_dlkm.img
Sending 'vendor_dlkm' (73456 KB) OKAY [ 2.000s]
Writing 'vendor_dlkm' FAILED (remote: '(vendor_dlkm_a) No such partition')
fastboot: error: Command failed
$ fastboot flash xbl xbl.img
Sending 'xbl' (1064 KB) OKAY [ 0.044s]
Writing 'xbl' OKAY [ 0.005s]
Finished. Total time: 0.059s
$ fastboot flash xbl_config xbl_config.img
Sending 'xbl_config' (108 KB) OKAY [ 0.015s]
Writing 'xbl_config' OKAY [ 0.006s]
Finished. Total time: 0.032s
$ fastboot flash xbl_ramdump xbl_ramdump.img
Sending 'xbl_ramdump' (792 KB) OKAY [ 0.027s]
Writing 'xbl_ramdump' OKAY [ 0.005s]
Finished. Total time: 0.043s
$ fastboot flash xrom xrom.img
Sending 'xrom' (524288 KB) OKAY [ 14.019s]
Writing 'xrom' OKAY [ 1.902s]
Finished. Total time: 15.930s
$ fastboot reboot
Rebooting OKAY [ 0.001s]
Finished. Total time: 0.051s
Please, How can I fix the bootloader loop ? Does flash all partitions will fix it ? How can I flash all partitions ?
many thanks