Skip to content

Commit 678c47a

Browse files
committed
Update README
To reflect supporting multiple virtual block devices in guestOS.
1 parent c4be1a5 commit 678c47a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ Mount the virtual block device and create a test file after booting, note that r
105105
```
106106
Reboot and re-mount the virtual block device, the written file should remain existing.
107107
108+
To specify multiple virtual block devices, pass multiple `-x vblk` options when launching the emulator. Each option can point to either a disk image or a hostOS block device, with optional read-only mode. For example:
109+
```shell
110+
$ build/rv32emu -k <kernel_img_path> -i <rootfs_img_path> -x vblk:disk.img -x vblk:/dev/loop22,readonly
111+
```
112+
Note that the /dev/vdx device order in guestOS is assigned in reverse: the first `-x vblk` argument corresponds to the device with the highest letter, while subsequent arguments receive lower-lettered device names.
113+
108114
#### Customize bootargs
109115
Build and run with customized bootargs to boot the guestOS. Otherwise, the default bootargs defined in `src/devices/minimal.dts` will be used.
110116
```shell

0 commit comments

Comments
 (0)