In fact, I use a very strange way to make it work.
1. Compile kernel
2. Copy kernel/.../dist/ to aosp/device/...-kernel/
3. Compile AOSP
4. Flash
5. After first boot, adb to push *.ko to  /vendor/lib/modules/
6. Reboot to fastboot, then flash boot.img again
7. Second boot, OK

On Saturday, April 2, 2022 at 1:26:58 AM UTC+8 dingsh...@gmail.com wrote:

> Hi  zandr,
>
> Could you please help if you happen to known how to build the right Pixel6 
> kernel?
>
> I am trying to build the Pixel6 kernel followed by 
> https://source.android.com/setup/build/building-kernels#customize-build
>
> 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. 
>
> Could you please help if you happen to known how to build the right Pixel6 
> kernel?
>
> I am also tried that  copy all the files from 
> out/android-gs-pixel-5.10/dist to the folder 
> AOSP/device/google/raviole-kernel/
> export TARGET_PREBUILT_KERNEL=DIST_DIR/Image.lz4
> make bootimage
>
> after that I flash the boot.img  , Pixel 6 couldn't boot up.
>
> could you please help??
>
> Best Regards
> Shaoyang
>
>
> On Wednesday, November 10, 2021 at 3:43:34 AM UTC+8 zandr wrote:
>
>> No. I use lineage though it's not exactly I want.
>> вторник, 09 ноября 2021г., 01:15 +03:00 от Möbius xiphia...@gmail.com:
>>
>> Have you solved?
>>
>> I am also encounting the same issue.
>>
>> Could you help me?
>>
>> 2021년 8월 18일 수요일 오전 6시 16분 44초 UTC+9에 zandr님이 작성:
>>
>> Hi,
>>
>> 1) After a build of AOSP+kernel I try to boot, but in the dmesg I 
>> infinitely see the following errors:
>>
>> [   62.895275] init: starting service 'vendor.chre'...
>> [   62.901496] init: Created socket '/dev/socket/chre', mode 660, user 0, 
>> group 1080
>> [   62.999721] init: Control message: Could not find 
>> 'android.hardware.vibrator@1.0::IVibrator/default' for ctl.interface_start 
>> from pid: 599 (/system/bin/hwservicemanager)
>> [   63.802603] init: Control message: Could not find 
>> 'android.hardware.sensors@2.0::ISensors/default' for ctl.interface_start 
>> from pid: 599 (/system/bin/hwservicemanager)
>> [   63.852698] init: Control message: Could not find 
>> 'android.frameworks.sensorservice@1.0::ISensorManager/default' for 
>> ctl.interface_start from pid: 599 (/system/bin/hwservicemanager)
>> [   64.000882] init: Control message: Could not find 
>> 'android.hardware.vibrator@1.0::IVibrator/default' for ctl.interface_start 
>> from pid: 599 (/system/bin/hwservicemanager)
>> ....
>>
>> 2) What I do to build:
>>
>> a) Take the latest (for 08/10/2021) sunfish's AOSP + kernel + binaries 
>> from
>> https://groups.google.com/g/android-building/c/aOj7GU1X3JI/m/vQjWa8KRAgAJ
>>
>> repo init -u https://android.googlesource.com/platform/manifest -b 
>> android-11.0.0_r40
>> repo sync
>>
>> repo init -u https://android.googlesource.com/kernel/manifest -b 
>> android-msm-sunfish-4.14-android11-qpr3 
>> repo sync
>>
>> unpack 
>> google_devices-sunfish-rq3a.210805.001.a1-995ad0d0.tgz
>> qcom-sunfish-rq3a.210805.001.a1-1ec3b6e6.tgz
>> to AOSP/vendor folder
>>
>> b) in kernel folder I run
>> ./build_sunfish.sh
>>
>> After the kernel build I copy all the files from 
>> out/android-msm-pixel-4.14/dist to the folder 
>> AOSP/device/google/sunfish-kernel.
>>
>> NOTE: Also as an alternative I tried to follow the doc using 
>> export TARGET_PREBUILT_KERNEL=DIST_DIR/Image.lz4-dtb
>> etc, but with the same net result.
>>
>> c) in AOSP folder I run 
>>
>>  . build/envsetup.sh 
>> lunch
>> 26. aosp_sunfish-userdebug
>>
>> m
>>
>> d) finally flash the device and finally boot, 
>> and then I stuck on boot logo and in dmesg I see errors mentioned in 1).
>> If I try to use prebuilt kernel from AOSP, so omitting of building and 
>> copying the kernel - b), then all went ok, but I need a kernel built by 
>> myself.
>>
>> I believe I do something wrong, but can't figure out what exactly.
>>
>> Could someone tell me how to build AOSP +kernel correctly?
>>
>> Thanks.
>>
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the "Android 
>> Building" mailing list.
>> To post to this group, send email to android-...@googlegroups.com 
>> <https://e.mail.ru/compose?To=android%2dbuild...@googlegroups.com>
>> To unsubscribe from this group, send email to
>> android-buildi...@googlegroups.com 
>> <https://e.mail.ru/compose?To=android%2dbuilding%2bunsubscr...@googlegroups.com>
>> 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 android-buildi...@googlegroups.com 
>> <https://e.mail.ru/compose/?mailto=mailto%3aandroid%2dbuilding%2bunsubscr...@googlegroups.com>
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-building/00901882-f642-4110-a172-b22536f34898n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-building/00901882-f642-4110-a172-b22536f34898n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
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 android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/a44dcfe8-e307-4caa-abec-10ac384f65ebn%40googlegroups.com.

Reply via email to