Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gokrazy/kernel
(Upstream) Linux kernel build for gokrazy
https://github.com/gokrazy/kernel
Last synced: 29 days ago
JSON representation
(Upstream) Linux kernel build for gokrazy
- Host: GitHub
- URL: https://github.com/gokrazy/kernel
- Owner: gokrazy
- License: other
- Created: 2017-02-11T14:20:16.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T04:05:11.000Z (3 months ago)
- Last Synced: 2024-09-17T05:23:15.074Z (3 months ago)
- Language: Go
- Homepage:
- Size: 2.97 GB
- Stars: 60
- Watchers: 6
- Forks: 28
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - gokrazy/kernel - (Upstream) Linux kernel build for gokrazy (Go)
README
# gokrazy kernel: upstream Linux for the Raspberry Pi
This repository holds a pre-built Linux kernel image for the Raspberry Pi 3, Pi
4, and Pi Zero 2 W, used by the [gokrazy](https://gokrazy.org/) project.The files in this repository are picked up automatically by
the `gok` tool, so you don’t need to interact with this repository
unless you want to update the kernel to a custom version.## gokrazy kernel repository map
| repository | source | devices |
|------------------------|----------------|-------------------------------|
| [gokrazy/kernel.rpi] | [Raspberry Pi] | Pi 3, Pi 4, Pi 5, Pi Zero 2 W |
| [gokrazy/kernel] | [kernel.org] | Pi 3, Pi 4, Pi Zero 2 W |
| [gokrazy/kernel.amd64] | [kernel.org] | PC x86_64, VMs |
| [gokrazy/kernel.arm64] | [kernel.org] | PC arm64, VMs |[Raspberry Pi]: https://github.com/raspberrypi/linux
[kernel.org]: https://kernel.org/
[gokrazy/kernel.rpi]: https://github.com/gokrazy/kernel.rpi
[gokrazy/kernel]: https://github.com/gokrazy/kernel
[gokrazy/kernel.amd64]: https://github.com/gokrazy/kernel.amd64
[gokrazy/kernel.arm64]: https://github.com/gokrazy/kernel.arm64## Cloning the kernel repository
This repository clocks in at over 3 GB of disk usage, so you might want to clone
it as a shallow clone:```
git clone --depth=1 https://github.com/gokrazy/kernel
```## Updating the kernel
First, follow the [gokrazy installation instructions](https://gokrazy.org/quickstart/).
We’re using docker to get a reproducible build environment for our
kernel images, so install docker if you haven’t already:
```
sudo apt install docker.io
sudo addgroup $USER docker
newgrp docker
```Clone the kernel git repository:
```
git clone --depth=1 https://github.com/gokrazy/kernel
cd kernel
```Install the kernel-related gokrazy tools:
```
GOBIN=$PWD/_build go install github.com/gokrazy/autoupdate/cmd/gokr-rebuild-kernel@latest
```And build a new kernel (takes about 5 minutes):
```
(cd _build && ./gokr-rebuild-kernel -cross=arm64)
```The new kernel is stored in the working directory. Use `gok add .` to
ensure the next `gok` build will pick up your changed files.