[GUIDE] how to build a kernel for S20 FE (snapdragon) may 28, 2022

Search This thread
*hello everyone my name is El_chanz and today I came here to teach you how to compile a kernel for s20fe

Ok guys, I am going to show you how to build a Sammy kernel from my source.
Below is a list of requirements that you must have in order to be successful.
REQUIREMENTS

1. For the best outcome, you need to be on Linux. I dont support VM Box
2. A github account or the like. Its free.
3. Be familiar with terminal commands
4. And have alot of patients

first thing open a terminal on your desktop you must run the following command: git clone https://github.com/Elchanz3/klimbokernel_s20fe.git

Screenshot from 2022-05-28 06-38-06.png


this will clone my source to your directory

well after you finish cloning my source to your directory enter on my source

Screenshot from 2022-05-28 06-52-05.png

well if you want to configure the kernel with your modifications go to klimbokernel_s20fe/arch/arm64/configs and open the r8q_defconfig as text and make your changes

after finishing your settings go back to /klimbokernel_s20fe


now you are inside the source open the terminal

Screenshot from 2022-05-28 06-57-15.png


now run the following command: ./build_kernel.sh ) as root, my script will automatically install the necessary dependencies: gcc clang and All the android dependencies

Screenshot from 2022-05-28 07-09-03.png


after you run the script it will start installing the things needed for the build it will ask for permissions to install

Screenshot from 2022-05-28 07-09-59.png


you need to say ( y ) to all

Screenshot from 2022-05-28 07-13-57.png


after installing everything the script will ask which variant you want to compile the kernel for
, you choose need to choose your device variant

Screenshot from 2022-05-28 07-18-00.png


ok after you choose it will compile for your variant you will need to wait, this can take time depending on your cpu in my case it compiles between 25 to 30 minutes

Screenshot from 2022-05-28 07-44-18.png



your kernel is already compiled and ready to be flashed!

to find the kernel zip file go to anykernel3

Screenshot from 2022-05-28 07-46-46.png


all done

remembering that my script runs clang 10 if you want the latest stable version of clang you will need to download

download link: https://android.googlesource.com/pl...3febb26cbd05d9a1e44f089190ac892f72e684.tar.gz

after you download this you will need to extract to /home

then open the following path: /home/chanz/clang-14.0.7/clang-r445002/bin

in my case i renamed this to clang 14 but enter linux-64 and do this path

copy this path and go back to kernel source and edit the build_kernel.sh script

Screenshot from 2022-05-28 07-56-32.png



edit the KERNEL_LLVM_BIN=clang-12 line to

KERNEL_LLVM_BIN=/home/chanz/clang-14.0.7/clang-r445002/bin/clang

remember put your clang path here, i used my only path as an example

after that save the script and run it in the source terminal (./build_kernel.sh)

well after that the kernel will be compiled automatically

and we finally ended up here😛

I hope I helped you

if I helped you don't forget to leave a like XD

goodbye until next time!
 
Last edited:
  • Like
Reactions: xxTurborocketxx

ricci206

Senior Member
Nov 6, 2007
327
594
Hi,

for compiling exynos kernel the guide it's fails.
Please update also exynos.
Thank you
 
  • Like
Reactions: kirbyNx

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi,

    for compiling exynos kernel the guide it's fails.
    Please update also exynos.
    Thank you
  • 1
    *hello everyone my name is El_chanz and today I came here to teach you how to compile a kernel for s20fe

    Ok guys, I am going to show you how to build a Sammy kernel from my source.
    Below is a list of requirements that you must have in order to be successful.
    REQUIREMENTS

    1. For the best outcome, you need to be on Linux. I dont support VM Box
    2. A github account or the like. Its free.
    3. Be familiar with terminal commands
    4. And have alot of patients

    first thing open a terminal on your desktop you must run the following command: git clone https://github.com/Elchanz3/klimbokernel_s20fe.git

    Screenshot from 2022-05-28 06-38-06.png


    this will clone my source to your directory

    well after you finish cloning my source to your directory enter on my source

    Screenshot from 2022-05-28 06-52-05.png

    well if you want to configure the kernel with your modifications go to klimbokernel_s20fe/arch/arm64/configs and open the r8q_defconfig as text and make your changes

    after finishing your settings go back to /klimbokernel_s20fe


    now you are inside the source open the terminal

    Screenshot from 2022-05-28 06-57-15.png


    now run the following command: ./build_kernel.sh ) as root, my script will automatically install the necessary dependencies: gcc clang and All the android dependencies

    Screenshot from 2022-05-28 07-09-03.png


    after you run the script it will start installing the things needed for the build it will ask for permissions to install

    Screenshot from 2022-05-28 07-09-59.png


    you need to say ( y ) to all

    Screenshot from 2022-05-28 07-13-57.png


    after installing everything the script will ask which variant you want to compile the kernel for
    , you choose need to choose your device variant

    Screenshot from 2022-05-28 07-18-00.png


    ok after you choose it will compile for your variant you will need to wait, this can take time depending on your cpu in my case it compiles between 25 to 30 minutes

    Screenshot from 2022-05-28 07-44-18.png



    your kernel is already compiled and ready to be flashed!

    to find the kernel zip file go to anykernel3

    Screenshot from 2022-05-28 07-46-46.png


    all done

    remembering that my script runs clang 10 if you want the latest stable version of clang you will need to download

    download link: https://android.googlesource.com/pl...3febb26cbd05d9a1e44f089190ac892f72e684.tar.gz

    after you download this you will need to extract to /home

    then open the following path: /home/chanz/clang-14.0.7/clang-r445002/bin

    in my case i renamed this to clang 14 but enter linux-64 and do this path

    copy this path and go back to kernel source and edit the build_kernel.sh script

    Screenshot from 2022-05-28 07-56-32.png



    edit the KERNEL_LLVM_BIN=clang-12 line to

    KERNEL_LLVM_BIN=/home/chanz/clang-14.0.7/clang-r445002/bin/clang

    remember put your clang path here, i used my only path as an example

    after that save the script and run it in the source terminal (./build_kernel.sh)

    well after that the kernel will be compiled automatically

    and we finally ended up here😛

    I hope I helped you

    if I helped you don't forget to leave a like XD

    goodbye until next time!
    1
    Hi,

    for compiling exynos kernel the guide it's fails.
    Please update also exynos.
    Thank you