Hey xdas,
i just received my new Samsung Galaxy z Fold 4
I tired my best to understand the docu on kali but its not the best
i am also new to compiling kernels at that level so maybe someone can help here
I attached as much as i could
So the steps i took so far is
(https://www.kali.org/docs/nethunter/)
i downloaded the kernel source :
and ran into the error attached in the error txt
I would like to understand how i can build the kernel the normal way , without the nethunter tool
and maybe someone could help to make this working with nethunter that would be great !
i want to understand the process and i am willing to help , so i am not asking for a final kernel , more for the way to go in general to also give the community a benefit for the next new kernel we want to port
as mentioned the docs are not the best !
thanks for your time
i just received my new Samsung Galaxy z Fold 4
- SAOMC_SM-F936B_OXM_EUX_12_0045 EUX /-/EUX/EUX
- Kernel : 5.10.81-afaneh92-gd8d6af751972 (flashed for twrp)
I tired my best to understand the docu on kali but its not the best
i am also new to compiling kernels at that level so maybe someone can help here
I attached as much as i could
So the steps i took so far is
- Unlocked Bootloader
- installed the twrp ( like descriped here : https://forum.xda-developers.com/t/recovery-unofficial-twrp-for-galaxy-z-fold4-snapdragon.4498743/ )
- installed magisk
(https://www.kali.org/docs/nethunter/)
i downloaded the kernel source :
- https://opensource.samsung.com/uploadSearch?searchValue=SM-F936 (my device is EUX see infos for device above)
- downloaded the proper=? toolchain , there is an readme_kernel inside the kernel_source with a link to the toolchain , i am unsure about this
- https://opensource.samsung.com/uploadSearch?searchValue=toolchain
- there are two options i took the S22(Exynos) file ( hope thats right ?)
- https://opensource.samsung.com/uploadSearch?searchValue=toolchain
- now we come to the difficult part :-(
- unpack the kernel file i did and there a subfolders so i decided to use the subfolder common as the root mentioned in the docs:
- you can begin by cloning our kernel builder to the root of your kernel’s folder, and prepare the environment:
- from common folder i did git clone https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel
- cd kali-nethunter-kernel
- I did not change the configs as i am new to that so i know there are some exports inside the build config inside the kernel file but i dont know how get them together
- ./build.sh
- S. Setup Environment and download toolchains.
- 2. Configure & compile kernel from scratch
- It found the devconfig so i took it as mentioned in the docs (Select your device’s defconfig, then save and exit to start the building process.)
- did not edit the kernel config till jet
and ran into the error attached in the error txt
I would like to understand how i can build the kernel the normal way , without the nethunter tool
and maybe someone could help to make this working with nethunter that would be great !
i want to understand the process and i am willing to help , so i am not asking for a final kernel , more for the way to go in general to also give the community a benefit for the next new kernel we want to port
as mentioned the docs are not the best !
thanks for your time
Attachments
Last edited: