board/qemu: ensure root is available before mounting it
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 22 Jun 2019 16:51:20 +0000 (18:51 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 25 Jun 2019 20:55:58 +0000 (22:55 +0200)
commit626c9705d29ec93610e87517aee771c2ea500f5d
treecb2c5e88347853a9f85a663f379f4a4837831341
parent7372db0c0dd0f8a4a2dde77dc9da1974f97865d6
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>
24 files changed:
board/qemu/aarch64-virt/readme.txt
board/qemu/arm-versatile/readme.txt
board/qemu/arm-vexpress/readme.txt
board/qemu/m68k-q800/readme.txt
board/qemu/mips32r2-malta/readme.txt
board/qemu/mips32r2el-malta/readme.txt
board/qemu/mips32r6-malta/readme.txt
board/qemu/mips32r6el-malta/readme.txt
board/qemu/mips64-malta/readme.txt
board/qemu/mips64el-malta/readme.txt
board/qemu/mips64r6-malta/readme.txt
board/qemu/mips64r6el-malta/readme.txt
board/qemu/ppc-g3beige/readme.txt
board/qemu/ppc64-e5500/readme.txt
board/qemu/ppc64-pseries/readme.txt
board/qemu/ppc64le-pseries/readme.txt
board/qemu/riscv32-virt/readme.txt
board/qemu/riscv64-virt/readme.txt
board/qemu/sh4-r2d/readme.txt
board/qemu/sh4eb-r2d/readme.txt
board/qemu/sparc-ss10/readme.txt
board/qemu/sparc64-sun4u/readme.txt
board/qemu/x86/readme.txt
board/qemu/x86_64/readme.txt