From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYdYT-0008Qc-I4 for qemu-devel@nongnu.org; Wed, 24 Feb 2016 12:48:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYdYS-0006HA-5C for qemu-devel@nongnu.org; Wed, 24 Feb 2016 12:48:53 -0500 Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]:33219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYdYR-0006H4-Vi for qemu-devel@nongnu.org; Wed, 24 Feb 2016 12:48:52 -0500 Received: by mail-vk0-x22b.google.com with SMTP id k196so24324548vka.0 for ; Wed, 24 Feb 2016 09:48:51 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <605392182193B84A99A143D9DA347B52FB8AA7@post> References: <605392182193B84A99A143D9DA347B52FB8AA7@post> From: Peter Maydell Date: Wed, 24 Feb 2016 17:48:31 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-arm] help on how to emulate rasbperry pi 2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mats Malmberg Cc: "qemu-arm@nongnu.org" , QEMU Developers , Andrew Baumann On 24 February 2016 at 15:40, Mats Malmberg wrot= e: > > 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. > Host 'uname -a' output: > Linux user-Precision-M4700 3.19.0-49-generic #55~14.04.1-Ubuntu SMP Fri J= an 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 machi= ne. I admit that this is my first encounter with trying to use qemu, so per= haps some of my attempts have been naive in their approach. Still, I've spe= nt 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 typic= ally: > 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 d= istro's rootfs boot/ directory or by building a qemu kernel from source (ht= tps://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 alte= rnative? > > Any help or pointers on how to be able to emulate my target (raspberry pi= 2) would be very appreciated. thanks -- PMM