LF Pie-based Kernel for Galaxy Tab S4 WiFi to run Nethunter - Samsung Galaxy Tab S4 ROMs, Kernels, Recoveries, &

I do not have the knowledge to compile the kernel, myself, and I really want the full Nethunter suite on my tablet.
Could someone help me out or walk me through the process? The instructions on OffSec for building did not seem clear. And I've not been successful finding the stock kernel I need, in the form I understand to the best of my ability that I need.
I currently have WETA and Magisk on my gts4lwifi and I want to do whatever I need to get Nethunter running, correctly.
Sent from my SM-G975U

kernel building
Cryopier said:
I do not have the knowledge to compile the kernel, myself, and I really want the full Nethunter suite on my tablet.
Could someone help me out or walk me through the process? The instructions on OffSec for building did not seem clear. And I've not been successful finding the stock kernel I need, in the form I understand to the best of my ability that I need.
I currently have WETA and Magisk on my gts4lwifi and I want to do whatever I need to get Nethunter running, correctly.
Sent from my SM-G975U
Click to expand...
Click to collapse
i dont know where to locate the source code, people on git hub will probably have it, but in my experience its better getting it from the manufacturer.. i have a guide on how to compile on nougart kernel for nvidia shield post

Related

[Q] Make a kernel

hi everyone
well, i read for the forum and some threads about how to make a kernel,
but i have some doubt,
really a want to create a kernel for app tun.ko because according the app its possible that tun support is COMPILED WITHIN YOUR KERNEL.
well, my phone its cdma and i don't know how to get a kernel for modify, i think extract a kernel for mi actual room CM7 but i don't know how to do.
htc-desire5 said:
hi everyone
well, i read for the forum and some threads about how to make a kernel,
but i have some doubt,
really a want to create a kernel for app tun.ko because according the app its possible that tun support is COMPILED WITHIN YOUR KERNEL.
well, my phone its cdma and i don't know how to get a kernel for modify, i think extract a kernel for mi actual room CM7 but i don't know how to do.
Click to expand...
Click to collapse
Yeah, this is great idea!
I doesn't know too, but when I know, I will made OTG support kernel
lol, have you ever tried something easyer??
I have no idea from ROM but i tryed some ROM modding and that wasn't that easy. A tip try first something basicly and more easyer. It's like you want to build an computer without knowing anything about electric

[Q] SElinux permissive SM-P605?

As the title suggests, is there a kernel for the P605 which will allow SElinux permissive, and therefore allow full linux chroot installs to be completed with relative ease.
I am aware of a permissive kernel for P600, http://forum.xda-developers.com/showthread.php?t=2590311
but assume this will not function for the P605.
If not can the same steps used to make the P600 kernel permissive be applied to a P605 kernel?
Looking for the same kernel
I'm looking for the same SELinux-permissive kernel for P605.
You definitely can't use the P600 kernel as it is for the Exynos variant (P600/01) while ours (P605) is the Quallcom CPU.
Unfortunately the P600/01 was released around the world first with most devs getting the Exynos version. Little developement has been done for the P605 but there has been a little. Just not for an SE-Linux permissable kernel, at least not here on XDA...
Will try to build it myself
I've been thinking of modifying and building the kernel myself. The problem is that there are several kernel source codes on Samsung's website for SM-P605. (I can't post the link here) My device model is SM-P605 without any suffixes so I think it's the first kernel that I should choose.
I think modifying the kernel into SELinux permissive should be as easy as changing a default value in one of the source files and then I can build the kernel using the instructions that come with it. Fingures crossed!
One more thing: in the source code that Samsung provides there are two directories, one kernel and the other platform do I need to build the platform too?
Rhesus007 said:
I've been thinking of modifying and building the kernel myself. The problem is that there are several kernel source codes on Samsung's website for SM-P605. (I can't post the link here) My device model is SM-P605 without any suffixes so I think it's the first kernel that I should choose.
I think modifying the kernel into SELinux permissive should be as easy as changing a default value in one of the source files and then I can build the kernel using the instructions that come with it. Fingures crossed!
One more thing: in the source code that Samsung provides there are two directories, one kernel and the other platform do I need to build the platform too?
Click to expand...
Click to collapse
Hey Rhesus007, just wondering if you have made any progress?
Im really in need of a permissive kernel, however i have no knowledge of how to make it etc.
Thanks.
Just dropping back in the thread, still hoping this will happen, as linux on this tab would be really useful imo.
Someone with some dev experience might be able to use the methods used on the note3, which has the same snapdragon 800 soc to achieve this. The basic steps needed to modify the kernel are described in this thread
http://forum.xda-developers.com/showthread.php?t=2471416
if nobody with experience can do this, I might give it a try, but that might be a recipe for disaster....
patchseven said:
Just dropping back in the thread, still hoping this will happen, as linux on this tab would be really useful imo.
Someone with some dev experience might be able to use the methods used on the note3, which has the same snapdragon 800 soc to achieve this. The basic steps needed to modify the kernel are described in this thread
http://forum.xda-developers.com/showthread.php?t=2471416
if nobody with experience can do this, I might give it a try, but that might be a recipe for disaster....
Click to expand...
Click to collapse
I've got no experience with this, if you could attempt it, I'm sure a lot of people would be grateful!
For those still looking.
Maybe this might work, don't know if it will work on custom ROM's
http://forum.xda-developers.com/showthread.php?t=2765353&page=3
EP005 said:
Maybe this might work, don't know if it will work on custom ROM's
http://forum.xda-developers.com/showthread.php?t=2765353&page=3
Click to expand...
Click to collapse
http://forum.xda-developers.com/gal...rnel-stock-selinux-permissive-kernel-t3232814
For the 5.1.1 update!

Can any one help with a [KERNEL] Nethunter for Galaxy S20+ SM-G985F/DS

hi can any one help with a tutorial for me to get nethunter on my galaxy s20 Plus also with a way to do the kernel for Samsung as ive been failing
Better start with learning how to compile linux kernel from source, then learn what a cross-compiler is, then learn how to build AOSP kernel from source, then learn how to apply patches to kernels, annnnnnd then compile nethunter source.
thanks and where can i find this info or good books on matter or toutorials?

Nethunter working on android 11/11.0.1.1.HD65AA

Hi, so after searching for a bit on if kali nethunter could be installed on the 7T, I found that most people were sticking to the OP7 due to increased compatibility/development. Although, I'm able to install nethunter on my 7T I could not find a kernel for the Oneplus 7T with nethunter support. Mainly for the ext. wifi adapter support in my case. So after some research I could see that the 7T is listed as a supported device on the nethunter git page so I decided to try their build.py script to see if I can get one to work on my 7T HD1905. After some trial and error I ended up with a working kernel for my device which is a OP7T (HD1905) on A11, build 11.0.1.1.HD65AA.
So, this is what I did.
-rooted my phone using latest magisk(I always use canary)
-flashed the kernel that was compiled using the Kali nethunter build.py script using ex kernel manager(there were some errors in the log, but didn't affect the flashing)
-downloaded the nethunter store app from the kali website and installed the nethunter app and the nethunter terminal app.
-through the nethunter app I installed chroot under the kali chroot manager tab. I selected the option to download from the website.
-I also installed the nethunter wireless firmware from the magisk repo. Not sure if that was 100% necessary, but hey why not?
After that completed, I had a working kali terminal. Now the test was if I can get my ext. wifi adapter to actually get recognized now and could I put it in monitor mode....and the answer was yes.
I will post the kernel zip if anyone wants to take a look at it. I'm sure it needs work from someone who actually knows what they're doing. I was just excited that it actually somewhat worked. I figure it's a good starting point. Also, sorry for the write up. It's not very good. I might go and rewrite with a little more detail later on.
Would it be somehow applicable to OnePlus 3 also?
I remember someone made a nethunter kernel in telegram group.
Here’s the github Link
Apeek7 said:
I remember someone made a nethunter kernel in telegram group.
Here’s the github Link
Click to expand...
Click to collapse
Sorry, been away from the 7T for a bit. Thanks for this. Working great so far.

Question Nethunter Build help [Kernel / System]

Hey xdas,
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 would like to install nethunter on the device with a working kernel
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
Then for nethunter
(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 ?)
now we come to the difficult part :-(
first i tried to compile via the instructions on kali docs
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
@yesimxev / @V3rB0se / @afaneh92 need some help here
Which toolchain to you use in nethunter kernel builder? I'd recommend clang-12.
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+archive/refs/tags/android-12.0.0_r12/clang-r416183b1.tar.gz
Download, extract somewhere and add it's path to kali-nethunter-kernel/config (clang-10 is the default). no need for setup environment again.
Any luck with this? i am in the same situation trying to build a nethunter kernel for my zfold4
Wanttoknowthings said:
Hey xdas,
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 would like to install nethunter on the device with a working kernel
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
Then for nethunter
(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 ?)
now we come to the difficult part :-(
first i tried to compile via the instructions on kali docs
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
Click to expand...
Click to collapse
Great research bro , same as here.
Difference is I am doing it for M21 .
And to flash the kernel I need to do port twrp for vA12 M21 too.
Great respect bro.
Anyone can help with kernel? u need AR9271 and rtl8188EUS drivers on ysl Android 9
https://forum.xda-developers.com/t/arm64-rom-unofficial-9-0-0-ysl-lineageos-16-0-18-08-2019.3958696/ <----- this rom
Phone: codename-[ysl]
Redmi s2
i have been trying to make it myself but always gets fails
im having the same issue at this step... anyone willing to show the part on how to setup the toolchain properly>?
heres a screenshot of my issue
this is local.config file
kluongo said:
heres a screenshot of my issue
Click to expand...
Click to collapse
It shows the error, do apt install flex
yesimxev said:
It shows the error, do apt install flex
Click to expand...
Click to collapse
Will do, thanks... You know I was looking through the process and missed that line... I suppose next time I should take more time and look more carefully
kluongo said:
Will do, thanks... You know I was looking through the process and missed that line... I suppose next time I should take more time and look more carefully
Click to expand...
Click to collapse
Great, I'll add to the setup env script so it won't be missed. It shouldn't happen in the first place though

Categories

Resources