From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNwSf-0001SK-RF for qemu-devel@nongnu.org; Thu, 04 Apr 2013 22:33:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNwSZ-0002mY-ID for qemu-devel@nongnu.org; Thu, 04 Apr 2013 22:33:05 -0400 Received: from mail-ie0-x22a.google.com ([2607:f8b0:4001:c03::22a]:45390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNwSZ-0002mG-Bp for qemu-devel@nongnu.org; Thu, 04 Apr 2013 22:32:59 -0400 Received: by mail-ie0-f170.google.com with SMTP id c11so3850500ieb.15 for ; Thu, 04 Apr 2013 19:32:57 -0700 (PDT) Date: Thu, 04 Apr 2013 21:32:53 -0500 From: Rob Landley 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: (from atar4qemu@gmail.com on Thu Apr 4 04:57:32 2013) Message-Id: <1365129173.18069.37@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] [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 Cc: Andreas =?iso-8859-1?q?F=E4rber?= , qemu-ppc@nongnu.org, Alexander Graf , Fabien Chouteau , qemu-devel On 04/04/2013 04:57:32 AM, Artyom Tarasenko wrote: > 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 =20 > 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 -' =20 > means no > >>>>> bios. > >>>> > >>>> This sounds like you're actually looking for a way to load an =20 > ELF blob > >>>> as bios using -bios, not a kernel, no? > >>>> > >>> > >>> No, we load the kernel with -kernel, that's what the first patch =20 > does. > >>> But the board is implemented in such way that you can't start =20 > without 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 =20 > syntax > >> may be improved. Under *nix '-' is commonly used for stdin. Would =20 > 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 =20 > bogus and shouldn't ever happen. >=20 > QEMU does it at least in one other architectures though: =20 > leon3_generic. sh4 runs without bios, arm versatile runs without bios, mips runs =20 without bios... http://landley.net/aboriginal/bin/system-image-armv5l.tar.bz2 (or =20 system-image-sh4.tar.bz2 or system-image-mips.tar.bz2) and =20 ./run-emulator.sh in that. Boots to a shell prompt, no bios. Rob=