-
Notifications
You must be signed in to change notification settings - Fork 236
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
Xiaomi MI5 (gemini) does not boot after re-pack #117
Comments
After further testing I found that the following steps works:
I am able to boot the produced So it looks like the issue is somewhere in the RAM disk building 😕 |
I finally found what is the issue. When compressing the file to xz, you use CRC64 by default. But Xiaomi gemini fails for that and works only if I use CRC32. The default LienageOS ramdisk compression method is following: I can achieve this effect invoking I quickly checked your source code and it seems |
Thanks for the professional ticket and the great analysis. |
Hi @zvirja, |
ramdisk xz check flags: crc32/crc64 etc. XiaoMi recovery image uses CRC32 and can not suppport CRC64
xz file format: Supported by: |
We can set CRC32/CRC64 now. But I haven't found way to identify the compression level of a xz file, so the compression level is still default(6) when packing ramdisk. |
ramdisk xz check flags: crc32/crc64 etc. XiaoMi recovery image uses CRC32 and can not suppport CRC64
Maybe related with this issue: |
https://github.com/kdrag0n/velocity_tissot/blob/master/flasher/boot-patcher.sh i found that crc32 in that link but for xz format only using that case "$rdformat" in in unpacked vendor_boot.img alioth ramdisk in gz format |
Scenario:
recovery.img
for LineageOS 19.1 from here: https://download.lineageos.org/devices/gemini/builds./gradlew unpack
./gradlew pack
After that I try booting using
fastboot boot
- it hangs for a bit and later phone simply boots to a normal boot instead of recovery. Of course I can boot LOS recovery or TWRP - that works just fine.I've tried all of the output images - none of them works. I also tried with LineageOS 18.1 recovery - the same issue. So I imagine it's device specific.
The unpack/pack output does not contain any error and everything looks smooth.
I found that you don't specifically support Xiaomi MI5, but you seem to support other Xiaomi device.
Could you please suggest what the possible issue could be?
Thank you very much for your time and the tool - it's great!
The text was updated successfully, but these errors were encountered: