Hi I am trying to build AOSP 12 and kernel and unable to get it working on the Pixel 6.
my AOSP branch is android-12.1.0_r2 and my kernel branch is android-gs-raviole-5.10-android12L. Pixel 6 works well if only flash the AOSP images, however, it won't boot up if I flash the boot.img build with kernel. Here is my step: 1. mkdir android-kernel && cd android-kernel 2. repo init -u https://android.googlesource.com/kernel/manifest -b android-gs-raviole-5.10-android12L 3. repo sync 4. build/build.sh I could see the logs below after I build successfully. -------------------------------------------------------------------------------------------------------------------------- Files copied to /mnt/code/shaoyang/kernel/out/android-gs-pixel-5.10/dist vendor_ramdisk-oriole.img is LZ4 compressed boot image created at boot.img Signing the boot.img... vendor boot image created at /mnt/code/shaoyang/kernel/out/android-gs-pixel-5.10/dist/vendor_boot.img -------------------------------------------------------------------------------------------------------------------------- Note that the boot.img and vendor_boot.img had already been generated, then I use “fastboot flash boot boot.img” and “fastboot flash vendor_boot vendor_boot.img”to flash the boot.img and vendor_boot.img. Unfortunately, the Pixel6 couldn’t boot up, it always stay in the fastboot mode. Any help/instruction would be greatly appreciated! Best Regards Shaoyang On Wednesday, June 16, 2021 at 6:35:08 AM UTC+8 [email protected] wrote: > I'm following the instructions on source.android.com > <https://source.android.com/setup/build/building-kernels> for building > kernels and unable to get it working on the Pixel 5. > > There are a couple of paths I've taken with differing results. > > 1. Check out the aosp-kernel android-msm-redbull-4.19-android11-qpr2 branch > 2. Run the build_redbull.sh (or build_rebull-gki.sh) script. > 3. In the aosp directory, export TARGET_PREBUILT_KERNEL to the built > Image.lz4-dtb from aosp-kernel > 4. flash aosp using `fastboot flashall -w` > 5. Observe bootloop, the devices never reaches a point where adbd starts > and I can shell in > > Then I saw from other posts that when recompiling the kernel the prebuilt > kernel modules that are in the aosp repository are out of date and are > being packaged into the vendor_boot image and failing to load. > > So... next I tried copying all of the compiled aosp-kernel modules and > images into the aosp/device/google/redbull-kernel directory and rebuilding. > > This gets farther and I'm now able to adb shell into the device, but the > display stays on the Android boot logo and various other services/sensors > don't work. > > So, my question is, what's the process for a successful build/flash of the > aosp kernel on the Pixel 5? > > For reference I'm using the aosp android-11.0.0_r37 branch and aosp kernel > android-msm-redbull-4.19-android11-qpr2 branch. > > Any help/instruction would be greatly appreciated! > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/c9d84387-bc84-4826-9bb0-1183e1588651n%40googlegroups.com.
