https://github.com/carlonluca/docker-rpi-ubuntu-kernel
Docker image to cross-build the Ubuntu kernel for the Raspberry Pi 4 (arm64).
https://github.com/carlonluca/docker-rpi-ubuntu-kernel
docker kernel linux raspberry-pi ubuntu
Last synced: about 2 months ago
JSON representation
Docker image to cross-build the Ubuntu kernel for the Raspberry Pi 4 (arm64).
- Host: GitHub
- URL: https://github.com/carlonluca/docker-rpi-ubuntu-kernel
- Owner: carlonluca
- Created: 2021-08-20T22:49:12.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-02T23:26:51.000Z (over 3 years ago)
- Last Synced: 2025-03-26T08:12:18.053Z (2 months ago)
- Topics: docker, kernel, linux, raspberry-pi, ubuntu
- Language: Dockerfile
- Homepage: https://bugfreeblog.duckdns.org
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-rpi-ubuntu-kernel
Image to cross-build the Ubuntu kernel for the Raspberry Pi 4. The image contains all the needed tools here: https://hub.docker.com/repository/docker/carlonluca/docker-rpi-ubuntu-kernel.
## Usage
From the host:
```
mkdir workspace
cd workspace
git clone https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-raspi/+git/hirsute src
[apply needed patches]
```Now you can build the kernel by running the script in the container:
```
docker run --rm -it --name builder -v $PWD/workspace:/workspace \
-v $PWD/build.sh:/build.sh carlonluca/docker-rpi-ubuntu-kernel:focal \
/build.sh
```in workspace/out you should get the packages to install in your pi:
```
$ ls -lh workspace/out/
total 55M
-rw-r--r-- 1 root root 787K 21 ago 00.35 linux-buildinfo-5.11.0-1016-raspi_5.11.0-1016.17_arm64.deb
-rw-r--r-- 1 root root 1,3M 21 ago 00.35 linux-headers-5.11.0-1016-raspi_5.11.0-1016.17_arm64.deb
-rw-r--r-- 1 root root 9,6M 21 ago 00.35 linux-image-5.11.0-1016-raspi_5.11.0-1016.17_arm64.deb
-rw-r--r-- 1 root root 31M 21 ago 00.35 linux-modules-5.11.0-1016-raspi_5.11.0-1016.17_arm64.deb
-rw-r--r-- 1 root root 12M 20 ago 23.49 linux-raspi-headers-5.11.0-1016_5.11.0-1016.17_arm64.deb
```