Building Pixel 4a kernels #242
Replies: 6 comments 4 replies
-
I think you built the kernel correctly. The issue is with You'll have to take the stock images and repack them to include what was build. There are 3 components:
# Unpack boot.img
mkdir boot
cd boot
avbroot avb unpack -i ../boot.img
avbroot boot unpack -i raw.img
# Replace the kernel and dtb components
cp /path/to/out/android-msm-pixel-4.14/dist/Image.lz4 kernel.img
cp /path/to/out/android-msm-pixel-4.14/dist/sdmmagpie.dtb dtb.img
# Repack boot.img
avbroot boot pack -o raw.img
avbroot avb pack -o ../boot.modified.img -k /path/to/avb.key
# Unpack dtbo.img
mkdir ../dtbo
cd ../dtbo
avbroot avb unpack -i ../dtbo.img
# Replace the dtbo image
cp /path/to/out/android-msm-pixel-4.14/dist/dtbo.img raw.img
# Repack dtbo.img
avbroot avb pack -o ../dtbo.modified.img -k /path/to/avb.key |
Beta Was this translation helpful? Give feedback.
-
— that was my mistake, I've never seen I have built a new
Flashing the new How could I debug this? Are there any boot logs? |
Beta Was this translation helpful? Give feedback.
-
Another strange thing: if I flash the stock My actions:
— the phone boots correctly.
— the phone bootloops, fastboot says
— the phone bootloops, fastboot says |
Beta Was this translation helpful? Give feedback.
-
Further observations: I have found this blog: https://github.com/zhanghecn/luckzh_android_flash_notes/ So I have removed the line
in
in I will try to compile the kernel without both OverlayFS and KernelSU now. |
Beta Was this translation helpful? Give feedback.
-
Still no luck. I have compiled the kernel without OverlayFS and KernelSU, tried to boot it with
— this (probably) means that KernelSU depends on the OverlayFS. I don't know why the abovementioned user removed the OverlayFS in their blog post. P.S. out of curiosity, do you know why sometimes the phone shows the Google logo on a white background, and sometimes on a black background? |
Beta Was this translation helpful? Give feedback.
-
Maybe the white background is shown when the bootloader is locked ( I will try to get the debug logs later in January. Have a good holidays, wish you a happy New Year! |
Beta Was this translation helpful? Give feedback.
-
Moving here from #238 (comment)
Beta Was this translation helpful? Give feedback.
All reactions