From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9tMs-000360-Br for qemu-devel@nongnu.org; Thu, 15 Aug 2013 04:57:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9tMl-0001h2-B8 for qemu-devel@nongnu.org; Thu, 15 Aug 2013 04:57:18 -0400 Received: from nm9-vm0.bullet.mail.ird.yahoo.com ([77.238.189.197]:48533) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1V9tMk-0001gq-TI for qemu-devel@nongnu.org; Thu, 15 Aug 2013 04:57:11 -0400 Message-ID: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> Date: Thu, 15 Aug 2013 09:57:09 +0100 (BST) From: Herbei Dacian MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-662718069-1151050116-1376557029=:19085" Subject: [Qemu-devel] minimal linux distribution for qemu Reply-To: Herbei Dacian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEmu Devel ---662718069-1151050116-1376557029=:19085 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0Ahi,=0Aplease, can anyone recommend me a distribution that offers a bareb= one linux kernel.=0Aminimum that I need on that image are:=0A_ the kernel= =0A_ the compiler and development infrastructure to build it=0Aregards,=0Ad= acian ---662718069-1151050116-1376557029=:19085 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

hi,
please, can anyone re= commend me a distribution that offers a barebone linux kernel.
minimum t= hat I need on that image are:
_ the kernel
_ the compiler and develop= ment infrastructure to build it
regards,
dacian

---662718069-1151050116-1376557029=:19085-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9w7a-0006Ea-JA for qemu-devel@nongnu.org; Thu, 15 Aug 2013 07:53:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9w7T-0008LF-AZ for qemu-devel@nongnu.org; Thu, 15 Aug 2013 07:53:42 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52394 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9w7T-0008L0-4P for qemu-devel@nongnu.org; Thu, 15 Aug 2013 07:53:35 -0400 Message-ID: <520CC13A.50101@suse.de> Date: Thu, 15 Aug 2013 13:53:30 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> In-Reply-To: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: QEmu Devel Hi, Am 15.08.2013 10:57, schrieb Herbei Dacian: >=20 > please, can anyone recommend me a distribution that offers a barebone > linux kernel. > minimum that I need on that image are: > _ the kernel > _ the compiler and development infrastructure to build it Aboriginal Linux. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9wMh-0005pg-JJ for qemu-devel@nongnu.org; Thu, 15 Aug 2013 08:09:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9wMc-0006QX-CE for qemu-devel@nongnu.org; Thu, 15 Aug 2013 08:09:19 -0400 Received: from mail-ea0-x231.google.com ([2a00:1450:4013:c01::231]:61932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9wMc-0006QJ-64 for qemu-devel@nongnu.org; Thu, 15 Aug 2013 08:09:14 -0400 Received: by mail-ea0-f177.google.com with SMTP id f15so322050eak.22 for ; Thu, 15 Aug 2013 05:09:13 -0700 (PDT) Date: Thu, 15 Aug 2013 14:09:10 +0200 From: Stefan Hajnoczi Message-ID: <20130815120910.GA32223@stefanha-thinkpad.redhat.com> References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: QEmu Devel On Thu, Aug 15, 2013 at 09:57:09AM +0100, Herbei Dacian wrote: > please, can anyone recommend me a distribution that offers a barebone linux kernel. > minimum that I need on that image are: > _ the kernel > _ the compiler and development infrastructure to build it If you want something small and customizable, try Tiny Core Linux: http://www.tinycorelinux.net/ From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9xVG-0007ue-1I for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:22:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9xV9-0000D4-1U for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:22:13 -0400 Received: from nm9-vm0.bullet.mail.ird.yahoo.com ([77.238.189.197]:37139) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1V9xV8-0000Cr-Jb for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:22:06 -0400 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> Message-ID: <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> Date: Thu, 15 Aug 2013 14:22:04 +0100 (BST) From: Herbei Dacian In-Reply-To: <20130815120910.GA32223@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-662718069-1167455078-1376572924=:75296" Subject: Re: [Qemu-devel] minimal linux distribution for qemu Reply-To: Herbei Dacian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEmu Devel ---662718069-1167455078-1376572924=:75296 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0AIn the end I went for debian cause it is widely used.=0A=0ASo I'm using = the following command to install linux:=0Aqemu-system-arm -m 1024 -hda arm.= img -cdrom debian-7.1.0-armel-CD-1.iso -boot d=0A=0AAnd I get this error:= =0AKernel image must be specified=0A=0AIn the documentation is mentioned th= at i don't need a bzImage if the CD is bootable.=0Aany suggestions? ---662718069-1167455078-1376572924=:75296 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

In the end I went for debian= cause it is widely used.

So I'm using the following command to inst= all linux:
qemu-system-arm -m 1024 -hda arm.img -cdrom debian-7.1.0-arme= l-CD-1.iso -boot d

And I get this error:
Kernel imag= e must be specified

In the documentation is mentioned = that i don't need a bzImage if the CD is bootable.
any suggestions?
<= br>
---662718069-1167455078-1376572924=:75296-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9xeY-0003aj-Lh for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:31:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9xeT-0003eM-Vo for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:31:50 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:38628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9xeT-0003e9-Oq for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:31:45 -0400 Received: by mail-lb0-f181.google.com with SMTP id o10so638274lbi.12 for ; Thu, 15 Aug 2013 06:31:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> From: Peter Maydell Date: Thu, 15 Aug 2013 14:31:24 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: QEmu Devel On 15 August 2013 14:22, Herbei Dacian wrote: > > In the end I went for debian cause it is widely used. > > So I'm using the following command to install linux: > qemu-system-arm -m 1024 -hda arm.img -cdrom debian-7.1.0-armel-CD-1.iso > -boot d This command line is totally broken. You're running (by default) an emulation of the 'integratorcp' board (which is pretty much obsolete and a bad choice), and you're trying to pass it a CDROM image, when the board doesn't have a CDROM drive. You need to specify the right board to emulate (with '-M something' and also pass a kernel and an initrd to load (with -kernel and -initrd). -- PMM From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9xt2-0002B1-7m for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:46:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9xsw-0000h5-7O for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:46:48 -0400 Received: from nm9-vm0.bullet.mail.ird.yahoo.com ([77.238.189.197]:37546) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1V9xsv-0000gm-Sg for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:46:42 -0400 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> Message-ID: <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> Date: Thu, 15 Aug 2013 14:46:39 +0100 (BST) From: Herbei Dacian In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-333906562-673952869-1376574399=:92764" Subject: Re: [Qemu-devel] minimal linux distribution for qemu Reply-To: Herbei Dacian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEmu Devel ---333906562-673952869-1376574399=:92764 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0AOK but which command should I use if that is broken and where I can find= some documentation that is actually up to date?=0A=0A=0A=0A_______________= _________________=0A From: Peter Maydell =0ATo: H= erbei Dacian =0ACc: QEmu Devel =0ASent: Thursday, 15 August 2013, 15:31=0ASubject: Re: [Qemu-devel] m= inimal linux distribution for qemu=0A =0A=0AOn 15 August 2013 14:22, Herbei= Dacian wrote:=0A>=0A> In the end I went for debia= n cause it is widely used.=0A>=0A> So I'm using the following command to in= stall linux:=0A> qemu-system-arm -m 1024 -hda arm.img -cdrom debian-7.1.0-a= rmel-CD-1.iso=0A> -boot d=0A=0AThis command line is totally broken. You're = running=0A(by default) an emulation of the 'integratorcp' board (which is= =0Apretty much obsolete and a bad choice), and you're trying to=0Apass it a= CDROM image, when the board doesn't have a CDROM=0Adrive. You need to spec= ify the right board to emulate (with=0A'-M something' and also pass a kerne= l and an initrd to load=0A(with -kernel and -initrd).=0A=0A-- PMM ---333906562-673952869-1376574399=:92764 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

OK but which command should = I use if that is broken and where I can find some documentation that is act= ually up to date?


From: Peter Maydell <peter.maydell@linaro.org>
<= b>To: Herbei Dacian <dacia= n_herbei@yahoo.fr>
Cc:<= /b> QEmu Devel <qemu-devel@nongnu.org>
Sent: Thursday, 15 August 2013, 15:31
Subject: Re: [Qemu-devel] minimal l= inux distribution for qemu

On 15 Augus= t 2013 14:22, Herbei Dacian <dacian_herbei@yahoo.fr> wro= te:
>
> In the end I went for debian cause it is widely used.>
> So I'm using the following command to install linux:
>= qemu-system-arm -m 1024 -hda arm.img -cdrom debian-7.1.0-armel-CD-1.iso> -boot d

This command line is totally broken. You're running(by default) an emulation of the 'integratorcp' board (which is
pretty = much obsolete and a bad choice), and you're trying to
pass it a CDROM im= age, when the board doesn't have a CDROM
drive. You need to specify the = right board to emulate (with
'-M something' and also pass a kernel and a= n initrd to load
(with -kernel and -initrd).

-- PMM


---333906562-673952869-1376574399=:92764-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9xvO-0003pK-GN for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:49:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9xvJ-0001m2-Sa for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:49:14 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:58589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9xvJ-0001lg-LX for qemu-devel@nongnu.org; Thu, 15 Aug 2013 09:49:09 -0400 Received: by mail-la0-f43.google.com with SMTP id ep20so575066lab.16 for ; Thu, 15 Aug 2013 06:49:08 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> From: Peter Maydell Date: Thu, 15 Aug 2013 14:48:48 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: QEmu Devel On 15 August 2013 14:46, Herbei Dacian wrote: > OK but which command should I use if that is broken and where I can find > some documentation that is actually up to date? You need to start by finding out which of the boards QEMU models your distribution actually supports, and the expected install method for them. ARM is *not* like x86 here -- all x86 systems are basically identical, but all ARM boards are different and you need the correct kernel for the board you're running, whether that board is real hardware or emulated. -- PMM From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9y7H-0000oH-Rx for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:01:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9y77-00060u-2s for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:01:31 -0400 Received: from nm16-vm0.bullet.mail.ird.yahoo.com ([77.238.189.192]:43099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9y76-00060l-JI for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:01:21 -0400 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> Message-ID: <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> Date: Thu, 15 Aug 2013 15:01:19 +0100 (BST) From: Herbei Dacian In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-980549061-2041290130-1376575279=:89844" Subject: Re: [Qemu-devel] minimal linux distribution for qemu Reply-To: Herbei Dacian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEmu Devel ---980549061-2041290130-1376575279=:89844 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0Ayes but which binary do I use to call to run an emulated arm image?=0A= =0Ais there an actual binary that can emulate an existing arm board, anyboa= rd?=0Aqemu?=0Aif not which is the emulator that works with arm?=0AIf not wh= ere is the project that I can tweak to build such a binary.=0A=0A=0AI can s= earch for the board that is not a problem and then I can tweak the project = but I need to know where can I find this.=0AI couldn't find any documentati= on in this direction.=0A=0A=0A=0A________________________________=0A From: = Peter Maydell =0ATo: Herbei Dacian =0ACc: QEmu Devel =0ASent: Thursday, 15 = August 2013, 15:48=0ASubject: Re: [Qemu-devel] minimal linux distribution f= or qemu=0A =0A=0AOn 15 August 2013 14:46, Herbei Dacian wrote:=0A> OK but which command should I use if that is broken and wh= ere I can find=0A> some documentation that is actually up to date?=0A=0AYou= need to start by finding out which of the boards QEMU=0Amodels your distri= bution actually supports, and the expected=0Ainstall method for them. ARM i= s *not* like x86 here -- all x86=0Asystems are basically identical, but all= ARM boards are=0Adifferent and you need the correct kernel for the board y= ou're=0Arunning, whether that board is real hardware or emulated.=0A=0A-- P= MM ---980549061-2041290130-1376575279=:89844 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

yes but which binary do I us= e to call to run an emulated arm image?
is there an actual binary = that can emulate an existing arm board, anyboard?
=
qemu?
if not which is the emulator that works with arm?
If = not where is the project that I can tweak to build such a binary.

I can search for the board that is not a problem an= d then I can tweak the project but I need to know where can I find this.
I couldn't find any documentation in this direction.


<= font face=3D"Arial" size=3D"2"> From:<= /span> Peter Maydell <peter.maydell@linaro.org>
To: Herbei Dacian <dacian_herbei@yah= oo.fr>
Cc: QEmu Dev= el <qemu-devel@nongnu.org>
Sent: Thursday, 15 August 2013, 15:48
Subject: Re: [Qemu-devel] minimal linux distrib= ution for qemu

On 15 = August 2013 14:46, Herbei Dacian <dacian_herbei@yahoo.fr>= ; wrote:
> OK but which command should I use if that is broken and where I can find
&= gt; some documentation that is actually up to date?

You need to star= t by finding out which of the boards QEMU
models your distribution actua= lly supports, and the expected
install method for them. ARM is *not* lik= e x86 here -- all x86
systems are basically identical, but all ARM board= s are
different and you need the correct kernel for the board you're
= running, whether that board is real hardware or emulated.

-- PMM
=


---980549061-2041290130-1376575279=:89844-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9yBG-0003bu-9c for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:05:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9yBB-0007nL-Bp for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:05:38 -0400 Received: from mail-lb0-f180.google.com ([209.85.217.180]:55634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9yBB-0007nB-4B for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:05:33 -0400 Received: by mail-lb0-f180.google.com with SMTP id a16so647108lbj.25 for ; Thu, 15 Aug 2013 07:05:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> From: Peter Maydell Date: Thu, 15 Aug 2013 15:05:12 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: QEmu Devel On 15 August 2013 15:01, Herbei Dacian wrote: > yes but which binary do I use to call to run an emulated arm image? qemu-system-arm. > is there an actual binary that can emulate an existing arm board, anyboard? "qemu-system-arm -M help" lists the boards we support. http://www.aurel32.net/info/debian_arm_qemu.php is a good howto type document. -- PMM From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9yOE-0007mk-A1 for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:19:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9yO8-0004JP-PW for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:19:02 -0400 Received: from nm2-vm1.bullet.mail.ird.yahoo.com ([77.238.189.200]:44655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9yO8-0004Gr-03 for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:18:56 -0400 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> Message-ID: <1376576328.3784.YahooMailNeo@web172606.mail.ir2.yahoo.com> Date: Thu, 15 Aug 2013 15:18:48 +0100 (BST) From: Herbei Dacian In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1315625436-161663577-1376576328=:3784" Subject: Re: [Qemu-devel] minimal linux distribution for qemu Reply-To: Herbei Dacian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEmu Devel ---1315625436-161663577-1376576328=:3784 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0Abut you said that "qemu-system-arm" is not maintained and it doesn't wor= k.=0A=0AThe link below contains only links to kernel images that don't work= .=0AAnyway I'll figure it somehow cause this doesn't help me.=0A=0A=0A=0A__= ______________________________=0A From: Peter Maydell =0ATo: Herbei Dacian =0ACc: QEmu Devel =0ASent: Thursday, 15 August 2013, 16:05=0ASubject: Re: [= Qemu-devel] minimal linux distribution for qemu=0A =0A=0AOn 15 August 2013 = 15:01, Herbei Dacian wrote:=0A> yes but which bina= ry do I use to call to run an emulated arm image?=0A=0Aqemu-system-arm.=0A= =0A> is there an actual binary that can emulate an existing arm board, anyb= oard?=0A=0A"qemu-system-arm -M help" lists the boards we support.=0A=0Ahttp= ://www.aurel32.net/info/debian_arm_qemu.php is a good howto=0Atype document= .=0A=0A-- PMM ---1315625436-161663577-1376576328=:3784 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

but you said that "qemu-syst= em-arm" is not maintained and it doesn't work.
The link below= contains only links to kernel images that don't work.
An= yway I'll figure it somehow cause this doesn't help me.


From: P= eter Maydell <peter.maydell@linaro.org>
To: Herbei Dacian <dacian_herbei@yahoo.fr> Cc: QEmu Devel <qemu-devel@nong= nu.org>
Sent: Thur= sday, 15 August 2013, 16:05
Subje= ct: Re: [Qemu-devel] minimal linux distribution for qemu

On 15 August 2013 15:01, Her= bei Dacian <dacian_herbei@yahoo.fr> wrote:
> yes b= ut which binary do I use to call to run an emulated arm image?

qemu-= system-arm.

> is there an actual binary that can emulate an exist= ing arm board, anyboard?

"qemu-system-arm -M help" lists the boards = we support.

http://www.aurel32.net/info/debian_arm_qemu.php i= s a good howto
type document.

-- PMM


=20
---1315625436-161663577-1376576328=:3784-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9yS6-00032I-Fx for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9yS1-0005as-RA for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:23:02 -0400 Received: from mail-la0-f49.google.com ([209.85.215.49]:40043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9yS1-0005ai-Kw for qemu-devel@nongnu.org; Thu, 15 Aug 2013 10:22:57 -0400 Received: by mail-la0-f49.google.com with SMTP id ev20so585900lab.8 for ; Thu, 15 Aug 2013 07:22:56 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1376576328.3784.YahooMailNeo@web172606.mail.ir2.yahoo.com> References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> <1376576328.3784.YahooMailNeo@web172606.mail.ir2.yahoo.com> From: Peter Maydell Date: Thu, 15 Aug 2013 15:22:36 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: QEmu Devel On 15 August 2013 15:18, Herbei Dacian wrote: > but you said that "qemu-system-arm" is not maintained and it doesn't work. No, I said that the arguments you were giving it were requesting a model of an obsolete board, and you should ask it to emulate a different board. -- PMM From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMQz-0006cL-Hq for qemu-devel@nongnu.org; Fri, 16 Aug 2013 11:59:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAMQs-0007yf-94 for qemu-devel@nongnu.org; Fri, 16 Aug 2013 11:59:29 -0400 Received: from mail-ob0-f171.google.com ([209.85.214.171]:65228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMQs-0007yO-43 for qemu-devel@nongnu.org; Fri, 16 Aug 2013 11:59:22 -0400 Received: by mail-ob0-f171.google.com with SMTP id tb18so2218369obb.2 for ; Fri, 16 Aug 2013 08:59:20 -0700 (PDT) Date: Fri, 16 Aug 2013 10:59:20 -0500 From: Rob Landley References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <520CC13A.50101@suse.de> In-Reply-To: <520CC13A.50101@suse.de> (from afaerber@suse.de on Thu Aug 15 06:53:30 2013) Message-Id: <1376668760.2737.44@driftwood> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?q?F=E4rber?= Cc: Herbei Dacian , QEmu Devel On 08/15/2013 06:53:30 AM, Andreas F=E4rber wrote: > Hi, >=20 > Am 15.08.2013 10:57, schrieb Herbei Dacian: > > > > please, can anyone recommend me a distribution that offers a =20 > barebone > > linux kernel. > > minimum that I need on that image are: > > _ the kernel > > _ the compiler and development infrastructure to build it >=20 > Aboriginal Linux. >=20 > Andreas Aboriginal actually comes with qemu launch scripts for each target. =20 ./run-emulator.sh is just the qemu command line, ./dev-environment.sh =20 is a wrappe around that providing a better development enviornment =20 (more memory and disk space). It's all described at =20 http://landley.net/aboriginal/about.html Try this: wget http://landley.net/aboriginal/bin/system-image-armv5l.tar.bz2 tar xvjf system-image-armv5l.tar.bz2 cd system-image.armv5l ./run-emulator.sh gcc /usr/src/thread-hello2.c -lpthread ./a.out exit Thanks, Rob= From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMWy-0002CO-00 for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:05:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAMWq-0001jm-Fq for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:05:39 -0400 Received: from mail-oa0-f48.google.com ([209.85.219.48]:52965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMWq-0001jY-Bj for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:05:32 -0400 Received: by mail-oa0-f48.google.com with SMTP id o17so2443857oag.7 for ; Fri, 16 Aug 2013 09:05:31 -0700 (PDT) Date: Fri, 16 Aug 2013 11:05:17 -0500 From: Rob Landley References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> In-Reply-To: <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> (from dacian_herbei@yahoo.fr on Thu Aug 15 09:01:19 2013) Message-Id: <1376669117.2737.45@driftwood> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: Peter Maydell , QEmu Devel On 08/15/2013 09:01:19 AM, Herbei Dacian wrote: >=20 > yes but which binary do I use to call to run an emulated arm image? >=20 > is there an actual binary that can emulate an existing arm board, =20 > anyboard? > qemu? > if not which is the emulator that works with arm? > If not where is the project that I can tweak to build such a binary. The arm versatilepb emulation can accept a range of processors (I've =20 tried armv4, armv4t, armv5, armv6, and armv7), provides a PCI bus with =20 a virtual hard drive controller and network card, and can accept 256 =20 megs of ram. (In theory it can accept more but I have to get the =20 discontiguous memory stuff to work, haven't done that yet.) That's the one I used in Aboriginal Linux arm images. Rob= From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMXS-0002bB-CG for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:06:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAMXN-0001mt-1w for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:06:10 -0400 Received: from nm13-vm0.bullet.mail.ird.yahoo.com ([77.238.189.195]:39147) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1VAMXM-0001mk-KK for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:06:04 -0400 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <520CC13A.50101@suse.de> <1376668760.2737.44@driftwood> Message-ID: <1376669161.41455.YahooMailNeo@web172603.mail.ir2.yahoo.com> Date: Fri, 16 Aug 2013 17:06:01 +0100 (BST) From: Herbei Dacian In-Reply-To: <1376668760.2737.44@driftwood> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-662718069-1314593160-1376669161=:41455" Subject: Re: [Qemu-devel] minimal linux distribution for qemu Reply-To: Herbei Dacian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rob Landley , =?utf-8?B?QW5kcmVhcyDvu79Gw6RyYmVy?= Cc: QEmu Devel ---662718069-1314593160-1376669161=:41455 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks Rob I think that should do it for me.=0A=0A=0A=0A=0A=0A_____________= ___________________=0A From: Rob Landley =0ATo: Andreas = =EF=BB=BFF=C3=A4rber =0ACc: Herbei Dacian ; QEmu Devel =0ASent: Friday, 16 August 2= 013, 17:59=0ASubject: Re: [Qemu-devel] minimal linux distribution for qemu= =0A =0A=0AOn 08/15/2013 06:53:30 AM, Andreas F=C3=A4rber wrote:=0A> Hi,=0A>= =0A> Am 15.08.2013 10:57, schrieb Herbei Dacian:=0A> >=0A> > please, can a= nyone recommend me a distribution that offers a=C2=A0 =0A> barebone=0A> > l= inux kernel.=0A> > minimum that I need on that image are:=0A> > _ the kerne= l=0A> > _ the compiler and development infrastructure to build it=0A> =0A> = Aboriginal Linux.=0A> =0A> Andreas=0A=0AAboriginal actually comes with qemu= launch scripts for each target.=C2=A0 =0A./run-emulator.sh is just the qem= u command line, ./dev-environment.sh=C2=A0 =0Ais a wrappe around that provi= ding a better development enviornment=C2=A0 =0A(more memory and disk space)= . It's all described at=C2=A0 =0Ahttp://landley.net/aboriginal/about.html= =0A=0ATry this:=0A=0A=C2=A0 wget http://landley.net/aboriginal/bin/system-= image-armv5l.tar.bz2=0A=C2=A0 tar xvjf system-image-armv5l.tar.bz2=0A=C2= =A0 cd system-image.armv5l=0A=C2=A0 ./run-emulator.sh=0A=0A=C2=A0 gcc /u= sr/src/thread-hello2.c -lpthread=0A=C2=A0 ./a.out=0A=C2=A0 exit=0A=0AThan= ks,=0A=0ARob ---662718069-1314593160-1376669161=:41455 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Thanks Rob I think that should d= o it for me.




<= span style=3D"font-weight:bold;">From: Rob Landley <rob@landl= ey.net>
To: Andreas= =EF=BB=BFF=C3=A4rber <afaerber@suse.de>
Cc: Herbei Dacian <dacian_herbei@yahoo.fr>; = QEmu Devel <qemu-devel@nongnu.org>
Sent: Friday, 16 August 2013, 17:59
Subject: Re: [Qemu-devel] minimal linux = distribution for qemu

On 08/15/2013 06:53:30 A= M, Andreas F=C3=A4rber wrote:
> Hi,
>
> Am 15.08.2013 10= :57, schrieb Herbei Dacian:
> >
> > please, can anyone re= commend me a distribution that offers a 
> barebone
> >= ; linux kernel.
> > minimum that I need on that image are:
>= > _ the kernel
> > _ the compiler and development infrastructu= re to build it
>
> Aboriginal Linux.
>
> Andreas<= br>
Aboriginal actually comes with qemu launch scripts for each target.&= nbsp;
./run-emulator.sh is just the qemu command line, ./dev-environmen= t.sh 
is a wrappe around that providing a better development envio= rnment 
(more memory and disk space). It's all described at  =
= http://landley.net/aboriginal/about.html

Try this:

 = =20 wget http://landley.net/aboriginal/bin/system-image-armv5= l.tar.bz2
  tar xvjf system-image-armv5l.tar.bz2
  cd= system-image.armv5l
  ./run-emulator.sh

  gcc /usr/s= rc/thread-hello2.c -lpthread
  ./a.out
  exit

Than= ks,

Rob

---662718069-1314593160-1376669161=:41455-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMiA-0005cS-1R for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:17:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAMi4-0004nX-Gn for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:17:13 -0400 Received: from nm5-vm0.bullet.mail.ird.yahoo.com ([77.238.189.207]:48473) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1VAMi4-0004mm-1D for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:17:08 -0400 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> <1376669117.2737.45@driftwood> Message-ID: <1376669826.26224.YahooMailNeo@web172602.mail.ir2.yahoo.com> Date: Fri, 16 Aug 2013 17:17:06 +0100 (BST) From: Herbei Dacian In-Reply-To: <1376669117.2737.45@driftwood> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-945802626-69066577-1376669826=:26224" Subject: Re: [Qemu-devel] minimal linux distribution for qemu Reply-To: Herbei Dacian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rob Landley Cc: Peter Maydell , QEmu Devel ---945802626-69066577-1376669826=:26224 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable my system should run in far less memory. something like 2-4MB.=0Abut first = I need to have a system running so that I can monitor with qemu the address= es accessed for read execute and write by the code run by the emulator.=0Ai= f I reach that is a real big deal.=0Adacian=0A=0A=0A=0A=0A_________________= _______________=0A From: Rob Landley =0ATo: Herbei Dacian = =0ACc: Peter Maydell ; Q= Emu Devel =0ASent: Friday, 16 August 2013, 18:05=0A= Subject: Re: [Qemu-devel] minimal linux distribution for qemu=0A =0A=0AOn 0= 8/15/2013 09:01:19 AM, Herbei Dacian wrote:=0A> =0A> yes but which binary d= o I use to call to run an emulated arm image?=0A> =0A> is there an actual b= inary that can emulate an existing arm board,=A0 =0A> anyboard?=0A> qemu?= =0A> if not which is the emulator that works with arm?=0A> If not where is = the project that I can tweak to build such a binary.=0A=0AThe arm versatile= pb emulation can accept a range of processors (I've=A0 =0Atried armv4, armv= 4t, armv5, armv6, and armv7), provides a PCI bus with=A0 =0Aa virtual hard = drive controller and network card, and can accept 256=A0 =0Amegs of ram. (I= n theory it can accept more but I have to get the=A0 =0Adiscontiguous memor= y stuff to work, haven't done that yet.)=0A=0AThat's the one I used in Abor= iginal Linux arm images.=0A=0ARob ---945802626-69066577-1376669826=:26224 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
my system should run in far less= memory. something like 2-4MB.
but first I need to have a system running= so that I can monitor with qemu the addresses accessed for read execute an= d write by the code run by the emulator.
if I reach that is a real big d= eal.
dacian



<= span style=3D"font-weight:bold;">From: Rob Landley <rob@landl= ey.net>
To: Herbei = Dacian <dacian_herbei@yahoo.fr>
Cc: Peter Maydell <peter.maydell@linaro.org>; QEmu De= vel <qemu-devel@nongnu.org>
S= ent: Friday, 16 August 2013, 18:05
Subject: Re: [Qemu-devel] minimal linux distributio= n for qemu

On 08/15/2= 013 09:01:19 AM, Herbei Dacian wrote:
>
> yes but which binary= do I use to call to run an emulated arm image?
>
> is there a= n actual binary that can emulate an existing arm board, 
> anyb= oard?
> qemu?
> if not which is the emulator that works with ar= m?
> If not where is the project that I can tweak to build such a bin= ary.

The arm versatilepb emulation can accept a range of processors = (I've 
tried armv4, armv4t, armv5, armv6, and armv7), provides a P= CI bus with 
a virtual hard drive controller and network card, and= can accept 256 
megs of ram. (In theory it can accept more but I have to get the 
discontiguous memory stuff to work, haven't done= that yet.)

That's the one I used in Aboriginal Linux arm images.
Rob

---945802626-69066577-1376669826=:26224-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMmR-0007sO-N6 for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:21:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAMmK-0006EN-1y for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:21:39 -0400 Received: from mail-oa0-f51.google.com ([209.85.219.51]:35396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMmJ-0006EJ-TB for qemu-devel@nongnu.org; Fri, 16 Aug 2013 12:21:31 -0400 Received: by mail-oa0-f51.google.com with SMTP id h1so2476108oag.38 for ; Fri, 16 Aug 2013 09:21:31 -0700 (PDT) Date: Fri, 16 Aug 2013 11:21:14 -0500 From: Rob Landley In-Reply-To: <1376576328.3784.YahooMailNeo@web172606.mail.ir2.yahoo.com> (from dacian_herbei@yahoo.fr on Thu Aug 15 09:18:48 2013) Message-Id: <1376670074.2737.46@driftwood> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: Peter Maydell , QEmu Devel On 08/15/2013 09:18:48 AM, Herbei Dacian wrote: >=20 > but you said that "qemu-system-arm" is not maintained and it doesn't =20 > work. Who said that? git log --pretty=3Dformat:"%h %ci %s" hw/arm be2f78b 2013-08-05 11:46:58 -0500 pxa2xx: Avoid =20 object_get_link_property() asser cfc6b24 2013-07-29 21:06:27 +0200 versatilepb: QOM cast cleanup for =20 vpb_sic_stat 0ca8187 2013-07-29 21:06:27 +0200 strongarm: QOM cast cleanup for =20 StrongARMSSPSt fff3af9 2013-07-29 21:06:27 +0200 strongarm: QOM cast cleanup for =20 StrongARMUARTS Something like 50 commits to hw/arm last month alone, and August was =20 feature freeze for the 1.6.0 release. (If it _wasn't_ actively =20 developed I wouldn't have had to work around a darn IRQ routing issue =20 on the arm target in the last Aboriginal release...) Rob= From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAO6b-00023l-H8 for qemu-devel@nongnu.org; Fri, 16 Aug 2013 13:46:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAO6W-0000bH-QW for qemu-devel@nongnu.org; Fri, 16 Aug 2013 13:46:33 -0400 Received: from cantor2.suse.de ([195.135.220.15]:57320 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAO6W-0000b3-Gn for qemu-devel@nongnu.org; Fri, 16 Aug 2013 13:46:28 -0400 Message-ID: <520E656F.7030802@suse.de> Date: Fri, 16 Aug 2013 19:46:23 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> <1376669117.2737.45@driftwood> <1376669826.26224.YahooMailNeo@web172602.mail.ir2.yahoo.com> In-Reply-To: <1376669826.26224.YahooMailNeo@web172602.mail.ir2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: Peter Maydell , qemu-devel Am 16.08.2013 18:17, schrieb Herbei Dacian: > my system should run in far less memory. something like 2-4MB. I thought either 16MB or 64MB RAM was a lower limit for uCLinux? If you want to write your own custom firmware then you can go pretty low of course. For low-end ARM embedded development the two Stellaris machines (Cortex-M3) might be a good starting point in that case. Andreas P.S. Please avoid top-posting and HTML on this mailing list. > but first I need to have a system running so that I can monitor with > qemu the addresses accessed for read execute and write by the code run > by the emulator. > if I reach that is a real big deal. > dacian >=20 >=20 > -----------------------------------------------------------------------= - > *From:* Rob Landley > *To:* Herbei Dacian > *Cc:* Peter Maydell ; QEmu Devel > > *Sent:* Friday, 16 August 2013, 18:05 > *Subject:* Re: [Qemu-devel] minimal linux distribution for qemu >=20 > On 08/15/2013 09:01:19 AM, Herbei Dacian wrote: >> >> yes but which binary do I use to call to run an emulated arm image? >> >> is there an actual binary that can emulate an existing arm board,=20 >> anyboard? >> qemu? >> if not which is the emulator that works with arm? >> If not where is the project that I can tweak to build such a binary. >=20 > The arm versatilepb emulation can accept a range of processors (I've=20 > tried armv4, armv4t, armv5, armv6, and armv7), provides a PCI bus with=20 > a virtual hard drive controller and network card, and can accept 256=20 > megs of ram. (In theory it can accept more but I have to get the=20 > discontiguous memory stuff to work, haven't done that yet.) >=20 > That's the one I used in Aboriginal Linux arm images. >=20 > Rob >=20 --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAv6d-0006fK-PN for qemu-devel@nongnu.org; Sun, 18 Aug 2013 01:00:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAv6W-0007TV-FW for qemu-devel@nongnu.org; Sun, 18 Aug 2013 01:00:47 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:62310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAv6W-0007TI-6H for qemu-devel@nongnu.org; Sun, 18 Aug 2013 01:00:40 -0400 Received: by mail-ob0-f174.google.com with SMTP id wd6so3505842obb.5 for ; Sat, 17 Aug 2013 22:00:38 -0700 (PDT) Date: Sun, 18 Aug 2013 00:00:39 -0500 From: Rob Landley References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> <1376669117.2737.45@driftwood> <1376669826.26224.YahooMailNeo@web172602.mail.ir2.yahoo.com> In-Reply-To: <1376669826.26224.YahooMailNeo@web172602.mail.ir2.yahoo.com> (from dacian_herbei@yahoo.fr on Fri Aug 16 11:17:06 2013) Message-Id: <1376802039.2737.52@driftwood> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: Peter Maydell , QEmu Devel On 08/16/2013 11:17:06 AM, Herbei Dacian wrote: > my system should run in far less memory. something like 2-4MB. > but first I need to have a system running so that I can monitor with =20 > qemu the addresses accessed for read execute and write by the code =20 > run by the emulator. > if I reach that is a real big deal. > dacian Linux 2.6 and later won't run in 2 megs at all. You can trim it down to =20 4 megs on a nommu system (the page tables take up too much ram =20 otherwise), but won't be able to do much. Really, things like kobjects in the modern kernel take up too much =20 space. Getting anything to work in 4 megs requires diabling all the =20 printk strings at compile time. (The last time I saw somebody do a 4 =20 meg system was CELF in 2006. 32 bit x86.) Look at the uClinux project. Or try to bolt your app onto uboot and run =20 it on the bare metal. Rob= From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB3Tp-0006SR-7r for qemu-devel@nongnu.org; Sun, 18 Aug 2013 09:57:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VB3Ti-0003LR-SY for qemu-devel@nongnu.org; Sun, 18 Aug 2013 09:57:17 -0400 Received: from nm11.bullet.mail.ird.yahoo.com ([77.238.189.64]:42488) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1VB3Ti-0003Kv-Eh for qemu-devel@nongnu.org; Sun, 18 Aug 2013 09:57:10 -0400 References: <1376557029.19085.YahooMailNeo@web172603.mail.ir2.yahoo.com> <20130815120910.GA32223@stefanha-thinkpad.redhat.com> <1376572924.75296.YahooMailNeo@web172603.mail.ir2.yahoo.com> <1376574399.92764.YahooMailNeo@web172601.mail.ir2.yahoo.com> <1376575279.89844.YahooMailNeo@web172604.mail.ir2.yahoo.com> <1376669117.2737.45@driftwood> <1376669826.26224.YahooMailNeo@web172602.mail.ir2.yahoo.com> <1376802039.2737.52@driftwood> Message-ID: <1376834228.65699.YahooMailNeo@web172602.mail.ir2.yahoo.com> Date: Sun, 18 Aug 2013 14:57:08 +0100 (BST) From: Herbei Dacian In-Reply-To: <1376802039.2737.52@driftwood> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-945802626-504041566-1376834228=:65699" Subject: Re: [Qemu-devel] minimal linux distribution for qemu Reply-To: Herbei Dacian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rob Landley Cc: QEmu Devel ---945802626-504041566-1376834228=:65699 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0Agood to know.=0AI was working back in 2005-2006 with a company that had = a 4MB kernel.=0AAt that time I was too inexperienced to work at that level = but I thought now I could reproduce their work with some help.=0AAnyhow for= the moment I'll go for 256 MB of ram board just so that I don't worry too = much about things that are not yet relevant for me.=0ABut thanks again for = the warning.=0ABut since you helped me soo much I have another question.=0A= Is it fisible to change the emulator so that I may visualize the following = aspects:=0A_ address of the currently executed instruction from the guest s= ystem=0A_ if this instruction is a form of jump like call return conditiona= l jump.=0A_ the address or range of addresses read by this instruction=0A_ = the address or range of addresses written by this instruction=0A=0AI read s= ome things about the emulator and if I understood it correctly the emulator= breaks the instructions of the gurest platform in micro ops which are then= executed on the host operation system.=0ASo I'm asking the question above = in the idea that maybe there is also somekind of reordering of these micro = instructions.=0Abest regards,=0Adacian=0A=0A=0A=0A=0A______________________= __________=0A From: Rob Landley =0ATo: Herbei Dacian =0ACc: Peter Maydell ; QEmu D= evel =0ASent: Sunday, 18 August 2013, 8:00=0ASubjec= t: Re: [Qemu-devel] minimal linux distribution for qemu=0A =0A=0AOn 08/16/2= 013 11:17:06 AM, Herbei Dacian wrote:=0A> my system should run in far less = memory. something like 2-4MB.=0A> but first I need to have a system running= so that I can monitor with=A0 =0A> qemu the addresses accessed for read ex= ecute and write by the code=A0 =0A> run by the emulator.=0A> if I reach tha= t is a real big deal.=0A> dacian=0A=0ALinux 2.6 and later won't run in 2 me= gs at all. You can trim it down to=A0 =0A4 megs on a nommu system (the page= tables take up too much ram=A0 =0Aotherwise), but won't be able to do much= .=0A=0AReally, things like kobjects in the modern kernel take up too much= =A0 =0Aspace. Getting anything to work in 4 megs requires diabling all the= =A0 =0Aprintk strings at compile time. (The last time I saw somebody do a 4= =A0 =0Ameg system was CELF in 2006. 32 bit x86.)=0A=0ALook at the uClinux p= roject. Or try to bolt your app onto uboot and run=A0 =0Ait on the bare met= al.=0A=0ARob ---945802626-504041566-1376834228=:65699 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

good to know.
I was worki= ng back in 2005-2006 with a company that had a 4MB kernel.
At that time = I was too inexperienced to work at that level but I thought now I could rep= roduce their work with some help.
Anyhow for the moment I'll go for 256 = MB of ram board just so that I don't worry too much about things that are n= ot yet relevant for me.
But thanks again for the warning.
But since y= ou helped me soo much I have another question.
Is it fisible to change t= he emulator so that I may visualize the following aspects:
_ address of = the currently executed instruction from the guest system
_ if this instr= uction is a form of jump like call return conditional jump.
_ the addres= s or range of addresses read by this instruction
_ the address or range = of addresses written by this instruction

I read some things about the emulator and if I understood it correctly the emulator breaks th= e instructions of the gurest platform in micro ops which are then executed = on the host operation system.
So I'm asking the question above in the id= ea that maybe there is also somekind of reordering of these micro instructi= ons.
best regards,
dacian



From: Rob Landle= y <rob@landley.net>
To: Herbei Dacian <dacian_herbei@yahoo.fr>
Cc: Peter Maydell <peter.maydell@linaro.o= rg>; QEmu Devel <qemu-devel@nongnu.org>
Sent: Sunday, 18 August 2013, 8:00
Subject: Re: [Qemu-devel] minimal linux dis= tribution for qemu

On= 08/16/2013 11:17:06 AM, Herbei Dacian wrote:
> my system should run = in far less memory. something like 2-4MB.
> but first I need to have = a system running so that I can monitor with 
> qemu the address= es accessed for read execute and write by the code 
> run by th= e emulator.
> if I reach that is a real big deal.
> dacian
<= br>Linux 2.6 and later won't run in 2 megs at all. You can trim it down to&= nbsp;
4 megs on a nommu system (the page tables take up too much ram&nb= sp;
otherwise), but won't be able to do much.

Really, things lik= e kobjects in the modern kernel take up too much 
space. Getting a= nything to work in 4 megs requires diabling all the 
printk strings at compile time. (The last time I saw somebody do a 4 
me= g system was CELF in 2006. 32 bit x86.)

Look at the uClinux project.= Or try to bolt your app onto uboot and run 
it on the bare metal.=

Rob

---945802626-504041566-1376834228=:65699-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBj6q-0004TF-Cm for qemu-devel@nongnu.org; Tue, 20 Aug 2013 06:24:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBj6j-0000x6-2H for qemu-devel@nongnu.org; Tue, 20 Aug 2013 06:24:20 -0400 Received: from mail-ob0-f180.google.com ([209.85.214.180]:38281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBj6i-0000wl-TZ for qemu-devel@nongnu.org; Tue, 20 Aug 2013 06:24:12 -0400 Received: by mail-ob0-f180.google.com with SMTP id up14so273344obb.39 for ; Tue, 20 Aug 2013 03:24:11 -0700 (PDT) Date: Tue, 20 Aug 2013 03:38:41 -0500 From: Rob Landley In-Reply-To: <1376834228.65699.YahooMailNeo@web172602.mail.ir2.yahoo.com> (from dacian_herbei@yahoo.fr on Sun Aug 18 08:57:08 2013) Message-Id: <1376987921.2737.64@driftwood> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] minimal linux distribution for qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Herbei Dacian Cc: QEmu Devel On 08/18/2013 08:57:08 AM, Herbei Dacian wrote: >=20 > good to know. > I was working back in 2005-2006 with a company that had a 4MB kernel. > At that time I was too inexperienced to work at that level but I =20 > thought now I could reproduce their work with some help. > Anyhow for the moment I'll go for 256 MB of ram board just so that I =20 > don't worry too much about things that are not yet relevant for me. > But thanks again for the warning. > But since you helped me soo much I have another question. > Is it fisible to change the emulator so that I may visualize the =20 > following aspects: > _ address of the currently executed instruction from the guest system > _ if this instruction is a form of jump like call return conditional =20 > jump. > _ the address or range of addresses read by this instruction > _ the address or range of addresses written by this instruction If you feed qemu the -s option it'll open a network port you can =20 connect to to provide the gdbserver protocol (gdb's "target remote" =20 command attaches to this). For system emulation it acts like a jtag =20 attached to the emulated hardware, letting you see registers and such. > I read some things about the emulator and if I understood it =20 > correctly the emulator > breaks the instructions of the gurest platform in micro ops which are =20 > then executed > on the host operation system. Not really, no. QEMU translates large blocks of code (used to be pages, now it's =20 variable sized chunks depending on where the return instruction is) and =20 keeps the translated versions cached (sort of like a java JIT). The =20 main QEMU loop then calls the translated functions which execute until =20 they return or get interrupted by signals (simulating things like timer =20 IRQ). This is why QEMU is so fast, the actual translation overhead is =20 amortized by the resulting native code being run lots of times, a =20 function or loop gets translated once and then runs as native code. This means that "the address of the currently executing instruction" =20 isn't really something qemu naturally tracks, because although there =20 _is_ a copy of the untranslated code page, it's not what we're running. =20 The gdbserver code tries to do so artifically, but it's slow and =20 awkward and not always perfect. Self-modifying code is actually a horrible thing to do to qemu, from a =20 performance perspective. Every time the emulated code page is modified, =20 the cached copy of the translated code is discarded and the entire page =20 gets retranslated. This means that in Aboriginal Linux, the shell =20 scripts ./configure runs sped up 20% when I replaced my dynamically =20 linked busybox with a statically linked one, due to the extra =20 translations caused by the relocation fixups. Rob=