[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.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:

ricci206

Senior Member
Nov 6, 2007
358
628
Hi,

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

ip-drop

Member
Nov 11, 2021
10
0
Hello! I'm trying to understand the process of building the kernel from source according to the instructions but I get an error. Can you suggest what am I doing wrong?
Screenshot from 2022-07-08 15-24-02.png
Screenshot from 2022-07-08 15-28-52.png
 

ip-drop

Member
Nov 11, 2021
10
0
Subsequently, when building the kernel, I encountered a problem, can you tell me how to fix the errors?
Screenshot from 2022-07-11 09-44-35.png
Screenshot from 2022-07-11 09-45-19.png
 
I am planning to build roms for this device. Can you help me with some things?
1) Does this device have a device tree?
2) If not, I will try to build one but this will be my first time so I will appreciate any help
sorry for late reply, im little busy these days, 1) idk if this device have since i don't see any one.
 

ip-drop

Member
Nov 11, 2021
10
0
Greetings to all !!! I finally learned how to successfully compile the kernel for my device .. but later I ran into a problem. My software cannot raise the access point with the given software (SSID and password). Something intuitively tells me that when compiling the kernel, I did not include any of the settings .. Can someone tell me what the problem is ???
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    *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.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
    1
    Hello! I'm trying to understand the process of building the kernel from source according to the instructions but I get an error. Can you suggest what am I doing wrong? View attachment 5655003View attachment 5655005
    run sudo apt install flex
    1
    Hi,

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


    maybe i will do it today if i have time