简体   繁体   English

Qemu显示黑屏

[英]Qemu shows a black screen

When the run following command on the teriminal 当对teriminal运行以下命令时

qemu-system-arm -M versatilepb -m 128M -kernel /home/<name>/linux-3.10.10/arch/arm/boot/uImage

A window with black screen will be opened and remain blank with no messages, but I am expecting Kernel messages on this screen. 将打开一个黑色屏幕的窗口并保持空白,没有消息,但我希望在此屏幕上显示内核消息。 Please suggest a solution. 请提出解决方案。

You have no console. 你没有控制台。 Use '-append "console=tty1"' as shown below. 使用'-append“console = tty1”',如下所示。 Append gives command line arguments to kernel. Append给内核提供命令行参数。 Also, after the console issue is fixed, you will probably see a need for a root filesystem; 此外,修复控制台问题后,您可能会看到需要一个根文件系统; many options exist there, I use a previously-mounted disk image, I have shown a commandline with both below. 那里存在很多选项,我使用以前安装的磁盘映像,我在下面显示了一个命令行。

qemu-system-arm -M versatilepb -m 128M -kernel /home/<name>/linux-3.10.10/arch/arm/boot/uImage -append "console=tty1 root=/dev/mmcblk0p1 rootfstype=ext3" -drive file=disk.img,if=sd

如果您正在尝试模拟Raspberry Pi,请按照Joe Kul的回答中的建议使用,但不要使用tty1而是使用ttyAMA0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM