Re4son-Kernel for Raspberry Pi 1/2/3/Zero/Zero W
- Support for built-in wifi and Bluetooth
- Support for all common TFT screens
- Ethernet gadget support
- Wifi injection patch
- Nexmon drivers
- Supports armel (Pi 1, Zero, Zero W) and armhf (Pi 2, 3)
- 100% compatible with stock kernel
- Ethernet gadget support to ssh into raspberry pi via USB connection
- Installs firmware and tweaks to support the onboard bluetooth and wifi chips
- Includes wifi injection patch
- “re4son-pi-tft-setup” tool to set up all common touch screens, enable auto-logon, etc.
- Just run “re4son-pi-tft-setup” tool for your particular screen and you are up and running.
- Includes nexmon driver in “nexmon” directory
- Includes xinput-calibrator in “tools” directory
- Any questions or poblems? Post in the forums
Download the “current stable” Re4son Kernel here
Re4son “testing” kernel highlights:
- Same as above, plus
- Based on Linux kernel 4.9, thus better RPi HW support
- Bluetooth package upgraded to Bluez 5.39 makes it faster and more stable
- Wifi injection support for Alfa AWUS051NH v2
- NOTE: no support for TFT displays from 4D-Systems yet
Download the “testing” Re4son Kernel here
sudo bash mount /dev/mmcblk0p1 /boot cd /usr/local/src ## For current stable wget -O re4son_kali-pi-tft_kernel_current.tar.xz https://whitedome.com.au/re4son/downloads/11299/ tar -xJf re4son_kali-pi-tft_kernel_current.tar.xz cd re4son_kali-pi-tft_kernel_4* ./install.sh ## For testing wget -O re4son_kali-pi_kernel_testing.tar.xz https://whitedome.com.au/re4son/downloads/11335/ tar -xJf re4son_kali-pi_kernel_testing.tar.xz cd re4son_kali-pi_kernel_4* ./install
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)
Reboot and enjoy 🙂
- Unofficial Kali Linux 2017.1 Images with Re4son Kernel:
Stock kali images (from here) with re4son kernel installed (+ armel only: usb0 enabled in /etc/network/interface to enable e_gadget out of the box). Nothing else.
Architecture Link ARMHF (Pi 2/3) https://whitedome.com.au/re4son/download/kali-linux-2017-1-armhf-re4son/
ARMEL (Pi 1/Zero/Zero W) https://whitedome.com.au/re4son/download/kali-linux-2017-1-armel-re4son/
Bluetooth services are disabled by default. To enable them type:
“sudo systemctl enable bluetooth && sudo systemctl enable hciuart”.
- Sticky Finger’s Kali-Pi images with Re4on 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) https://whitedome.com.au/re4son/download/sticky-fingers-kali-pi/
ARMEL (Pi 1/Zero/Zero W) https://whitedome.com.au/re4son/download/sticky-fingers-kali-pi-0/
You are now ready to pair your devices, just like this:
[bluetooth]# agent on
Default agent request successful
[bluetooth]# scan on
[bluetooth]# pair 00:1F:xx:xx:xx:xx
Attempting to pair with 00:1F:xx:xx:xx:xx
[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
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.
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 ifconfig wlan0 up /sbin/iw wlan0 scan|grep SSID ## Pick your SSID wpa_passphrase <Your SSID> >> /etc/wpa_supplicant.conf <... Enter passphrase and press enter ...> nano /etc/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.conf
That’s all, happy hacking
More details can be found here:
For questions or comments please join the discussion in our forum: