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

Can't repack Google Pixel 3 XL boot.img #4

Open
zhuowei opened this issue Dec 7, 2018 · 0 comments
Open

Can't repack Google Pixel 3 XL boot.img #4

zhuowei opened this issue Dec 7, 2018 · 0 comments

Comments

@zhuowei
Copy link
Contributor

zhuowei commented Dec 7, 2018

To reproduce:

  • grab boot.img from Pixel 3XL December factory image (crosshatch-pq1a.181205.006-factory-96b23504.zip)
  • run:
bbootimg -x boot.img
bbootimg -u boot.img zImage
  • try to boot the resulting image.

Expected: repacked image boots
Actual: fastboot hangs during boot:

$ fastboot boot boot.img 
Downloading 'boot.img'                             OKAY [  1.495s]
booting                                            

Reconnecting to fastboot and dumping bootloader log with fastboot oem dmesg shows that the bootloader can't detect the kernel compression type:

(bootloader) AcceptCmd:download:04000000
(bootloader) Downloading 67108864 bytes
(bootloader) AcceptCmd:boot
(bootloader) avb_slot_verify.c:524: DEBUG: Loading vbmeta struct from pa
(bootloader) artition 'vbmeta_b'.
(bootloader) avb_slot_verify.c:524: DEBUG: Loading vbmeta struct from pa
(bootloader) artition 'system_b'.
(bootloader) avb_slot_verify.c:286: DEBUG: dtbo_b: Loading entire partit
(bootloader) tion.
(bootloader) AvbLoadAndVerifyBootImages: boot state orange
(bootloader) kernel compression not supported
(bootloader) Error calling BootPrepareAsync Unsupported
(bootloader) Fastboot: Error executing command boot

This device uses the new v1 boot image header along with a switch to LZ4 compressed kernel; would that cause the issue?

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

1 participant