Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions exercise-book/src/building-linux-kernel-driver.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,15 @@ wget https://cdimage.debian.org/images/cloud/bookworm/20250316-2053/debian-12-no

## Task 1a - Fetch the BIOS (AArch64 only)

If you are going to use AArch64, you'll need a UEFI boot-loader because QEMU
doesn't come with one (or at least, the QEMU in homebrew that I used didn't come
with one).

Download it from <https://gist.githubusercontent.com/theboreddev/5f79f86a0f163e4a1f9df919da5eea20/raw/f546faea68f4149c06cca88fa67ace07a3758268/QEMU_EFI-a096471-edk2-stable202011.tar.gz> and unpack it.

```bash
wget https://gist.githubusercontent.com/theboreddev/5f79f86a0f163e4a1f9df919da5eea20/raw/f546faea68f4149c06cca88fa67ace07a3758268/QEMU_EFI-a096471-edk2-stable202011.tar.gz
tar xvf QEMU_EFI-a096471-edk2-stable202011.tar.gz
```

(Windows users, use your favourite tools for this)
If you are going to use AArch64, you'll need a UEFI boot-loader. On macOS,
homebrew installs a copy of [EDK2](https://github.com/tianocore/edk2), which is
fine for our use-case. On my machine it was installed into
`/opt/homebrew/Cellar/qemu/9.2.2/share/qemu/edk2-aarch64-code.fd`. You'll need
to have a look in your QEMU installation directory to find where your copy is.
Once you have found it, copy it to `./QEMU_EFI.fd`, which is what the following
`qemu-system-aarch64` command lines expect.

When emulating x86-64, QEMU uses a copy of SeaBIOS automatically.

## Task 2 - Resize the disk image

Expand Down