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,
1 Answer
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
-
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 ! 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, 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)– alecxsSep 29, 2021 at 11:47
-
-
1Yes, 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 Sep 29, 2021 at 11:57
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.