qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] Black screen when emulating Raspberry Pi with qemu 2.5


From: Per Olofsson
Subject: [Qemu-discuss] Black screen when emulating Raspberry Pi with qemu 2.5
Date: Tue, 08 Mar 2016 13:01:45 +0100

Hello,
  after some minor tweaks to pixman I got qemu 2.5.0 to compile and run
  on OS X 10.11. I'm trying to set it up to emulate a Raspberry Pi for
  development, but I can't get it to boot from the raspbian linux image.
  I'm using:

  2016-02-26-raspbian-jessie.img      downloaded from
  https://www.raspberrypi.org/downloads/raspbian/
  kernel-qemu-4.1.13-jessie           downloaded from
  https://github.com/dhruvvyas90/qemu-rpi-kernel

If I start with:

  /usr/local/qemu/bin/qemu-system-arm -M versatilepb -m 512 -cpu arm1176
  -no-reboot -kernel kernel-qemu-4.1.13-jessie -hda
  2016-02-26-raspbian-jessie.img -serial stdio

it prints "Uncompressing Linux... done, booting the kernel." and then
the kernel hangs since it can't find a root fs:

  
https://www.dropbox.com/s/ogmhcyser53ko32/Sk%C3%A4rmklipp%202016-03-08%2012.53.21.png

The problem is that if I try to add any kernel boot options with
-append, even if it's just "panic=1", all I get is a black screen for a
few seconds and then it exits:

  /usr/local/qemu/bin/qemu-system-arm -M versatilepb -m 512 -cpu arm1176
  -no-reboot -kernel kernel-qemu-4.1.13-jessie -hda
  2016-02-26-raspbian-jessie.img -serial stdio -append "panic=1"

  
https://www.dropbox.com/s/e11mzvdjcpcfylf/Sk%C3%A4rmklipp%202016-03-08%2012.57.22.png

If i use "root=/dev/sda" I still only get a black screen, but it doesn't
exit after a few seconds so maybe it's booting?

I also tried compiling the latest git version, and the results are the
same. I tried the experimental raspi2 machine too, but that just gives
me a debugger prompt. I'm completely new to qemu so any pointers are
welcome.

-- 
  Per Olofsson
  address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]