Skip to content

Commit

Permalink
docs: add example of building the Linux kernel
Browse files Browse the repository at this point in the history
Slightly expand the QEMU docs to explain how to build the flat Linux kernel image.
  • Loading branch information
Timmmm committed Oct 3, 2024
1 parent 2ffa0a1 commit f72e90c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/platform/qemu_virt.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ qemu-system-riscv64 -M virt -m 256M -nographic \
**Linux Kernel Payload**

Note: We assume that the Linux kernel is compiled using
*arch/riscv/configs/defconfig*.
*arch/riscv/configs/defconfig*. The kernel must be a flattened image (a file called `Image`) rather than an ELF (`vmlinux`).

Example of building a Linux kernel:
```
make ARCH=riscv CROSS_COMPILE=riscv64-linux- defconfig
make ARCH=riscv CROSS_COMPILE=riscv64-linux- Image
```

Build:
```
Expand Down

0 comments on commit f72e90c

Please sign in to comment.