Skip to content
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

[Solved] Xiaomi Alioth (POCO F3) Vendor_Boot not boot #128

Closed
Rofikkernel opened this issue Aug 6, 2023 · 3 comments
Closed

[Solved] Xiaomi Alioth (POCO F3) Vendor_Boot not boot #128

Rofikkernel opened this issue Aug 6, 2023 · 3 comments

Comments

@Rofikkernel
Copy link

Rofikkernel commented Aug 6, 2023

Thanks for your hardwork @cfig , i hope you still work in this project ABIE because it already five years project i see from 2018

I succesfully unpack vendor_boot.img with vbmeta.img following your instruction

Info
ROM : MIUI 14 Android 13
Host : Ubuntu 22.04 jammy
ABIE version = android 13, june 16 build
DTC = using device tree compiler package by ubuntu, if using dtc aosp (1.6.0) it cannot decode YAML
Reproduce

  • copy Vendor_boot & vbmeta to project folder
  • Gradlew unpack
  • gradlew pack ( i did not modify or touch anything to test it)
  • Fastboot flash vendor_boot_ab vendor_boot.img.signed
  • fastboot flash vbmeta_ab vbmeta.img.signed
  • Device stuck at POCO logo (not MIUI logo) and restart about 30s (it didnot throw or detected in adb, so cannot see what happen but i think if have i have serial cable i can see what going on
    i think it failed verify in bootloader or something

Note: i still succesfull boot if only repacked vbmeta im flashing, it fail in if flash repacked vendor_boot.img

screenshot Unpack
image

Screenshot Pack
image
image

i see in some log in repack is

  • cfig.Avb - original image vendor_boot.img.signed doesn't have AVB footer
  • avb.blob.AuxBlob - encodePubKey(): No key to encode for algorithm NONE
  • no pubkey in auxBlob

here My vendor_boot.img and vbmeta,img for investigation
Alioth.img.zip

@cfig
Copy link
Owner

cfig commented Aug 10, 2023

Yeah I still work on this project from time to time, as I am not (yet) laid off and still have a chance to work ...
For the issue you meet, maybe you can refer to #117
Someone found MI used a strange format parameter to pack its image. Maybe you can have a try with that ?

@Rofikkernel
Copy link
Author

thank @cfig where that crc64 setting file location

@Rofikkernel
Copy link
Author

Rofikkernel commented Aug 12, 2023

SOLVED!
What cause that error is device-tree-compiler by ubuntu not compatible with miui 14 dtb

  • sudo apt purge device-tree-compiler
  • git clone latest branch than release version of android boot editor
  • ./gradlew unpack
    (now unpacked vendor_boot without dtb.dts source)
    -./gradlew pack
  • flash new packed files and boot

Workarround for want to modify dtb
i am using prebuilt dtc by aosp
https://android.googlesource.com/platform/prebuilts/misc/+/refs/heads/android11-release/linux-x86/dtc/
and manualy extract and pack again that dtb

@Rofikkernel Rofikkernel changed the title Xiaomi Alioth (POCO F3) Vendor_Boot not boot [Solved] Xiaomi Alioth (POCO F3) Vendor_Boot not boot Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants