mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
docs: add example of building the Linux kernel
Slightly expand the QEMU docs to explain how to build the flat Linux kernel image. Signed-off-by: Tim Hutt <tdhutt@gmail.com> Reviewed-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -56,7 +56,14 @@ qemu-system-riscv64 -M virt -m 256M -nographic \
|
|||||||
**Linux Kernel Payload**
|
**Linux Kernel Payload**
|
||||||
|
|
||||||
Note: We assume that the Linux kernel is compiled using
|
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:
|
Build:
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user