Skip to content

Raspberry Pi Kernel build help script with sshfs support

Notifications You must be signed in to change notification settings

rkinder2023/pi-kernel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi Kernel Builder

Building and installing scripts based on the Docker image created by Xose Pérez, incorporating the excellent scripts created by RonR from the Raspberry Pi Forums message https://forums.raspberrypi.com/viewtopic.php?t=360054

This environment can be used to cross-compile the Raspberry Pi OS kernel from a Linux, Windows, or Mac workstation using Docker.

This image has been successfully run to build and install a custom Linux kernel + modules on an RPi5 device.

Bringing up the build environment

  1. Make sure Docker is installed.
  2. Build and run the docker image we will use for compilation: ./builder

You will be dropped into a shell inside the container's /build directory with only the make script.. From here you can work on compiling the kernel.

After you exit out of that shell, the Docker container will stop, but will not be removed. If you want to jump back into it, you can run docker start cross-compile and docker attach cross-compile.

Also, the output of the built process will be available under .build folder.

Compiling the Kernel

  1. Within the Docker shell, run the 'build-kernel' script:
./build-kernel

A series of questions will be asked, answer them as you need to.

Installing the Kernel

  1. The output .zip file from the build of the RPi kernel will be in /root/.zip, copy this file and the 'install-kernel' file to your RPi board (hint: sshfs can be used), then as root run the install file:
./install-kernel <kernel-version-postfix>.zip

Full instructions

Full instructions on using this Docker image can be found at:

http://wifidiving.substack.com/rpi5-redux

About

Raspberry Pi Kernel build help script with sshfs support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 98.7%
  • Dockerfile 1.3%