All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Add MacOS VGA driver ROM
@ 2016-07-27 14:27 Programmingkid
       [not found] ` <75F5C508-56B7-4C9F-B380-AD95EADCE511@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Programmingkid @ 2016-07-27 14:27 UTC (permalink / raw)
  To: qemu-devel qemu-devel, list@suse.de:PowerPC list:PowerPC
  Cc: The OpenBIOS Mailinglist

> 
> The project is at https://github.com/ozbenh/QemuMacDrivers
> 
> This adds a native MacOS driver in ROM (which can be picked up
> by MacOS once OpenBIOS has been updated if Mark accepts
> the patches I sent him) which allows MacOS classic
> (tested 9.2.1) and MacOS X (tested 10.1.4 and 10.4)
> to properly use QEMU std VGA (10.1.x doesn't work at all
> without it, the others get the ability to change resolution
> and color depth).
> 
> Building the ROM is tricky and requires CodeWarrior for MacOS
> so I include a pre-built binary.
> 
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Could we see the patches you sent to Mark? Right now when I try to boot QEMU with your patch I see this message: qemu-system-ppc: Initialization of device VGA failed: failed to find romfile "qemu_vga.ndrv"

Thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Add MacOS VGA driver ROM
       [not found]   ` <1469656152.5978.170.camel@kernel.crashing.org>
@ 2016-07-30 15:42     ` Programmingkid
  2016-07-30 19:33       ` Alexander Graf
  2016-07-30 23:11       ` Benjamin Herrenschmidt
  2016-07-30 20:28     ` Programmingkid
  1 sibling, 2 replies; 6+ messages in thread
From: Programmingkid @ 2016-07-30 15:42 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: qemu-devel qemu-devel, list@suse.de:PowerPC list:PowerPC


On Jul 27, 2016, at 5:49 PM, Benjamin Herrenschmidt wrote:

> On Wed, 2016-07-27 at 10:33 -0400, Programmingkid wrote:
>> Could we see the patches you sent to Mark? Right now when I try to
>> boot QEMU with your patch I see this message: qemu-system-ppc:
>> Initialization of device VGA failed: failed to find romfile
>> "qemu_vga.ndrv"
> 
> Hrm, that error is something else. My commit should have added that
> file, maybe your version of "patch" doesn't grab binary files ?

After updating my patch command to 2.7.5, I saw this error message when I tried applying your patch again:

patching file hw/ppc/mac_newworld.c
File pc-bios/qemu_vga.ndrv: git binary diffs are not supported.

What is your output on "patch -v"?

I think I can just copy and paste the binary into a file and try things that way if necessary.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Add MacOS VGA driver ROM
  2016-07-30 15:42     ` Programmingkid
@ 2016-07-30 19:33       ` Alexander Graf
  2016-07-30 23:11       ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 6+ messages in thread
From: Alexander Graf @ 2016-07-30 19:33 UTC (permalink / raw)
  To: Programmingkid
  Cc: Ben Herrenschmidt, list@suse.de:PowerPC list:PowerPC,
	qemu-devel qemu-devel


> On 30 Jul 2016, at 17:42, Programmingkid <programmingkidx@gmail.com> wrote:
> 
> 
> On Jul 27, 2016, at 5:49 PM, Benjamin Herrenschmidt wrote:
> 
>> On Wed, 2016-07-27 at 10:33 -0400, Programmingkid wrote:
>>> Could we see the patches you sent to Mark? Right now when I try to
>>> boot QEMU with your patch I see this message: qemu-system-ppc:
>>> Initialization of device VGA failed: failed to find romfile
>>> "qemu_vga.ndrv"
>> 
>> Hrm, that error is something else. My commit should have added that
>> file, maybe your version of "patch" doesn't grab binary files ?
> 
> After updating my patch command to 2.7.5, I saw this error message when I tried applying your patch again:
> 
> patching file hw/ppc/mac_newworld.c
> File pc-bios/qemu_vga.ndrv: git binary diffs are not supported.
> 
> What is your output on "patch -v"?
> 
> I think I can just copy and paste the binary into a file and try things that way if necessary.
> 
> 

Just use “git am” to apply an mbox :)


Alex

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Add MacOS VGA driver ROM
       [not found]   ` <1469656152.5978.170.camel@kernel.crashing.org>
  2016-07-30 15:42     ` Programmingkid
@ 2016-07-30 20:28     ` Programmingkid
  2016-07-30 23:14       ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 6+ messages in thread
From: Programmingkid @ 2016-07-30 20:28 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: qemu-devel qemu-devel, list@suse.de:PowerPC list:PowerPC

I was wondering if you could add the 1200x700 resolution to the list in https://github.com/ozbenh/QemuMacDrivers/blob/master/QemuVGADriver/src/QemuVga.c. This is the perfect resolution for someone using  QEMU on a 13" MacBook Pro. QEMU's window fills most of the screen but still allows for easy access to the dock. Maybe a command-line option could be added that allows the user to specify their own resolutions for QEMU to support.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Add MacOS VGA driver ROM
  2016-07-30 15:42     ` Programmingkid
  2016-07-30 19:33       ` Alexander Graf
@ 2016-07-30 23:11       ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2016-07-30 23:11 UTC (permalink / raw)
  To: Programmingkid; +Cc: qemu-devel qemu-devel, list@suse.de:PowerPC list:PowerPC

On Sat, 2016-07-30 at 11:42 -0400, Programmingkid wrote:
> 
> I think I can just copy and paste the binary into a file and try
> things that way if necessary.

Nah, just use git am

Cheers,
Ben.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Add MacOS VGA driver ROM
  2016-07-30 20:28     ` Programmingkid
@ 2016-07-30 23:14       ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2016-07-30 23:14 UTC (permalink / raw)
  To: Programmingkid; +Cc: qemu-devel qemu-devel, list@suse.de:PowerPC list:PowerPC

On Sat, 2016-07-30 at 16:28 -0400, Programmingkid wrote:
> I was wondering if you could add the 1200x700 resolution to the list
> in https://github.com/ozbenh/QemuMacDrivers/blob/master/QemuVGADriver
> /src/QemuVga.c. This is the perfect resolution for someone
> using  QEMU on a 13" MacBook Pro. QEMU's window fills most of the
> screen but still allows for easy access to the dock. Maybe a command-
> line option could be added that allows the user to specify their own
> resolutions for QEMU to support.

I can, though I was thinking of being a bit smarter and have qemu
(well, in our case openbios) pass the list of resolutions via the DT. 

If anything, it makes it easier for anybody to change that list without
having to rebuild the MacOS portions.

We'll see what time permits.

Cheers,
Ben.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-30 23:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-27 14:27 [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Add MacOS VGA driver ROM Programmingkid
     [not found] ` <75F5C508-56B7-4C9F-B380-AD95EADCE511@gmail.com>
     [not found]   ` <1469656152.5978.170.camel@kernel.crashing.org>
2016-07-30 15:42     ` Programmingkid
2016-07-30 19:33       ` Alexander Graf
2016-07-30 23:11       ` Benjamin Herrenschmidt
2016-07-30 20:28     ` Programmingkid
2016-07-30 23:14       ` Benjamin Herrenschmidt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.