问题
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.
回答1:
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
回答2:
If you are trying to emulate a Raspberry Pi, use follow the advice in Joe Kul's answer, but instead of tty1
, use ttyAMA0
instead.
来源:https://stackoverflow.com/questions/18673582/qemu-shows-a-black-screen