Re4son-Kernel for Raspberry Pi
- Raspberry Pi 0/0W/1/2/3 A/B(+) support
- Experimental 64bit support (kernel8-alt.img)
- Natively compiled full of pure goodness
- Includes kernel headers
- Support for all common TFT screens
- Latest Nexmon drivers
- Raspberry Pi 3 A+ support
- Raspberry Pi PoE HAT support
- Supports armel (Pi 1, Zero, Zero W) and armhf (Pi 2, 3)
- Linux kernel 4.14.93
- Natively compiled for perfect out of tree module compilations in kali linux
- Ethernet gadget support to ssh into raspberry pi via USB connection
- “kalipi-config” tool to set up the raspberry pi, enable auto-logon, etc.
- “kalipi-tft-config” tool to setup tft displays
- Support for all common displays
- Includes latest nexmon drivers in “nexmon” directory (with support for -m6 and -m7)
- “swap brcmfmac firmware” function in “kalipi-config”
- Includes xinput-calibrator in “tools” directory
- RTL8188EU driver (TL-WN722N v2) with monitor mode support
- RTL8812AU & RTL8811 & RTL8814AU with monitor & injection support
- Kimocoders brand new rtl8192eu driver with injection support
- Wifi injection support for Alfa AWUS051NH v2
- Bluetooth package upgraded to Bluez 5.39 makes it faster and more stable
- Any questions or poblems? Post in the forums
Download the “current stable” Re4son Kernel here
Re4son “old stable” kernel highlights:
- Previous stable kernel, based on Linux kernel 4.9
- Safer alternative if the “current stable” doesn’t support your hardware
Download the “old stable” Re4son Kernel here
Re4son “next” experimental kernel highlights:
- Linux kernel 4.19.15
- Kimocoders brand new rtl8192eu driver with injection support
- Mediatek wifi drivers mt76x0u & mt76x2u
- Warning: No nexmon drivers yet for this kernel!
- Warning: Bluetooth is not working
Download the “next” Re4son Kernel here
## Stable repository echo "deb http://http.re4son-kernel.com/re4son/ kali-pi main" > /etc/apt/sources.list.d/re4son.list wget -O - https://re4son-kernel.com/keys/http/archive-key.asc | apt-key add - apt update apt install -y kalipi-kernel kalipi-bootloader kalipi-re4son-firmware kalipi-kernel-headers libraspberrypi0 libraspberrypi-dev libraspberrypi-doc libraspberrypi-bin ## Unstable "next" repository echo "deb http://http.re4son-kernel.com/re4son/ kali-pi-next main" > /etc/apt/sources.list.d/re4son.list wget -O - https://re4son-kernel.com/keys/http/archive-key.asc | apt-key add - apt update apt install -y kalipi-kernel kalipi-bootloader kalipi-kernel-headers libraspberrypi0 libraspberrypi-dev libraspberrypi-doc libraspberrypi-bin
sudo su cd /usr/local/src #### CHOOSE ONE OF THE BELOW #### ## For current stable wget -O re4son-kernel_current.tar.xz https://re4son-kernel.com/download/re4son-kernel-current/ tar -xJf re4son-kernel_current.tar.xz ## For old stable wget -O re4son-kernel_old.tar.xz https://re4son-kernel.com/download/re4son-kernel-old/ tar -xJf re4son-kernel_old.tar.xz ## For next unstable wget -O re4son-kernel_next.tar.xz https://re4son-kernel.com/download/re4son-kernel-next/ tar -xJf re4son-kernel_next.tar.xz ## Execute this for all: cd re4son-kernel_4* ./install.sh
For Raspberry Pi 3 and Pi Zero W:
– Press “Y” when prompted to install bluetooth and wifi drivers (not required on Raspbian)
– Say “Y” when prompted to enable bluetooth services (you can still disable it later)
There aren’t any issues with Bluetooth but if you want to de-install or re-install the drivers just type:
## Remove Bluetooth: cd /usr/local/src/re4son-kernel_4* ./install.sh -r ## Re-install Bluetooth: ./install.sh -b
You will be offered to install the headers during the kernel installation.
To install them later manually , run the installer again like this:
No need to do anything with the latest “current” and “next” kernels
The nexmon drivers are fully stable and now compiled in the kernel tree.
For older kernel versions:
The nexmon drivers enable monitor mode and frame injection for the build in wifi chips of the Pi3B and Pi0W.
The re4son kernel includes the compiled nexmon drivers and firmware with -m6 and -m7 support.
To install, reboot after installing a new kernel and run:
cd /usr/local/src/re4son-kernel_4* ./install.sh -x
If you have any problems with the drivers and wish to rollback to the original ones, just run:
cd /usr/local/src/re4son-kernel_4* ./install.sh -o
Head over to the nexmon project for details:
Important: These images use the smallest possible partition size, run “kalipi-config” and extend your partition first thing when you boot up or you run out of space very quickly:
Note: Unofficial Kali images have been retired.
Official Kali Linux images ship with the latest re4son-kernel and kalipi-tft-config already.
- PI-Tail with Re4son-Kernel:
Kali-Pi 2018.2 for RasPi 0W on the go. For full info check this page.
Architecture Link ARMEL (Pi 1/0/0W) https://re4son.com/re4son/download/pi-tail/
- Sticky Finger’s Kali-Pi images with Re4son Kernel (Use these for best TFT support):
Kali-Pi images with Sticky Fingers goodies. For step by step setup guide check this page.
Architecture Link ARMHF (Pi 2/3 B/B+) https://re4son.com/re4son/download/sticky-fingers-kali-pi/
ARMEL (Pi 1/0/0W) https://re4son.com/re4son/download/sticky-fingers-kali-pi-0/
Make sure the bluetooth service is enabled and started, via:
systemctl enable bluetooth systemctl start bluetooth
You are now ready to pair your devices, just like this:
[bluetooth]# agent on Agent registered [bluetooth]# default-agent Default agent request successful [bluetooth]# scan on Discovery started [bluetooth]# pair 00:1F:xx:xx:xx:xx Attempting to pair with 00:1F:xx:xx:xx:xx …snip… Pairing successful [bluetooth]# trust 00:1F:xx:xx:xx:xx [CHG] Device 00:1F:xx:xx:xx:xx Trusted: yes [bluetooth]# connect 00:1F:xx:xx:xx:xx Attempting to connect to 00:1F:xx:xx:xx:xx Connection successful
Voila – there it is, Bluetooth device connected.
The Re4son-Kernel supports ethernet gadget mode and both Pi zero armel images on this page have the usb0 interface enabled out of the box to allow the initial setup without any additional hardware except a micro usb cable.
Below the steps to get it working:
- Image a micro SD card
- Leave the card in your computer and edit the following two files in the /boot partition:
– cmdline.txt: Add “modules-load=dwc2,g_ether” after “rootwait“
– config.txt: Add “dtoverlay=dwc2“
- Insert the card into your Raspberry Pi zero
- Insert the micro USB cable into the usb port of the Pi (not the power port) and your computer
- Wait for the Pi to boot up and enable ICS for the newly created adapter on your PC or MAC (Don’t have VM’s running at this point)
- Wait a minute and ssh into “kali.mshome.net” from you PC (not sure about Mac).
– If the name resolution doesn’t work, find the IP address of your Pi via:
# In Windows: @echo off cls (FOR /L %i IN (1,1,254) DO ping -n 1 -w 10 192.168.137.%i | FINDSTR "bytes=") echo on # In *NIX: fping -a -g 192.168.137.0/24
Sticky Fingers Kali-Pi images come with a nifty bonjour treat that allows you to connect to kali-pi.local – More about this in the forum
Voila – there it is, ssh connection via usb cable.
UPDATE: No need to do these steps, run “kalipi-config” instead to set up wifi
To configure a wifi network, disable network-manager, configure /etc/wpa_supplicant.conf and /etc/network/interfaces:
systemctl stop network-manager systemctl disable network-manager /sbin/ip link set up wlan0 /sbin/iw wlan0 scan|grep SSID ## Pick your SSID wpa_passphrase &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;Your SSID >> /etc/wpa_supplicant/wpa_supplicant.conf ... Enter passphrase and press enter vi /etc/wpa_supplicant/wpa_supplicant.conf # delete the clear text passphrase
Edit “/etc/network/interfaces” and add the following stanza:
allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
That’s all, happy hacking
More details can be found here:
For questions or comments please join the discussion in our forum: