1

I'm trying to build my custom sunfish kernel on pixel 4a, note that the system is unlocked and rooted via "Magisk", After building success (for test I didn't change anything on kernel source) I pulled the boot.img, unpacked it replace the zImage with my new kernel (Image.lz4), packed and pushed it back to the boot partition via fastboot. Finally reboot and the booting process stuck on "Google" logo. Do I missed something ? Thanks,

3
  • 1
    Build your kernel with pstore enabled and check the kernel log in recovery: android.stackexchange.com/a/213460/218526. But nothing will appear there if the kernel doesn't boot at all. Just make sure that your zImage and boot.img formats are correct. Sep 23, 2021 at 10:55
  • It's already enable. Unfortinatly, "/sys/fs/pstore" im twrp is empty
    – sivandahan
    Sep 23, 2021 at 11:11
  • the z in "zImage" indicates gzip compressed kernel
    – alecxs
    Sep 23, 2021 at 15:39

1 Answer 1

0

according to this link you forgot to append dtb. replace Image.lz4-dtb in the zip and flash from TWRP https://forum.xda-developers.com/t/kernel-sunfish-09-apr-holydragon-kernel-10-stable-11-stable.4155283

8
  • Thanks, I'm doing pack and unpack boot.img correctly ! I tested it with packing and unpacking with the old boot It's looking the kernel source is the root cause ! For example(according to the post in link): 1. I tried to flash the "HDK_Sunfish-11_R.V.8.0" and it doen't boot correctly 2. I tried to flash the "HDK_Sunfish-10_R.V.1.1" and it boot correctly !
    – sivandahan
    Sep 29, 2021 at 9:59
  • Next, I pulled the config.gz from "/proc" and compared it with my source kernel configuration and I found a lot of difference related to kernel modules. After changing (=m) to (=y) the device boot correctly exclude touch screen. Could you forward me to official (google) working and tested kernel Thanks,
    – sivandahan
    Sep 29, 2021 at 9:59
  • Are you sure? In your question you said 'Image.lz4' but in my answer I say 'Image.lz4-dtb' I guess there is a difference (not sure if related to touchscreen)
    – alecxs
    Sep 29, 2021 at 11:47
  • xda-developers.com/…
    – alecxs
    Sep 29, 2021 at 11:48
  • 1
    Yes, I'm sure ! It's not meter what when I'm doing repacking of Image.lz4 with ./mkbootimg --kernel <zImage.lz4 file> --dtb <dtb file> -- ..... or replacing Image.lz4-dtb in any kernel and flashing I getting the same result
    – sivandahan
    Sep 29, 2021 at 11:57

Not the answer you're looking for? Browse other questions tagged .