This is a script to build a custom raspberry pi kernel, including a kernel patch to fix dwc2 wakeup issue.
Also, the directory raspi_scripts
contains utilities to setup HID keyboard, RNDIS or ECM. Using a python library by @Danny-Dasilva (https://github.com/Danny-Dasilva/Py_Keyboard)
Patch reference: https://github.com/pikvm/packages/blob/master/packages/linux-rpi-pikvm/1003-remote-wakeup.patch raspberrypi/linux#3977 http://www.dt8.jp/cgi-bin/adiary/adiary.cgi/0583
- (if you are using selinux, run this script to allow write access from docker)
sh selinux.sh
sh download.sh
sh docker.sh
- (inside docker)
cd /rpizero-linux-build
- (inside docker)
sh clean.sh
- (inside docker)
sh build.sh
- (inside docker)
exit
sh pack.sh
sh packsend.sh
Adjust names.sh
to configure hostname and username for ssh connection, or customize kernel name.
although without the dwc2 patch /root/remove.sh
works, with dwc2 patch it does not work. anyway its safer to restart the system when you change usb config.