capntrips / KernelFlasher

Kernel Flasher is an Android app to flash, backup, and restore kernels.
https://forum.xda-developers.com/t/dev-kernel-flasher.4439887/
Other
889 stars 52 forks source link

The kernel cannot be found, what should I do? #23

Closed Chuhe2399 closed 9 months ago

Chuhe2399 commented 9 months ago

![Uploading Screenshot_2024-01-19-09-07-15-613_com.github.capntrips.kernelflasher.jpg…]()

Chuhe2399 commented 9 months ago

Screenshot_2024-01-19-09-07-15-613_com github capntrips kernelflasher

capntrips commented 9 months ago

First, what is the device? Is it an A/B device. If so, you should be able to find boot_a and boot_b in /dev/block/by-name. If not, it is unsupported. Is it brand new? If so, the issue might be that one slot is completely empty, in which case the solution is to install an OTA to populate the opposite slot. Otherwise, I'll need dumps of the relevant partitions. From here, if you want some additional context:

adb shell
su
cd /data/local/tmp
dd if=/dev/block/by-name/boot_a of=boot_a.img
dd if=/dev/block/by-name/boot_b of=boot_b.img
dd if=/dev/block/by-name/init_boot_a of=init_boot_a.img
dd if=/dev/block/by-name/init_boot_b of=init_boot_b.img
exit
exit
adb pull /data/local/tmp/boot_a.img
adb pull /data/local/tmp/boot_b.img
adb pull /data/local/tmp/init_boot_a.img
adb pull /data/local/tmp/init_boot_b.img
ltkun commented 9 months ago

This happened when I upgrade a miui14 to Xiaomi hyperos. Because Xiaomi will wipe up the slot which equipped the MIUI14. My kernel flasher version is latest. And phone is Xiaomi 13 ultra.

capntrips commented 9 months ago

A test build, v1.0.0-alpha19+allow-invalid, is now available on the releases page. If this does not resolve your issue, feel free to reopen.