OnePlusOSS / android_kernel_oneplus_sm8350

Other
64 stars 50 forks source link

Nethunter Kernel Compilie #6

Open Mustafagio opened 2 years ago

Mustafagio commented 2 years ago

I'm compiling for Nethunter, the compilation is successful, but only the image file is generated at the output, but the image.gz-dtb file I need. When I looked in menuconfig, I could not find the image.gz-dtb option under the boot menu, but when I looked at the kernel of the kernel_oneplus_sm8250 oneplus8 device, this option is available.

ghost commented 2 years ago

Do you think you could tell me how you built your kernel? I'm not having much luck with getting it to compile at the moment. Thanks.

Mustafagio commented 2 years ago

here https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel I did it using kernel builder actually I Flashed the kernel I compiled to the phone

Mustafagio commented 2 years ago

Nethunter app terminal and USB Hid is working but not working in android 11 as wifi monitor mode and packet injection are not patched

Mustafagio commented 2 years ago

Screenshot_20220331-220454 Screenshot_20220331-220417 Screenshot_20220331-220404

Mustafagio commented 2 years ago

Screenshot_20220331-220611

Eetuheino03 commented 2 years ago

can you tell how you do it becaus i try so long but nothing seems working??? help pleas!

Mustafagio commented 2 years ago

Are you in a situation where the nethunter application does not open and gives an error?

Eetuheino03 commented 2 years ago

no i figured that out but i don t know what defconfig i use

Eetuheino03 commented 2 years ago

and how i flash test room

Eetuheino03 commented 2 years ago

not test room that kernel

Eetuheino03 commented 2 years ago

i just rollback my device to android 11

Eetuheino03 commented 2 years ago

and do i need twrp?

Mustafagio commented 2 years ago

yes twrp magisk and https://forum.xda-developers.com/t/script-android-10-universal-mount-systemrw-superrw-featuring-makerw-read-write.4247311/ buna ihtiyacın var

Mustafagio commented 2 years ago

Universal Mount SystemRW bu This turns on the ability to read and write to the system file, without it nethunter will not work

Mustafagio commented 2 years ago

https://forum.xda-developers.com/t/rom-unofficial-nethunter-oneplus-8t-android-11-12-26-08-21.4324555/ I installed it using the installation steps here, I just created its own kernel and Flashed it using the steps here

Mustafagio commented 2 years ago

There is an easy way to build cores https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel Clone the folder in this link to the kernel source and run the build.sh file inside

Mustafagio commented 2 years ago

images (1)

Mustafagio commented 2 years ago

S. Set up environment & download toolchains, which you need to select first in this window, installs these necessary tools, then run it on kali linux It gives an error on Ubuntu

Mustafagio commented 2 years ago

The kernel I use is https://github.com/kristofpetho/kernel_oneplus_sm8350/tree/omega-11.0/arch/arm64/configs here omega_defconfig

Eetuheino03 commented 2 years ago

what twrp version you have?

Mustafagio commented 2 years ago

For example, if you select the 1. Edit default kernel config option, it will ask you which defconfig you should choose and the menuconfig screen will open, choose which drivers you want to add here. https://www.kali.org/docs/nethunter/nethunter-kernel-2-config-1/

Eetuheino03 commented 2 years ago

my twrp not flashing anything it says file format zip is wrong

Mustafagio commented 2 years ago

https://www.kali.org/docs/nethunter/porting-nethunter-kernel-builder/ You can learn most of the information on this page

Eetuheino03 commented 2 years ago

whay oneplus 9 pro?

Mustafagio commented 2 years ago

https://forum.xda-developers.com/t/recovery-11-official-teamwin-recovery-project.4294289/ Resource for twrp installation

Mustafagio commented 2 years ago

My phone is OnePlus 9 pro but I found out it works on OnePlus 9 too

Mustafagio commented 2 years ago

Sorry for OnePlus 9 use this https://twrp.me/oneplus/oneplus9.html

Mustafagio commented 2 years ago

twrp'im hiçbir şey yanıp sönmüyor, dosya biçimi zip'in yanlış olduğunu söylüyor

https://www.kali.org/docs/nethunter/porting-nethunter-kernel-builder/ The solution to your problem may be here

Mustafagio commented 2 years ago

I remember how I installed it, go to this link https://www.kali.org/get-kali/#kali-mobile and download the OnePlus north(11) zip and open the zip inside (boot-patcher) Enter the folder named image.gz-dtb or delete the image.gz file inside

Mustafagio commented 2 years ago

Boot-patcher After deleting the image.gz file from the folder, drag the image.gz file you compiled into it. Screenshot_20220403-203317 Screenshot_20220403-203311

Mustafagio commented 2 years ago

If you want I can send you my nethunter zip file that I made myself so you can have a chance to try it.

Eetuheino03 commented 2 years ago

Okey, can you send it to me? Because my twrp is throwing me error rmdisk or somthing

Eetuheino03 commented 2 years ago

Do you have Bluetooth drivers in that kernel? I hope you do

Mustafagio commented 2 years ago

Screenshot_20220404-171316

I made the Bluetooth settings in this picture, but I did not have a chance to try, I do not have a Bluetooth dongle

Mustafagio commented 2 years ago

Tamam, bana gönderir misin? Çünkü twrp'm bana rmdisk hatası veriyor ya da bir şey

There is another important issue I have to say, you need to download the nethunter zip with magisk, not via twrp. Like Magisk loads modules

Mustafagio commented 2 years ago

![Screenshot_20220404-172951](https://user-images.githubusercontent.com/92240796/161566302-fffc85d2-320a-4f5d-81a8-13d271c9b355.jpg Before installing the zip file, you need to do the steps I marked with blue, otherwise the zip file will be downloaded, but nethunter will not work, it gives a constant stopped error, it happened to me before

Mustafagio commented 2 years ago

my nethunter zip https://drive.google.com/file/d/1Czv379S30Ii3U1ypmj5SBVldHTGsbtsP/view?usp=drivesdk

Eetuheino03 commented 2 years ago

I have problem whit kernel builder i do all you say but its not building anything on arch/arm64/boot

Eetuheino03 commented 2 years ago

IMG_20220404_181006.jpg

Eetuheino03 commented 2 years ago

IMG_20220404_181127.jpg

Mustafagio commented 2 years ago

images (1) Press the letter S in this menu, have you made the necessary updates and are you a root account?

Mustafagio commented 2 years ago

161574876-7a1fa9da-27cd-46e3-a00b-6bdf295c00c1__01 vehicle zine hereThere's a bug in the toolchain here, normally compilation isn't short-lived. It's a long process like 30 minutes.

Mustafagio commented 2 years ago

Do the updates I said it will download you the toolchains and make sure you are root

Eetuheino03 commented 2 years ago

Okey do i delete all and install all needed tools on kernel builder option S

Btw i need to say you are so helpful thanks!

Eetuheino03 commented 2 years ago

But i do that S option first and im running script whit sudo

Eetuheino03 commented 2 years ago

Can you confirm where new kernel files is going because i try all things but nothing works

Eetuheino03 commented 2 years ago

IMG_20220404_185949.jpg

Eetuheino03 commented 2 years ago

IMG_20220404_185959.jpg

Eetuheino03 commented 2 years ago

IMG_20220404_190008.jpg

Mustafagio commented 2 years ago

the core file is not in the source file, be careful it must be in the Kali-nethunter/out folder