Script that could build debian based armhf disk image for xe303c12 chromebook. Currently implemented support for Kali and Devuan linuxes ( script was based on https://github.com/offensive-security/kali-arm-build-scripts )
Actually it was made for self educational purpose.
- kali test disk image ( kernel 5.13.8 / autologin to xfce4 )
- devuan test disk image ( kernel 5.15.5 / autologin to lxqt )
- devuan test disk image 2 (kernel 5.15.6 / autologin to xfce)
Disk image can be simply resized by edim script ( demo ) without rebuilding system
Since script was rewrited this demo may not completely fit to it, but idea and scheme the same.
Some kernel packages placed at releases.
My suggestion how to use the script from installed x86_64 (x86) Kali Linux with Linux Kernel source 5.15.12 or from installed Devuan linux x86_64 for xe303c12-devuan-armhf-linux
# enable network
sudo dhclient eth0
# download kernel source
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.12.tar.xz --no-check-certificate
# download rcn-ee patch
wget https://rcn-ee.com/deb/sid-armhf/v5.15.0-rc7-armv7-x7/patch-5.15-rc7-armv7-x7.diff.gz
# download config
wget https://github.com/raw/quarkscript/xe303c12_play_linux/master/config
# download script
wget https://github.com/raw/quarkscript/xe303c12_play_linux/master/gadebli
# make script executable
chmod +x gadebli
# extract patch
gzip -d patch-5.15-rc7-armv7-x7.diff.gz
# download kali injection patch
wget https://gitlab.com/kalilinux/build-scripts/kali-arm/-/raw/master/patches/kali-wifi-injection-5.9.patch
# unite patches
cat kali-wifi-injection-5.9.patch>>patch-5.15-rc7-armv7-x7.diff
# build kali-linux system, disk image and kernel; write build log
sudo ./gadebli patch-5.15-rc7-armv7-x7.diff btrfs |& tee -a build.log
## or build devuan-linux with xfce: system, disk image and kernel; write build log
#sudo ./gadebli patch-5.15-rc7-armv7-x7.diff btrfs devuan |& tee -a build.log
## rebuild kernel; write build log
#sudo ./gadebli patch-5.15-rc7-armv7-x7.diff ck |& tee -a build.log
## or rebuild kernel for devuan; write build log
#sudo ./gadebli patch-5.15-rc7-armv7-x7.diff ck devuan |& tee -a build.log
## rebuild disk image; write build log
#sudo ./gadebli btrfs bdi |& tee -a build.log
## of rebuild devuan disk image; write build log
#sudo ./gadebli devuan btrfs bdi |& tee -a build.log