Modified from Arafattex's kernel source. I just cloned the original source and modified configurations to match Nethunter's hardware requirements.
To modify kernel configurations, go to kali-nethunter-kernel folder and run ./build.sh, select option "Configure and compile Kernel from scratch"
I am not responsible for any damage you may cause to yourself or to others by misusing the sofware provided here. Stay inside legal limits and test only on your systems or otherwise authorized by the system owner.
-
Clone or download code.
-
Go to this link ,clone or download and put all files in /clang-13/aaa (create this folder inside the root folder).
-
Then run ./merlinp.sh to build kernel for Redmi Note 9.
-
Go AnyKernel3-master to get your zip file.
-
Flash stock rom version V12.5.1.0.RJOMIXM (never tested other versions) from fastboot (bootloader need to be unlocked, be careful to not lock it again when flashing).
-
Flash vbmeta_vd171--V12.5.1.0.RJOMIXM.img to vbmeta partition (without it, the device will enter a bootloop).
-
Flash OrangeFox-Unofficial-merlinx.img to recovery partition.
-
Put the zip you compiled in an external SD Card.
-
Reboot to recovery
-
Use Orage Fox Recovery to install the kernel's zip.
-
Install Magisk APK
-
Use Orange Fox to flash the magisk patched image, this will install root on the device.
-
Boot to system and use Magisk Manager to install Kali Nethunter and wifi firmwares.
All files mentioned here are provided in the important files folder.