qemu-vexpress-a9运行 qemu-dbg.sh 提示错误

发布于 2020-10-15 10:56:43

linux环境,vscode编译没有问题,仿真运行 qemu-dbg.sh报错:

 # yy <a href="/u/14012" data-type="user" data-id="14012" data-toggle="popover" data-title="">@</a> yy-pc in ~/studay/qemu-vexpress-a9 [9:13:50] 
$ ./qemu-dbg.sh
WARNING: Image format was not specified for 'sd.bin' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument

qemu-dbg.sh代码如下

if [ ! -f "sd.bin" ]; then
dd if=/dev/zero of=sd.bin bs=1024 count=65536
fi


qemu-system-arm -M vexpress-a9 -kernel rtthread.elf -serial vc -serial vc -sd sd.bin -S -s

查看更多

关注者
0
被浏览
326
2 个回答
aozima
aozima 2020-10-15
拒绝白嫖,拒绝键盘侠!

看起来是你宿主机的音频有问题,造成qemu跑不起来。

james_s
james_s 2021-03-24

试试加上以下参数

-audiodev none,id=none

不使用任何Host的音频驱动.

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览