You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build with a larger INITRD_SIZE (e.g., 64 MiB) to run SDL-oriented application because the default 8 MiB is insufficient for SDL-oriented application artifacts:
@@ -86,6 +86,21 @@ $ make system ENABLE_SYSTEM=1 ENABLE_SDL=1 INITRD_SIZE=64
86
86
```
87
87
Once login the guestOS, run `doom-riscv` or `quake` or `smolnes`. To terminate SDL-oriented applications, use the built-in exit utility, ctrl-c or the SDL window close button(X).
88
88
89
+
#### Virtio Block Device (optional)
90
+
Generate ext4 image file for virtio block device in Unix-like system:
91
+
```shell
92
+
$ dd if=/dev/zero of=disk.img bs=4M count=32
93
+
$ mkfs.ext4 disk.img
94
+
```
95
+
Mount the virtual block device and create a test file after booting, note that root privilege is required to mount and unmount a disk:
96
+
```shell
97
+
# mkdir mnt
98
+
# mount /dev/vda mnt
99
+
# echo "rv32emu" > mnt/emu.txt
100
+
# umount mnt
101
+
```
102
+
Reboot and re-mount the virtual block device, the written file should remain existing.
103
+
89
104
#### Build Linux image
90
105
An automated build script is provided to compile the RISC-V cross-compiler, Busybox, and Linux kernel from source. Please note that it only supports the Linux host environment. It can be found at tools/build-linux-image.sh.
0 commit comments