Received: by 10.25.208.211 with SMTP id h202csp2375094lfg; Wed, 24 Feb 2016 09:36:35 -0800 (PST) X-Received: by 10.140.81.51 with SMTP id e48mr9751151qgd.27.1456335394240; Wed, 24 Feb 2016 09:36:34 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t5si3667910qge.108.2016.02.24.09.36.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Feb 2016 09:36:34 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Received: from localhost ([::1]:37339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYdMX-0001Cw-Kz for alex.bennee@linaro.org; Wed, 24 Feb 2016 12:36:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYbYC-0000iS-Mj for qemu-arm@nongnu.org; Wed, 24 Feb 2016 10:40:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYbY8-0008Jk-73 for qemu-arm@nongnu.org; Wed, 24 Feb 2016 10:40:28 -0500 Received: from tritech.se ([46.59.120.190]:61086 helo=nic.tritech.se) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYbY7-0008IR-Sm for qemu-arm@nongnu.org; Wed, 24 Feb 2016 10:40:24 -0500 Received: from post.tritech.se (post.tritech.se [10.75.60.100]) by nic.tritech.se (8.14.4/8.14.4/Debian-4) with ESMTP id u1OFeF7f007532 for ; Wed, 24 Feb 2016 16:40:15 +0100 Received: from POST.tritech.se ([10.75.60.100]) by post ([10.75.60.100]) with mapi id 14.03.0279.002; Wed, 24 Feb 2016 16:40:09 +0100 From: Mats Malmberg To: "qemu-arm@nongnu.org" Thread-Topic: help on how to emulate rasbperry pi 2 Thread-Index: AdFvD5ywZQzpz/W/SvS9NRf/arflfA== Date: Wed, 24 Feb 2016 15:40:08 +0000 Message-ID: <605392182193B84A99A143D9DA347B52FB8AA7@post> Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.220.60.189] Content-Type: multipart/related; boundary="_004_605392182193B84A99A143D9DA347B52FB8AA7post_"; type="multipart/alternative" MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 46.59.120.190 X-Mailman-Approved-At: Wed, 24 Feb 2016 12:36:31 -0500 Subject: [Qemu-arm] help on how to emulate rasbperry pi 2 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: ulohVAqEh/m/ --_004_605392182193B84A99A143D9DA347B52FB8AA7post_ Content-Type: multipart/alternative; boundary="_000_605392182193B84A99A143D9DA347B52FB8AA7post_" --_000_605392182193B84A99A143D9DA347B52FB8AA7post_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all! TL;DR : Is the raspi2 machine ready to use? If yes, how do I use it with or= dinary rpi distros? If not, what is the best way to emulate raspberry pi 2 = via Qemu? 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 perha= ps 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 re= positories 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 typical= ly: 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 dis= tro's rootfs boot/ directory or by building a qemu kernel from source (http= s://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 m= e 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 altern= ative? Any help or pointers on how to be able to emulate my target (raspberry pi 2= ) would be very appreciated. Best Regards Mats [cid:tritech-logod35d90] Mats Malmberg mats.malmberg@tritech.se +46 733 35 21 76 www.tritech.se +46 8 410 120 00 J=E4rnv=E4gsgatan 10 PO Box 1094, SE-172 22 Sundbyberg, Sweden --_000_605392182193B84A99A143D9DA347B52FB8AA7post_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all!

TL;DR : Is the raspi2 machine ready to use? If yes, how do I use it with or= dinary rpi distros? If not, what is the best way to emulate raspberry pi 2 = via Qemu?

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 perha= ps 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 suc= cess. Now I'm all out of ideas...

I've tried more ways than suitable to describe here, but in short I typical= ly:
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 dis= tro's rootfs boot/ directory or by building a qemu kernel from source (http= s://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;590= 0'
4. using vinagre client i connect to the given address, but it only gives m= e 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 altern= ative?

Any help or pointers on how to be able to emulate my target (raspberry pi 2= ) would be very appreciated.


Best Regards
Mats

 

Mats Malmberg


mats.malmberg@tritech= .se

+46 733 35 21 76


www.tritech.se

+46 8 410 120 00

J=E4rnv=E4gsgatan 10

PO Box 1094, SE-172 22 Sundbyberg, Sweden


--_000_605392182193B84A99A143D9DA347B52FB8AA7post_-- --_004_605392182193B84A99A143D9DA347B52FB8AA7post_ Content-Type: image/jpeg; name="tritech-logod35d90" Content-Description: tritech-logod35d90 Content-Disposition: inline; filename="tritech-logod35d90"; size=1530; creation-date="Wed, 24 Feb 2016 15:40:10 GMT"; modification-date="Wed, 24 Feb 2016 15:40:10 GMT" Content-ID: Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAgEAAAAAAAD/7gAOQWRvYmUAZAAAAAAB/+wAEUR1Y2t5AAEABAAAADwAAP/b AEMABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxsc Hx8fHx8fHx8fH//bAEMBBwcHDQwNGBAQGBoVERUaHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f Hx8fHx8fHx8fHx8fHx8fHx8fHx8fH//AABEIAC4AZQMBEQACEQEDEQH/xAAcAAEAAgIDAQAAAAAA AAAAAAAABAUDBgEHCAL/xAAxEAABAwMDAgUCBAcAAAAAAAACAQMEAAUGERIHIRMxQSIUCHEVUTIj F2FCUjPTlVb/xAAXAQEBA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