Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-07-10 Thread Julio Guerra
2013/7/4 Julio Guerra : > No conclusion was finally done about the new option proposal to load > roms files. It really would be handy. I should rephrase it as: does a patch creating such an option would be welcomed? -- Julio Guerra

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-07-04 Thread Julio Guerra
No conclusion was finally done about the new option proposal to load roms files. It really would be handy. -- Julio Guerra

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-08 Thread Scott Wood
On 04/06/2013 04:01:32 AM, Alexander Graf wrote: Am 06.04.2013 um 01:00 schrieb Scott Wood : > On 04/04/2013 06:59:24 AM, Alexander Graf wrote: >> On 04.04.2013, at 13:53, Andreas Färber wrote: >> > For PReP, Fabien has not stated what his use case actually is (in >> > particular which hardwar

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-06 Thread Peter Maydell
On 6 April 2013 12:38, Alexander Graf wrote: > > On 06.04.2013, at 13:27, Peter Maydell wrote: > >> On 6 April 2013 10:07, Alexander Graf wrote: >>> On ARM, look at highbank. Because we're not running we're lacking >>> a monitor mode blob that provides sys calls for flushing caches. >>> Thus toda

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-06 Thread Alexander Graf
On 06.04.2013, at 13:27, Peter Maydell wrote: > On 6 April 2013 10:07, Alexander Graf wrote: >> On ARM, look at highbank. Because we're not running we're lacking >> a monitor mode blob that provides sys calls for flushing caches. >> Thus today the highbank machine doesn't boot anymore with Linux

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-06 Thread Peter Maydell
On 6 April 2013 10:07, Alexander Graf wrote: > On ARM, look at highbank. Because we're not running we're lacking > a monitor mode blob that provides sys calls for flushing caches. > Thus today the highbank machine doesn't boot anymore with Linux. > If we ran firmware like the real board, that woul

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-06 Thread Alexander Graf
Am 06.04.2013 um 01:00 schrieb Scott Wood : > On 04/04/2013 06:59:24 AM, Alexander Graf wrote: >> On 04.04.2013, at 13:53, Andreas Färber wrote: >> > 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 >>

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-06 Thread Alexander Graf
Am 06.04.2013 um 01:00 schrieb Scott Wood : > On 04/04/2013 06:59:24 AM, Alexander Graf wrote: >> On 04.04.2013, at 13:53, Andreas Färber wrote: >> > 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 >>

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-05 Thread Scott Wood
On 04/04/2013 06:59:24 AM, Alexander Graf wrote: On 04.04.2013, at 13:53, Andreas Färber wrote: > 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 rando

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-05 Thread Peter Maydell
On 5 April 2013 10:19, Fabien Chouteau wrote: > If the -kernel option is for Linux only, we have to rename it to -linux. > And we remove the ambiguous -kernel option. This isn't possible, for backwards compatibility reasons. We have to retain -kernel/-initrd/-append under those names. > And I ma

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-05 Thread Fabien Chouteau
On 04/04/2013 07:22 PM, Andreas Färber wrote: > Am 04.04.2013 18:26, schrieb Artyom Tarasenko: >> On Thu, Apr 4, 2013 at 6:20 PM, Peter Maydell >> wrote: >>> On 4 April 2013 17:17, Fabien Chouteau wrote: >>> >>> But -kernel for QEMU specifically means Linux kernel; you might >>> argue we should

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Rob Landley
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 wrote: >>> >>> On 04/03/2013 06:59 PM, Alexander Graf wrote: On 03.04

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Peter Maydell
On 4 April 2013 23:32, Alexander Graf wrote: > Am 04.04.2013 um 18:52 schrieb Peter Maydell : > >> On 4 April 2013 17:51, Alexander Graf wrote: >>> >>> On 04.04.2013, at 18:41, Peter Maydell wrote No, in general this isn't what -bios does. Usually -bios means "take a blob and put it whe

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Alexander Graf
Am 04.04.2013 um 18:52 schrieb Peter Maydell : > On 4 April 2013 17:51, Alexander Graf wrote: >> >> On 04.04.2013, at 18:41, Peter Maydell wrote >>> No, in general this isn't what -bios does. Usually -bios means >>> "take a blob and put it wherever this board expects to have >>> a ROM or flash

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Andreas Färber
Am 04.04.2013 18:26, schrieb Artyom Tarasenko: > On Thu, Apr 4, 2013 at 6:20 PM, Peter Maydell > wrote: >> On 4 April 2013 17:17, Fabien Chouteau wrote: >>> On 04/04/2013 02:43 PM, Peter Maydell wrote: The UI is all wrong, though: -kernel should always mean "load a Linux kernel" and we

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Artyom Tarasenko
On 4/4/13, Peter Maydell wrote: > On 4 April 2013 17:46, Artyom Tarasenko wrote: >> On Thu, Apr 4, 2013 at 6:30 PM, Peter Maydell >> wrote: >>> My point stands: >>> * -kernel (if it means anything at all) has to mean "boot in >>> the way a Linux kernel expects and defines its boot protocol" >>

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Andreas Färber
Am 04.04.2013 18:17, schrieb Fabien Chouteau: > On 04/04/2013 02:43 PM, Peter Maydell wrote: >> On 4 April 2013 12:53, Andreas Färber wrote: >>> Alex, isn't ARM running without -bios? Instead of a firmware blob it has >>> some hardcoded firmware'ish instructions in the loader code. >> >> Varies fr

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Peter Maydell
On 4 April 2013 17:51, Alexander Graf wrote: > > On 04.04.2013, at 18:41, Peter Maydell wrote >> No, in general this isn't what -bios does. Usually -bios means >> "take a blob and put it wherever this board expects to have >> a ROM or flash firmware image". > For blobs, I agree. But for ELF, we c

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Peter Maydell
On 4 April 2013 17:46, Artyom Tarasenko wrote: > On Thu, Apr 4, 2013 at 6:30 PM, Peter Maydell > wrote: >> My point stands: >> * -kernel (if it means anything at all) has to mean "boot in >> the way a Linux kernel expects and defines its boot protocol" > > Yes. That's what happens when loading

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Alexander Graf
On 04.04.2013, at 18:41, Peter Maydell wrote: > On 4 April 2013 17:34, Alexander Graf wrote: >> On 04.04.2013, at 18:30, Peter Maydell wrote: >>> * -kernel (if it means anything at all) has to mean "boot in >>> the way a Linux kernel expects and defines its boot protocol" >> >> This is what -ke

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Artyom Tarasenko
On Thu, Apr 4, 2013 at 6:30 PM, Peter Maydell wrote: > On 4 April 2013 17:26, Artyom Tarasenko wrote: >> On Thu, Apr 4, 2013 at 6:20 PM, Peter Maydell >> wrote: >>> But -kernel for QEMU specifically means Linux kernel; you might >>> argue we should have picked a different option name but we're

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Peter Maydell
On 4 April 2013 17:34, Alexander Graf wrote: > On 04.04.2013, at 18:30, Peter Maydell wrote: >> * -kernel (if it means anything at all) has to mean "boot in >> the way a Linux kernel expects and defines its boot protocol" > > This is what -kernel does. If more OSs than Linux end up happy with > th

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Alexander Graf
On 04.04.2013, at 18:30, Peter Maydell wrote: > On 4 April 2013 17:26, Artyom Tarasenko wrote: >> On Thu, Apr 4, 2013 at 6:20 PM, Peter Maydell >> wrote: >>> But -kernel for QEMU specifically means Linux kernel; you might >>> argue we should have picked a different option name but we're >>> st

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Peter Maydell
On 4 April 2013 17:26, Artyom Tarasenko wrote: > On Thu, Apr 4, 2013 at 6:20 PM, Peter Maydell > wrote: >> But -kernel for QEMU specifically means Linux kernel; you might >> argue we should have picked a different option name but we're >> stuck with it now. > > No, it's not Linux-only. At least

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Artyom Tarasenko
On Thu, Apr 4, 2013 at 6:20 PM, Peter Maydell wrote: > On 4 April 2013 17:17, Fabien Chouteau wrote: >> On 04/04/2013 02:43 PM, Peter Maydell wrote: >>> The UI is all wrong, though: >>> -kernel should always mean "load a Linux kernel" and we should >>> have some other way (ideally a cross-archite

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Peter Maydell
On 4 April 2013 17:17, Fabien Chouteau wrote: > On 04/04/2013 02:43 PM, Peter Maydell wrote: >> The UI is all wrong, though: >> -kernel should always mean "load a Linux kernel" and we should >> have some other way (ideally a cross-architecture way) of saying >> "just load this binary blob and star

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Fabien Chouteau
On 04/04/2013 11:26 AM, Alexander Graf wrote: > > On 04.04.2013, at 10:37, 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.

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Fabien Chouteau
On 04/04/2013 01:16 PM, Andreas Färber wrote: > Am 04.04.2013 10:37, schrieb Fabien Chouteau: >> >> On 04/03/2013 06:59 PM, Alexander Graf wrote: >>> The preferred way to load a kernel with -kernel is to load firmware >>> which then detects that a kernel was loaded with -kernel and jumps in. >>> On

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Fabien Chouteau
On 04/04/2013 02:43 PM, Peter Maydell wrote: > On 4 April 2013 12:53, Andreas Färber wrote: >> Alex, isn't ARM running without -bios? Instead of a firmware blob it has >> some hardcoded firmware'ish instructions in the loader code. > > Varies from board to board, but yes, generally we have a trivi

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Peter Maydell
On 4 April 2013 12:53, Andreas Färber wrote: > Alex, isn't ARM running without -bios? Instead of a firmware blob it has > some hardcoded firmware'ish instructions in the loader code. Varies from board to board, but yes, generally we have a trivial bootloader (which on uniprocessor machines doesn'

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Alexander Graf
On 04.04.2013, at 13:53, Andreas Färber wrote: > 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: >

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Andreas Färber
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

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Andreas Färber
Am 04.04.2013 10:37, schrieb Fabien Chouteau: > > On 04/03/2013 06:59 PM, Alexander Graf wrote: >> The preferred way to load a kernel with -kernel is to load firmware >> which then detects that a kernel was loaded with -kernel and jumps in. >> Once Andreas moves PReP to OpenBIOS, this will be the

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread 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: > I

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Alexander Graf
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

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Artyom Tarasenko
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

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Alexander Graf
On 04.04.2013, at 10:37, 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 wa

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-04 Thread Fabien Chouteau
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 blob > as bios using -bios, not a kernel, no? >

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-03 Thread Alexander Graf
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 blob as bios using -bios, not a kernel, no? The preferred way to load a kernel with -kernel is to loa

[Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-03 Thread Fabien Chouteau
If we use an ELF kernel there's no need for bios. '-bios -' means no bios. Signed-off-by: Fabien Chouteau --- hw/ppc/prep.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 12198ff..8acec46 100644 --- a/hw/ppc/prep