如何将USB存储设备添加到qemu -M vexpress-a9板

时间:2016-05-17 07:19:34

标签: usb qemu

我可以用qemu命令启动内核:

qemu-system-arm -M vexpress-a9 -smp 1 -m 256 -kernel zImage -dtb vexpress-v2p-ca9.dtb -drive file=rootfs.ext2,if=sd,format=raw -append "console=ttyAMA0,115200 root=/dev/mmcblk0" -serial stdio -net nic,model=lan9118 -net user

但我无法使用以下命令将usb磁盘添加到quem:

qemu-system-arm -M vexpress-a9 -smp 1 -m 256 -kernel zImage -dtb vexpress-v2p-ca9.dtb -drive file=rootfs.ext2,if=sd,format=raw -append "console=ttyAMA0,115200 root=/dev/mmcblk0" -serial stdio -net nic,model=lan9118 -net user -usb  -usbdevice disk:format=raw:sd.bin
audio: Could not init `oss' audio driver
qemu-system-arm: -usbdevice disk:format=raw:sd.bin: Error: no usb bus to attach usbdevice disk, please try -machine usb=on and check that the machine model supports USB
qemu: could not add USB device 'disk:format=raw:sd.bin'

如何将USB磁盘添加到qemu vexpress-a9主板?

0 个答案:

没有答案