4

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.

Gottlieb Notschnabel
  • 9,408
  • 18
  • 74
  • 116
Hugh
  • 93
  • 2
  • 3
  • 9

2 Answers2

3

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
Joe Kul
  • 2,454
  • 16
  • 16
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.

dreamlax
  • 93,976
  • 29
  • 161
  • 209