qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: Andrew Baumann <Andrew.Baumann@microsoft.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Mats Malmberg <mats.malmberg@tritech.se>
Cc: "qemu-arm@nongnu.org" <qemu-arm@nongnu.org>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Qemu-arm] help on how to emulate rasbperry pi 2
Date: Wed, 24 Feb 2016 13:27:48 -0500	[thread overview]
Message-ID: <56CDF624.6050104@redhat.com> (raw)
In-Reply-To: <BLUPR0301MB2034905DFE5B0135A1BE897A9EA50@BLUPR0301MB2034.namprd03.prod.outlook.com>



On 02/24/2016 01:04 PM, Andrew Baumann wrote:
>> From: Peter Maydell [mailto:peter.maydell@linaro.org]
>> Sent: Wednesday, 24 February 2016 9:49 AM
>>
>> On 24 February 2016 at 15:40, Mats Malmberg <mats.malmberg@tritech.se>
>> wrote:
>>>
>>> Hello all!
>>>
>>> TL;DR : Is the raspi2 machine ready to use? If yes, how do I use it with
>>> ordinary rpi distros? If not, what is the best way to emulate raspberry
>>> pi 2 via Qemu?
>>
>> Hi; I've cc'd the main qemu-devel list and Andrew Baumann who contributed
>> the rpi2 support. I know there are still some missing pieces to be
>> added later but I forget the details.
> 
> There are still a number of missing pieces (including display and USB) which I hope to submit soon, but you should be able to boot Linux with a serial console. Brief instructions are at the end of this page: https://github.com/0xabu/qemu/wiki
> 
> BTW, instead of -hda you need to pass -sd for the image file.
> 
> Cheers,
> Andrew
> 

Is it worth changing the default interface for the "raspi2" board to be
SD so that "-hda xxxxx" mounts an SD card?

Or do we support using that for an imagined S/ATA interface? (BCM2836
doesn't have SATA, right?)

>>
>>> Host 'uname -a' output:
>>> Linux user-Precision-M4700 3.19.0-49-generic #55~14.04.1-Ubuntu SMP Fri
>> Jan 22 11:24:31 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>>>
>>> Qemu version (via apt-get) 2.5.50
>>>
>>>
>>>
>>> I have been trying lately to get an emulation going with the raspi2 machine.
>> I admit that this is my first encounter with trying to use qemu, so perhaps
>> some of my attempts have been naive in their approach. Still, I've spent a lot
>> of time googling guides, qemu user documentation, blog posts, git
>> repositories etc, but with no success. Now I'm all out of ideas...
>>>
>>> I've tried more ways than suitable to describe here, but in short I typically:
>>> 1. take a official linux distro for raspberry pi (alpine, raspbian-jessie, Hypriot
>> etc) (all of them verified to work on actual target)
>>> 2. find a (what I think is) a compatible kernel, either by copying from
>> distro's rootfs boot/ directory or by building a qemu kernel from source
>> (https://github.com/dhruvvyas90/qemu-rpi-kernel)
>>> 3. try and start the emulation with
>>> qemu-system-arm -kernel kernel_file -M raspi2 -hda linux_image_file.img
>>>
>>> at this point, the terminal says "VNC server running on '127.0.0.1;5900'
>>> 4. using vinagre client i connect to the given address, but it only gives me a
>> compat_monitor0 console
>>>
>>> Thus I wonder, is the raspi2 machine a feature that is ready to use?
>>> If so, where do I fail in my attempts? If not, what is a recommended
>> alternative?
>>>
>>> Any help or pointers on how to be able to emulate my target (raspberry pi
>> 2) would be very appreciated.
>>
>> thanks
>> -- PMM

  reply	other threads:[~2016-02-24 18:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <605392182193B84A99A143D9DA347B52FB8AA7@post>
2016-02-24 17:48 ` [Qemu-devel] [Qemu-arm] help on how to emulate rasbperry pi 2 Peter Maydell
2016-02-24 18:04   ` Andrew Baumann
2016-02-24 18:27     ` John Snow [this message]
2016-02-24 18:51       ` Andrew Baumann
2016-02-26  9:30         ` Mats Malmberg
2016-02-26 17:13           ` John Snow
2016-02-26 17:23             ` Andrew Baumann
2016-02-26 17:52               ` John Snow
2016-02-26 19:21                 ` Andrew Baumann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56CDF624.6050104@redhat.com \
    --to=jsnow@redhat.com \
    --cc=Andrew.Baumann@microsoft.com \
    --cc=mats.malmberg@tritech.se \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).