-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid boot.img, no ramdisk or kernel found
on Xiaomi 14 Android 14
#16
Comments
使用网友二次修改的版本可以正常工作,我可以提供给你检查一下:https://taichi.lanzoum.com/inY1C0sxe09a |
Invalid boot.img, no ramdisk or kernel found
on Xiaomi 14 Android 14
I'm guessing something was lost in translation there. As noted in #15, dumps of the relevant partitions would be helpful. Also the link didn't work for me, though at a glance it just appears to be the app's APK.
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 |
If you have 4 files, I really only need the
I have no way of knowing what you currently have installed on your device. You'll have to tell me. I assume you made the dumps on the Xiaomi 14 Android 14 and you're still experiencing the issue with Kernel Flasher?
I'm not seeing any obvious issues in your screenshot. Can you elaborate on the issue you're experiencing? P.S. It would be helpful to me if you would go ahead and translate your responses to English. As-is, if I don't directly quote the translations of your messages in their entirety, I'll have to retranslate them any time I need to go back to review something. |
I will provide you with three files, please keep an eye on their file names. |
I'm able to run Kernel Flasher with the official and repair images you provided. To confirm, both of those images are currently flashed on the device, and one is Edit: To potentially save a little back and forth, what I suspect is the device is brand new and the second slot is still completely blank (see here for an example). If that is the case, a simple workaround would be to sideload an OTA to populate the second slot. Alternatively, you can use the test build linked in that post, which will allow Kernel Flasher to run with a bad slot. |
My current problem is that when I open the software, it displays an error and I am unable to proceed with subsequent operations. I am unable to scan the AK3 package.The software is unable to display the normal functional main interface. |
The error is due to being unable to read or process one or both of I ran a test with the two |
The file I provided you is the one I am currently using on my phone. I cannot provide both - A and - B files because there is only one file, either in slot A or slot B. In short, alpha18 cannot read the initboot file in slot A or slot B that I am using. I don't know why. |
I conducted tests and found that: alpha18-alpha15 ❌ Both prompt for errors Earlier versions did not test them。 |
I will now provide you with the file: boot_ a.img (and attach a screenshot of my interface using alpha14) |
You can retrieve adb shell
su
dd if=/dev/block/by-name/init_boot_a of=/data/local/tmp/init_boot_a.img
dd if=/dev/block/by-name/init_boot_b of=/data/local/tmp/init_boot_b.img
exit
exit
adb pull /data/local/tmp/init_boot_a.img
adb pull /data/local/tmp/init_boot_b.img I cannot debug this issue without those dumps.
There was a bug in alpha13 and alpha14 that erroneously checked the active slot rather than the inactive one. |
Once again, would you like
However, alpha13 and alpha14 do indeed work properly on my device. |
|
ok,I am doing,but,I am currently using “kernel su”, which seems to work through |
I don't know anything about KernelSU. From this it seems that it should normally be possible. |
https://kernelsu.org/ |
No. The point is that issue is specific to your device. I assume the I'll repeat my note from above, just in case that can resolve your issue without further debugging:
Alternatively, you may be able to dump the |
This commit may be helpful: d1623fe The mod version source is here: main...tiann:KernelFlasher:main |
(I have resolved the permission issue by manually granting the shell program root permission on my phone.) |
As was the case here P.S. I'm almost certainly going to have to rework the initialization code of the app at some point, but it won't be in the next few days. |
thankyou,I have updated the OS to another slot B, and before restarting my phone, I need to also flash the AK3 zip file into another slot B. However, according to my recollection, this issue seems to still exist because at this point, slot A becomes empty for your application. It seems that it can only recognize the current card slot in the OS and will never be able to recognize another card slot.(I'm not very sure, let me observe again)This may help you:#16 (comment) |
Flashing to the inactive slot was removed in alpha03. I don't immediately recall what prompted that change, but if it is to be readded at some point in the future, it will be with AK3 functions, rather than |
I am not a technician, I can only provide you with some feedback as much as possible. But I am certain that flashing into an inactive card slot is a very necessary feature, because for A/B devices, whether using a Mask or KSU to obtain root permission, after updating the OS to another card slot and before restarting the device, both the mask and ksu need to be flashed into another card slot before restarting the device. Therefore, we look forward to your ability to address the issues discussed in this discussion in future versions. Thank you! |
It has been confirmed that when updating the system, the OS was installed in the B card slot, while the AK3 was flushed into the B card slot. After restarting the phone, this issue still exists when installing Alpha18. |
小米14手机,安卓14,alpha18打开就提示:
![image](https://private-user-images.githubusercontent.com/61766946/283671153-f623cb63-3eb1-4860-9335-bd3e92a1ce1f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDE3NTAsIm5iZiI6MTczOTYwMTQ1MCwicGF0aCI6Ii82MTc2Njk0Ni8yODM2NzExNTMtZjYyM2NiNjMtM2ViMS00ODYwLTkzMzUtYmQzZTkyYTFjZTFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA2MzczMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI4ZDRhNzhjMmRkNzViOGU4ZTJhZjg1OWI5NDQ4ZjkxYjhlOTZlNGY3NzJiMjFjNWQ2ZWFiYThkNDE5Nzk5MWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.V3WEOl5VjLjiI_Um1fuoH9RmILq1QVPmAsZEG_smLZo)
Invalid boot.img, no ramdisk orkernel found
The text was updated successfully, but these errors were encountered: