From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNijX-0001Zk-Hw for qemu-devel@nongnu.org; Thu, 04 Apr 2013 07:53:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNijS-0001AU-LN for qemu-devel@nongnu.org; Thu, 04 Apr 2013 07:53:35 -0400 Message-ID: <515D69B8.9040007@suse.de> Date: Thu, 04 Apr 2013 13:53:28 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1365007213-27603-1-git-send-email-chouteau@adacore.com> <1365007213-27603-4-git-send-email-chouteau@adacore.com> <7C0E04C3-1FDF-460E-8F78-1E24E5759C93@suse.de> <515D3BDE.20400@adacore.com> <8FE7E3AF-D822-4DBF-8A7E-BD0EA80AD07A@suse.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Artyom Tarasenko , Alexander Graf , Fabien Chouteau Cc: Peter Maydell , qemu-ppc@nongnu.org, qemu-devel , =?ISO-8859-1?Q?Herv=E9_Poussineau?= Am 04.04.2013 11:57, schrieb Artyom Tarasenko: > On Thu, Apr 4, 2013 at 11:50 AM, Alexander Graf wrote: >> >> On 04.04.2013, at 11:46, Artyom Tarasenko wrote: >> >>> On Thu, Apr 4, 2013 at 10:37 AM, Fabien Chouteau wrote: >>>> >>>> On 04/03/2013 06:59 PM, Alexander Graf wrote: >>>>> >>>>> On 03.04.2013, at 18:40, Fabien Chouteau wrote: >>>>> >>>>>> If we use an ELF kernel there's no need for bios. '-bios -' means = no >>>>>> bios. >>>>> >>>>> This sounds like you're actually looking for a way to load an ELF b= lob >>>>> as bios using -bios, not a kernel, no? >>>>> >>>> >>>> No, we load the kernel with -kernel, that's what the first patch doe= s. >>>> But the board is implemented in such way that you can't start withou= t a >>>> bios. If the -bios switch is not present, then the board uses the >>>> default bios. This patch allows to start without a bios: >>>> >>>> -kernel -bios - >>> >>> Regardless of the firmware vs. kernel discussion, I think the syntax >>> may be improved. Under *nix '-' is commonly used for stdin. Would it >>> be possible to specify /dev/null (under *NIX) or NUL (in the >>> MS-World)? I think it would make the syntax more explicit. >> >> I'd be inclined to say that running -kernel without -bios is simply bo= gus and shouldn't ever happen. >=20 > QEMU does it at least in one other architectures though: leon3_generic. Let's rather say: Fabien did it in leon3, too. ;) Alex, isn't ARM running without -bios? Instead of a firmware blob it has some hardcoded firmware'ish instructions in the loader code. For PReP, Fabien has not stated what his use case actually is (in particular which hardware?), so it's hard for me to comment on what the hardware actually does and I thus won't accept random changes just because they happen to be in Leon3 code. There's nothing conceptually wrong with loading ELF code so I'm positive we will find a solution to accommodate all use cases in some way. :) Regards, Andreas --=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