aboutsummaryrefslogtreecommitdiff
path: root/board/qemu/riscv32-virt/readme.txt
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2019-06-22 18:51:20 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-06-25 22:55:58 +0200
commit626c9705d29ec93610e87517aee771c2ea500f5d (patch)
treecb2c5e88347853a9f85a663f379f4a4837831341 /board/qemu/riscv32-virt/readme.txt
parent7372db0c0dd0f8a4a2dde77dc9da1974f97865d6 (diff)
downloadbuildroot-626c9705d29ec93610e87517aee771c2ea500f5d.tar.gz
buildroot-626c9705d29ec93610e87517aee771c2ea500f5d.tar.bz2
board/qemu: ensure root is available before mounting it
On my machine, it happens once in a while that the virtualised machine boots too fast for the rootfs to be available at the time the kernel tries to mount it. For example, board/qemu/arm-vexpress/readme.txt suggested changing "-smp 1" up to "-smp 4". But doing so here causes a kernel panic: VFS: Cannot open root device "mmcblk0" or unknown-block(0,0): error -6 Please append a correct "root=" boot option; here are the available partitions: 1f00 131072 mtdblock0 (driver?) 1f01 32768 mtdblock1 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) So, add the oh-so-useful 'rootwait' option to all kernel command lines for qemu defconfigs. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Joel Stanley <joel@jms.id.au> Cc: Mark Corbin <mark.corbin@embecosm.com> Cc: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/qemu/riscv32-virt/readme.txt')
-rw-r--r--board/qemu/riscv32-virt/readme.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/qemu/riscv32-virt/readme.txt b/board/qemu/riscv32-virt/readme.txt
index b984e47105..5d7c1988d2 100644
--- a/board/qemu/riscv32-virt/readme.txt
+++ b/board/qemu/riscv32-virt/readme.txt
@@ -1,6 +1,6 @@
Run Linux in emulation with:
- qemu-system-riscv32 -M virt -kernel output/images/fw_jump.elf -device loader,file=output/images/Image,addr=0x80400000 -append "root=/dev/vda ro" -drive file=output/images/rootfs.ext2,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -netdev user,id=net0 -device virtio-net-device,netdev=net0 -nographic
+ qemu-system-riscv32 -M virt -kernel output/images/fw_jump.elf -device loader,file=output/images/Image,addr=0x80400000 -append "rootwait root=/dev/vda ro" -drive file=output/images/rootfs.ext2,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -netdev user,id=net0 -device virtio-net-device,netdev=net0 -nographic
The login prompt will appear in the terminal that started Qemu.