Of all the gin joints in all the towns in all the world, Alireza Banejad had 
to walk into mine at 02:22:32 on Tuesday, 7 February 2023 and say:

> Do not click links or open attachments unless you recognize the sender and
> know the content is safe. Hello everyone,
> I am trying to use the GOP library for my uefi development. But no matter
> what code whenever i want to open the GOP handle RETURN_UNSUPPORTED is
> returned. I think this may be a qemu problem as if it doesn't support the
> GOP at all. This is how I run my qemu
> 
> qemu-system-x86_64 -bios $FIRMWARE -hda fat:rw:$DRIVE -global
> isa-debugcon.iobase=0x402  -net none -debugcon file:debug2.log  -machine
> pc-q35-6.2 -device virtio-gpu
> 
> Should I add any specific options for the qemu command or should I just use
> another lib for GOP on qemu?

One question: when you launch QEMU, do you actually see a graphics window pop 
up with the Tianocore logo? If you press F2 as it launches, are you able to 
enter the setup menu?

I'm trying to understand if QEMU/OVMF's graphics display is working all all. 
If it is, then in theory the GOP support should work.

If I may suggest, omit the -device virtio-gpu option. In my experience, the 
OVMF firmware for Intel works with the QEMU built-in emulated VGA display 
device. With the code I've written in the past, calling BS->LocateProtocol() 
with the GOP GUID returns a valid handle. Once you have that, you should be 
able to use the GOP methods, e.g. GOP->Blt().

-Bill

-- 
=============================================================================
-Bill Paul            (510) 749-2329 | VxWorks Software Architect,
                 wp...@windriver.com | Master of Unix-Fu - Wind River Systems
=============================================================================
   "I put a dollar in a change machine. Nothing changed." - George Carlin
=============================================================================




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#99770): https://edk2.groups.io/g/devel/message/99770
Mute This Topic: https://groups.io/mt/96810830/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to