Received: from [140.186.70.92] (port=51288 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUoNn-0002O7-4h for qemu-devel@nongnu.org; Mon, 20 Dec 2010 17:39:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUoNl-0007nj-Mb for qemu-devel@nongnu.org; Mon, 20 Dec 2010 17:39:07 -0500 Received: from cantor.suse.de ([195.135.220.2]:55403 helo=mx1.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUoNl-0007nY-AC for qemu-devel@nongnu.org; Mon, 20 Dec 2010 17:39:05 -0500 Subject: Re: [Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=iso-8859-1 From: Alexander Graf In-Reply-To: <51F6921C-4939-4227-BD02-BDB1213DCA9B@web.de> Date: Mon, 20 Dec 2010 23:39:02 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <39406F96-F32D-4AD2-A053-D4E2CC310D18@suse.de> References: <20101220090728.40FF5590B1@zimbra14-e2.priv.proxad.net> <51F6921C-4939-4227-BD02-BDB1213DCA9B@web.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Andreas_F=E4rber?= Cc: =?iso-8859-1?Q?Fran=E7ois_Revol?= , =?iso-8859-1?Q?Herv=E9_Poussineau?= , qemu-devel@nongnu.org On 20.12.2010, at 23:24, Andreas F=E4rber wrote: > Am 20.12.2010 um 13:30 schrieb Alexander Graf: >=20 >> On 20.12.2010, at 13:19, Fran=E7ois Revol wrote: >>=20 >>>>>> So we certainly do need some open source firmware solution for = prep to at least have Linux running. For other guests, I don't see a = reason why users shouldn't try to fetch a real firmware blob separately = :). >>>>>=20 >>>>> We're not shipping any firmware for ppcemb either, so that = argument seems moot. OpenBIOS, SeaBIOS and ZIPL are the only ones = currently. Feel free to supply additional blobs for U-Boot etc. >>>>=20 >>>> IIUC you don't need u-boot for the embedded targets. You just pass = in a kernel and the rest is magic. >>>=20 >>> This holds only for Linux which imposes its own startup API to = bootloaders and go with kernel drivers directly. >>>=20 >>> Other OS like Haiku use a 2nd stage bootloader which assumes a = working callable BIOS (OF on ppc), and getting it to run on U-Boot is = already tricky on its own. >>=20 >> That was my point :). I'm not aware of us supporting firmware on = ppcemb, so it's capable of running an OS all by itself already. >=20 > No, you rather mean: It's capable of running The OS so you don't care = about proper firmware there. > By the same argument we could just load a Linux kernel directly on = PReP and be good with it. Any pointers appreciated. >=20 >>>>>=20 >>>>> Recent vanilla Linux kernels wouldn't run on PReP. So what Linux = do you want to run using open source firmware? >>>>> I certainly do not intend to write firmware for the upcoming 40p = machine. If Linux runs on real 40p hardware then it should run with real = firmware under emulation, too. QEMU is an emulation project, not a Linux = testing framework. >>>>=20 >>>> I completely agree. Linux is usually easy because it's fully open = source and supports a lot of targets. If you feel like running NetBSD or = Haiku instead, feel free to do so. >>>=20 >>> Thanks for thinking about Haiku ;) >>>=20 >>> Btw there are other existing targets, like AROS, MorphOS, or AmigaOS = which uses a modified U-Boot with a 'boota' command that passes their = 2nd stage Parthenope bootloader a list of BIOS-like callbacks into = U-Boot, cf. : >>> http://www.acube-systems.biz/index.php?page=3Dhardware&pid=3D2 >>> = http://www.acube-systems.biz/download/u-boot-1.3.1c_20101206_prod.tar.gz >>>=20 >>> Though they probably won't run on PReP, and PReP support in Haiku = might come only for the sake of supporting the BeBox, which had its own = dumb firmware (MAME seems to have some emulation support for BeBox). >>>=20 >>> OTOH, I've been thinking about adding a Sam440 target, but it'd = still require the custom U-Boot to start AmigaOS for example. >>=20 >> I'd call U-Boot the firmware that we can ship with Qemu then because = it's open source :). I'm not advocate for openBIOS. If it works, great. = If something else works better, let's take that. >>=20 >> The only thing I really want to see is a target that does something = useful. That's it :). A target that loads proprietary firmware halfway = through is not valuable to users IMHO. A target that loads proprietary = firmware and boots an OS is valuable. A target that doesn't need = firmware and loads an OS is valuable. Maybe a target that doesn't boot = an OS quite yet, but loads open source firmware pretty well is valuable = too. >=20 > Then we agree, a target that doesn't load any firmware or kernel is = not really valuable. >=20 > If you look around then you'll find all kinds of starved QEMU = branches, e.g., alpha es40, avr32 and z80. They're collecting virtual = dust while QEMU grows things like qdev. That's why I'm trying to fix = (note: fix) things in upstream, not create another fork to bitrot. Also on the other forks. I'm not sure what happened with the Alpha port, = but for AVR32 and z80 I have not seen any upstream submissions since I = joined qemu. I know that the AVR32 people were eager in learning things, = but I haven't seen any code submitted upstream. I don't believe this is what will happen with you. You're well aware of = how open source works and will hopefully pester at least me - preferably = others too - until stuff gets in :). Alex