Kali Linux 2017.3 on the GPD Pocket
Unofficial Kali ISO Image available now for download
UPDATE: ISO 20171226-1 & Kernel 4.15.0-rc5-re4son+_8

Wifi
Bluetooth
Touch screen
Screen rotation
Proper display scaling & fan control
Built natively with debian lb and d-i
What is working:
- Proper screen orientation for graphical debian-installer
- Display properly rotated in terminal buffer, login screen & desktop
- Scaling set to 0.60 ( 0.50 in gdm )
- Touchscreen aligned to rotation
- Multitouch
- Wifi
- Screen brightness
- Cooling fan
- Bluetooth
- Sleep/wake
- HDMI port
- Charging at full speed
- USB-C for data
- Audio & Headphones
What needs some more work:
- Encrypting the root partition is not supported yet. Coming in mid Jan.
Installation:
- Download the latest ISO image from here:
https://whitedome.com.au/re4son/download/kali-pocket/ - Write the image to a USB drive
- Insert the stick into your GPD pocket, turn on and press F7 until boot menu pops up
- Select boot from USB stick
- In the Kali menu, select “Kali Live” and boot into desktop
- In Kali, run GParted and unmount primary partition
- Run debian-installer-launcher
- Install
- Reboot
- Enjoy
- The Pocket-Kali image comes with a limited set of tools to keep the size down (i.e. “top10” and “wireless” meta packages).
Just install “kali-linux-full” to get the whole shebang. - Install the latest kernel as documented in the next chapter
- Follow @Re4sonKernel on Twitter for notifications on updates
Kernel updates:
Version included in ISO: 4.15.0-rc4-re4son+_2
The Kernel is based on Hans’ source tree with all the latest patches to support the GPD Pocket.
You should update to this one:
Latest Stable Version: 4.15.0-rc5-re4son+_8
- Improved hardware support, performance and stability
- Workaround for touchscreen I2C errors after resume from suspend
- Fix for ugly “pcspkr” message on boot
- Fix for missing objtool during runtime compilations
- kalified kernel config
- includes installer
Latest Test Version: 4.15.0-rc7-re4son+_2
- All of the above, plus
- Latest kernel updates
- KTPI patch
- touchscreen workaround replaced by permanent fix
- workaround for debian bug #862175
- Download and install new kernel via:
# Either download the stable version: # (SHA256: 0e4720abcf7246489d63339773c08a3eeb3fb7a3097d878cdcf313f5e907fb72) wget -O re4son-pocket-kernel.tar.xz https://whitedome.com.au/re4son/downloads/12376/ # Or download the test version: # (SHA256: 3d036b373b22e1a79e663090a0137c6e80320ac8bf32bbfa1696af826d60152a) wget -O re4son-pocket-kernel.tar.xz https://whitedome.com.au/re4son/downloads/12439/ tar xJf re4son-pocket-kernel.tar.xz cd 4.15.0-rc5* ./install.sh
- Remove old re4son kernel, e.g.:
apt remove linux-image-4.15.0-rc4-re4son+ && apt remove linux-headers-4.15.0-rc4-re4son+
Fixes (Not required for ISO versions 20171226-1 and later):
Backlight Control:
Please copy and paste this into a terminal:
echo "pwm-lpss" >> /etc/initramfs-tools/modules echo "pwm-lpss-platform" >> /etc/initramfs-tools/modules echo "i915" >> /etc/initramfs-tools/modules update-initramfs -u
That’ll fix it. The next image will include this.
Audio:
Please copy and paste this into a terminal:
wget -O /etc/pulse/daemon.conf https://github.com/Re4son/Pocket-Kali-live-build/raw/master/kali-config/common/includes.chroot/etc/pulse/daemon.conf mkdir -p /usr/share/alsa/ucm/chtrt5645 wget /usr/share/alsa/ucm/chtrt5645/HiFi.conf https://github.com/Re4son/Pocket-Kali-live-build/raw/master/kali-config/common/includes.chroot/usr/share/alsa/ucm/chtrt5645/HiFi.conf wget /usr/share/alsa/ucm/chtrt5645/chtrt5645.conf https://github.com/Re4son/Pocket-Kali-live-build/raw/master/kali-config/common/includes.chroot/usr/share/alsa/ucm/chtrt5645/chtrt5645.conf wget /etc/acpi/events/headphone-jack https://github.com/Re4son/Pocket-Kali-live-build/raw/master/kali-config/common/includes.chroot/etc/acpi/events/headphone-jack wget /etc/acpi/headphone-jack.sh https://github.com/Re4son/Pocket-Kali-live-build/raw/master/kali-config/common/includes.chroot/etc/acpi/headphone-jack.sh
Feedback and help:
Please join the forums to provide feedback and support. Any help to improve the image is greatly appreciated.
Sources:
https://github.com/Re4son/Pocket-Kali-live-build
https://github.com/Re4son/re4son-raspberrypi-linux
Massive thanks:
Stockmind and friends for the audio and backlight fixes:
https://github.com/stockmind/gpd-pocket-ubuntu-respin
Hans de Goede for the kernel patches:
https://github.com/jwrdegoede/linux-sunxi





