Files
2026-08-30 23:22:32 -07:00

44 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Please see https://github.com/rtr7/router7
## 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/rtr7/kernel
```
## Updating the kernel
First, follow the [gokrazy installation instructions](https://gokrazy.org/quickstart/).
Were using docker to get a reproducible build environment for our
kernel images, so install docker if you havent already:
```
sudo apt install docker.io
sudo addgroup $USER docker
newgrp docker
```
Clone the kernel git repository:
```
git clone --depth=1 https://github.com/rtr7/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)
```
The new kernel is stored in the working directory. Use `gok add .` to
ensure the next `gok` build will pick up your changed files.