• 0
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Github Google


  • Home
  • Development
  • GCam
  • About
  • Contact
User Links:
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Github Google



    Menu Home Development GCam About Contact



    Are you a Tech fan? Then register on Tech in Bermudas and be a part of our community. x

    Hot News: The vivo X80 series will introduce a new Sony IMX866 RGBW sensor! x

    Tech in Bermudas Communication Devices Smartphones Android Development Google Google Pixel 6 Pro Google Pixel 6 Pro Development KERNEL  Kirisakura Kernel [RAVEN]

     
    • 0 Vote(s) - 0 Average
    Share on:
    techinbermudas[ KERNEL ] Kirisakura Kernel [RAVEN]
    techinbermudas

    Administrators
    225 282 9
    Aug 2021
    None
    #1
    18-11-2021, 03:21 PM Last edit by techinbermudas
    [Image: kernel.webp]

    To keep it short: Here is a first preview build of Kirisakura - Kernel by Freak07 for the Google Pixel 6 Pro aka Raven and the Pixel 6 aka Oriole, together Raviole.
    I would appreciate if everybody that flashes the kernel, reads at least once through this opening post and the following ones.

    I´m sure some of you followed the movement towards the Generic Kernel Image (GKI) and Qcoms adaption to it called QGKI.
     
    You can find more information about GKI following this link.
     
    What does that mean for custom kernels and this custom kernel?
    The last few years the kernel on android devices was more or less compiled as a monolith. That means the kernel is in the zImage with all (most) drivers compiled inline.
    However with GKI this changed. There´s the base kernel image while vendor/device specific drivers are compiled as dynamically loadable kernel modules.
    On last years devices like the Pixel 5 (using a 4.19 kernel) and this years devices with SD888 on a 5.4 kernel base, there was the possibility to change the QGKI kernel back into a monolithic kernel image. (building the drivers that are on stock kernel external modules back into the zImage to end with a monolithic kernel)
    On the Pixel 6 I wasn´t able to achieve this yet. But during my tries I also wondered if maybe finally the time has come to follow suit, instead of trying to enforce old ways, when there´s a new way going forward.
    What does that mean. This means that at this point the kernel is shipped as images that are to be flashed via fastboot. At a later stage I´m sure we can modify anykernel3 to allow flashing zips again, but at this early stage fastboot flashable images will be provided.
    Those images can be flashed the same way the device is rooted, therefore I think everybody should be able to flash it easily since the device can´t be rooted any other way.

    The kernel was compiled using the aosp kernel build environment. Information about it can be found on the documentation page from google.

    For now this will be a preview build with only minimal features. I want to make sure the base is stable.
    However I found the time to tinker a bit with linux-stable and bake a few builds over the weekend.
    So here we go: The game has started. The crack flashers have something to flash.


    Features:

    - Based on latest kernel sources from Google, Kernel is made for Android 12
    - Linux-Stable-Upstream included to 5.10.45 (stock is 5.10.43)
    - use bbr as default TCP congestion algorithm (fasted algo according to this excellent research from @kdrag0n found here )
    - Enable support for TTL spoofing
    - Include LRNG, see here and here for more info (thanks @arter97 for the work on his op9 kernel)
    - important patches from kernel/common for 5.10 (here are more details)

    Powerhint Module:
    - restrict little cluster to 1,4ghz, mid cluster to 1,49ghz and big cluster to 1,58ghz during screen off, to reduce battery usage for example during music playback
    - available as a separate flashable magisk module.zip in the downloads section


    Requirements
    • Unlocked Bootloader;
    • USB-Debugging in developer options enabled;
    • Latest adb and fastboot binaries;
    • Working adb and fastboot environment;
    • Vbmeta flashed with disabling verification and verity flags (check process how to root the phone here)

    How to flash the Kernel:
    1. Download the images provided in the downloads section to your PC.
    2. a) Optional: Download the powerhint magisk module found in downloads section and flash it via Magisk Manager like any other magisk module.
    3. Flash the provided images using fastboot/bootloader and fastbootd (these are seperate modes)
    4. a) If you want to stay rooted patch the provided boot.img in magisk manager prior to flashing it via fastboot. Of course you need to adjust your command to flash like you did when rooting the device.
    5. vendor_dlkm.img needs to be flashed in fastbootd, while the other images need to be flashed via fastboot/bootloader


    How to boot into fastboot:

    From running phone:
    Code:
    adb reboot fastboot
     
    From fastboot/bootloader:
    Code:
    fastboot reboot fastboot
     
    Once in fastboot:
    Code:
    fastboot flash vendor_dlkm vendor_dlkm.img
     
    Boot from fastbootd to fastboot/bootloader to flash dtbo.img, vendor_boot.img and boot.img:

    Either select Reboot to bootloader option via buttons
    or type:
    Code:
    fastboot reboot bootloader
     
    Now in fastboot flash boot.img and dtbo.img
    Commands:
    Code:
    fastboot flash dtbo dtbo.img
    fastboot flash boot boot.img
     
    4. Reboot either via buttons
    or by typing
    Code:
    fastboot reboot
    5. Profit!



    F.A.Q:

    Question:
    How do I return back to stock or another kernel.
    Answer: Extract boot.img, dtbo.img, vendor_boot.img and vendor_dlkm.img from the matching factory image provided on googles download page.
    Flash those images via fastboot and you will be back on stock kernel.


    Credits:
    • @osm0sis for all his work on AK3;
    • @tbalden for being the best HTC, Pixel, OnePlus and Asus wingman!
    • @LeeDroid and @mwilky for their awesome roms and work I used on multiple devices!
    • @Captain_Throwback for all the mentoring and guidance!
    • @Eliminater74 for bringing me into the game and the Inspiration;
    • @nathanchance for his upstream guidance and assistance;
    • @RenderBroken for helping me out;
    • @flar2 for all his work;
    • @joshuous for all the help he provided to me in the past!
    • @arter97 for giving me advice;
    • @kdrag0n for his help and advices!
    • @topjohnwu for magisk and his entire work!


    [Image: download.png]
    [Image: tgicon.png][Image: githubicon.png][Image: paypali.png]

      
    |




    © 2022 Tech in Bermudas. All rights reserved.

    Linear Mode
    Threaded Mode