Pocket-Kali

Kali Linux 2018.1 on the GPD Pocket

Unofficial Kali ISO Image available now for download
UPDATE: New stable and new mainline kernel

Wifi
Bluetooth
Touch screen
Screen rotation
Proper display scaling
Smooth 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 (including rtl8812au & rtl8814au w. injection)
  • Screen brightness
  • Cooling fan
  • Bluetooth
  • Sleep/wake
  • HDMI port
  • Charging at full speed
  • USB-C for data
  • Audio & Headphones

What needs some more work:

  • To charge the Pocket-Kali whilst using, either
    • connect the charger through a USB-C adapter, or
    • plug the charger in before you boot

otherwise it might not charge properly, it’ll just run on external power.

 

Installation:

  1. Download the latest ISO image from here:
    https://whitedome.com.au/re4son/download/pocket-kali/
  2. Write the image to a USB drive
  3. Insert the stick into your GPD pocket, turn on and press F7 until boot menu pops up
  4. Select boot from USB stick
  5. In the “Kali Linux Live Boot Menu”, choose one of the following two installation options:
    There are two ways to install:
    1. The comfortable way with proper screen orientation but no encryption support
    – select “Live (forensic mode)” and boot into desktop
    – in Kali, run the debian-installer (if you booted into normal live mode, run GParted and unmount disks first)
    2. The 90 degree way – use this if you want to install kali in an encryption volume
    – select “Install”
    – tilt your head 90 degrees
  6. Install
  7. Reboot
  8. 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-re4son+_1

The Kernel is based on Hans’ source tree with all the latest patches to support the GPD Pocket.
You should upgrade to the latest stable kernel after installation.

Latest Stable Version: 4.15.12-re4son+_1

  • Improved hardware support, performance and stability
  • Fix for touchscreen I2C errors after resume from suspend
  • Fix for ugly “pcspkr” message on boot
  • workaround for debian bug #862175
  • Fix for missing objtool during runtime compilations
  • kalified kernel config
  • includes installer

Latest Mainline Version: 4.16.0-re4son+_1

  • Bump to 4.16.0
  1. Download and install new kernel via:
    # Either download the stable version:
    # (SHA256: 4ca7266ace323a03fd04188abe126db11e0d45e61c0f0ff6742538d7f01b94a4)
    wget -O re4son-pocket-kernel.tar.xz https://re4son-kernel.com/download/re4son-pocket-kernel-current/
    # Or download the mainline version:
    # (SHA256: 53d706b4a6e9e59fe246a3394fc447726d6f5ebf5c1428b1397968d88c547f28)
    wget -O re4son-pocket-kernel.tar.xz https://re4son-kernel.com/download/re4son-pocket-kernel-next/
    
    tar xJf re4son-pocket-kernel.tar.xz
    cd 4.1*
    ./install.sh
  2. 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