Skip to content

Commit a6cd841

Browse files
committed
Add README
1 parent 62fdb1e commit a6cd841

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# GRUB AArch64 Image for Surface Pro X
2+
3+
Docker container to build a (self-contained) GRUB AArch64 image for the Surface Pro X on a host with different architecture (e.g. x86).
4+
5+
6+
## Basic Instructions
7+
8+
To build the container (named `aarch64-grub`) and a known-good image simply run `./mkimage.sh` from this directory.
9+
10+
## Manual Instructions
11+
12+
To build the container, run
13+
```
14+
docker build . -t aarch64-grub
15+
```
16+
where `aarch64-grub` is an arbitrary container name.
17+
18+
To run arbitrary grub commands run
19+
```sh
20+
docker run [docker options...] aarch64-grub <command> [command options...]
21+
```
22+
Note that you have to prefix the standard `grub` commands with `aarch64-`.
23+
For example, to generate a fully self-contained image in the current directory, run
24+
```sh
25+
docker run --rm \
26+
-v "${PWD}/":/output \
27+
aarch64-grub \
28+
aarch64-grub-mkimage \
29+
-O arm64-efi \
30+
-o /output/bootaa64.efi \
31+
--prefix= \
32+
$(cat modules.txt)
33+
```

0 commit comments

Comments
 (0)