[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] qemu-system-arm -M virt v3.0.0-rc4 Linux kernel virtio bo
From: |
Ciro Santilli |
Subject: |
[Qemu-discuss] qemu-system-arm -M virt v3.0.0-rc4 Linux kernel virtio boots fails with VFS: Cannot open root device "vda" |
Date: |
Thu, 9 Aug 2018 22:59:27 +0100 |
Analogous commands work for x86_64 and aarch64
All worked on v2.12.0 with the same images.
Do I have to use a new config option for the virtio support or is it a bug?
Ubuntu 18.04 host, default build:
````
./configure --target-list=x86_64-softmmu,arm-softmmu,aarch64-softmmu
````
then try to run with:
````
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
./arm-softmmu/qemu-system-arm \
-M virt \
-append 'root=/dev/vda' \
-cpu cortex-a15 \
-drive
file="out/arm/buildroot/images/rootfs.ext2.qcow2,if=virtio,format=qcow2" \
-kernel "out/arm/buildroot/build/linux-custom.default/arch/arm/boot/zImage"
\
-serial mon:stdio \
````
Analogous working aarch64:
````
./aarch64-softmmu/qemu-system-aarch64 \
-M virt \
-append 'root=/dev/vda' \
-cpu cortex-a57 \
-drive
file="out/aarch64/buildroot/images/rootfs.ext2.qcow2,if=virtio,format=qcow2"
\
-kernel
"out/aarch64/buildroot/build/linux-custom.default/arch/arm64/boot/Image" \
-nographic \
````
Kernel boot error message:
````
VFS: Cannot open root device "vda" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available
partitions:
1f00 131072 mtdblock0
(driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.17.0 #1
Hardware name: Generic DT based system
[<80114750>] (unwind_backtrace) from [<8010eb18>] (show_stack+0x20/0x24)
[<8010eb18>] (show_stack) from [<807d3538>] (dump_stack+0xac/0xd8)
[<807d3538>] (dump_stack) from [<8012664c>] (panic+0x104/0x274)
[<8012664c>] (panic) from [<80b0187c>] (mount_block_root+0x1dc/0x2c8)
[<80b0187c>] (mount_block_root) from [<80b01ab8>] (mount_root+0x150/0x16c)
[<80b01ab8>] (mount_root) from [<80b01c34>] (prepare_namespace+0x160/0x1a8)
[<80b01c34>] (prepare_namespace) from [<80b01360>]
(kernel_init_freeable+0x348/0x3bc)
[<80b01360>] (kernel_init_freeable) from [<807e9f60>]
(kernel_init+0x18/0x128)
[<807e9f60>] (kernel_init) from [<801010b4>] (ret_from_fork+0x14/0x20)
Exception stack(0x878dffb0 to 0x878dfff8)
ffa0: 00000000 00000000 00000000
00000000
ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0) ]---
````
Images at:
https://github.com/cirosantilli/linux-kernel-module-cheat/releases/download/sha-f5a997b2b67e151a37d93e372f5731b624bd5f1d/lkmc-f5a997b2b67e151a37d93e372f5731b624bd5f1d.zip
- [Qemu-discuss] qemu-system-arm -M virt v3.0.0-rc4 Linux kernel virtio boots fails with VFS: Cannot open root device "vda",
Ciro Santilli <=