[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emulate Rpi with QEMU fails

From: Thomas
Subject: Emulate Rpi with QEMU fails
Date: Sat, 3 Oct 2020 13:45:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0


I'm trying to emulate Rpi with QEMU.
I found
arcticle in Raspberry Pi Geek documenting the steps including persistent
storage on host.

However when starting the emulation with command
qemu-system-arm -M versatilepb -cpu arm1176 -m 256 -serial stdio -hda
2020-08-20-raspios-buster-armhf-lite.img -net
"user,hostfwd=tcp::5022-:22" -dtb versatile-pb-buster.dtb -kernel
kernel-qemu-5.4.51-buster -append "root=/dev/sda2 rootfstype=ext4 rw
panic=1" -no-reboot
I get this error:
VFS: Cannot open root device "sda2" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available
0100            4096 ram0
0101            4096 ram1
0102            4096 ram2
0103            4096 ram3
0104            4096 ram4
0105            4096 ram5
0106            4096 ram6
0107            4096 ram7
0108            4096 ram8
0109            4096 ram9
010a            4096 ram10
010b            4096 ram11
010c            4096 ram12
010d            4096 ram13
010e            4096 ram14
010f            4096 ram15
1f00           65536 mtdblock0
Kernel panic - not syncing: VFS: Unable to mount root fs on

I assume this is related to the content in fstab of RaspiOS:
proc            /proc           proc    defaults          0       0
PARTUUID=907af7d0-01  /boot           vfat    defaults          0       2
PARTUUID=907af7d0-02  /               ext4    defaults,noatime  0       1

Can you please advise how to fix this error?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]