试图弄清楚为什么我在 Qemu 中运行 Buster OS 的 Raspberry Pi 有一个空白屏幕,但确实有一个函数 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
与随机数生成有关,我不需要。
起初我认为缺少显示是由于附加选项中没有指定控制台,但在启动脚本中我确实看到了以下内容,这让我相信这不是问题所在。
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
有什么建议吗?谢谢!