Qemu:在MacOS X上使用Buster OS模拟Raspberry pi(CLI有效,但黑屏)

时间:2019-10-26 04:28:33

标签: macos raspberry-pi qemu raspberry-pi-zero

试图弄清楚为什么我的Raspberry Pi在Qemu中运行Buster OS时出现空白屏幕,但是具有CLI功能吗?这是我的跑步方式:

    $ qemu-system-arm -M versatilepb -cpu arm1176 -m 256 -hda ./raspbian-buster-full.qcow -net nic -net user,hostfwd=tcp::5022-:22 -dtb ./versatile-pb.dtb -kernel ./kernel-qemu-4.19.50-buster -append 'root=/dev/sda2 panic=1 rootfstype=ext4 rw' -no-reboot -serial stdio

最后出现一些失败消息:

    vpb_sic_write: Bad register offset 0x2c
    ...
    Welcome to Raspbian GNU/Linux 10 (buster)!
    systemd[1]: Set hostname to <raspberrypi>.
    systemd-fstab-generator[41]: Mount point file is not a valid path, ignoring.
    ...
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    ...
    [FAILED] Failed to start rng-tools.service.
    See 'systemctl status rng-tools.service' for details.

不确定vpb_sic_write: Bad register offset 0x2c[FAILED] Failed to start Load Kernel Modules.有什么关系,但是我对[FAILED] Failed to start rng-tools.service.表示满意,因为我认为rng-tools与随机数的产生有关,而我没有不需要。

起初我以为显示不足是由于未在append选项中指定控制台,但在启动脚本中确实看到了以下内容,这使我认为这不是问题。

    clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
    sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
    Failed to initialize '/amba/timer@101e3000': -22
    sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    Console: colour dummy device 80x30
    console [tty0] enabled

有什么建议吗?谢谢!

0 个答案:

没有答案