QEMU显示黑屏 [英] Qemu shows a black screen

查看:564
本文介绍了QEMU显示黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在上teriminal运行以下命令

When the run following command on the 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.

推荐答案

您没有控制台。使用'-append控制台= tty1上,如下图所示。追加提供命令行参数的内核。同时,控制台问题被固定后,你可能会看到需要一个根文件系统;许多选项存在那里,我用的是previously安装的磁盘映像,我已经展示了一个命令行既之下。

You have no console. Use '-append "console=tty1"' as shown below. Append gives command line arguments to kernel. 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

这篇关于QEMU显示黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆