Skip to content

build/kmutil: Add dev script to automate kmutil configure-boot#573

Open
jannau wants to merge 1 commit intoAsahiLinux:mainfrom
jannau:kmutil-automation
Open

build/kmutil: Add dev script to automate kmutil configure-boot#573
jannau wants to merge 1 commit intoAsahiLinux:mainfrom
jannau:kmutil-automation

Conversation

@jannau
Copy link
Copy Markdown
Member

@jannau jannau commented May 6, 2026

Initial m1n1 bringup on new targets may require installing m1n1 multiple times via 1TR until chainload is working. Automate it to make it less painful.
Add an optionally built script which embeds m1n1.bin which can be executed fropm 1TR on the target device. The script is not built be default since it requires uuencode (sharutils) which doesn't seem to commonly installed by default.
The script can be served via http and directly executed from curl or copied to and USB stick.
The following demonstrates the use via http:

make build/kmutil && python3 -m http.server --directory build

The target device must be booted into 1TR for the desired installation. The script can then be executed from the recovery terminal with:

sh <(curl HOST:8000/kmutil)

The script can not be piped directly into the shell since the script (and kmutil) use stdin.

Initial m1n1 bringup on new targets may require installing m1n1 multiple
times via 1TR until chainload is working. Automate it to make it less
painful.
Add an optionally built script which embeds m1n1.bin which can be
executed fropm 1TR on the target device. The script is not built be
default since it requires uuencode (sharutils) which doesn't seem to
commonly installed by default.
The script can be served via http and directly executed from curl or
copied to and USB stick.
The following demonstrates the use via http:
```
make build/kmutil && python3 -m http.server --directory build
```
The target device must be booted into 1TR for the desired installation.
The script can then be executed from the recovery terminal with:
```
sh <(curl HOST:8000/kmutil)
```
The script can not be piped directly into the shell since the script
(and kmutil) use stdin.

Signed-off-by: Janne Grunau <j@jannau.net>
@jannau jannau requested a review from svenpeter42 as a code owner May 6, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant