Re: ‏ qemu running uefi problem

2023-03-14 Thread Peter Maydell
On Tue, 14 Mar 2023 at 11:36, Alyosha Shevandin
 wrote:
>
> Peter Maydell,
> can I assume that It would be possible if there was the full emulation of the 
> Lenovo hardware, including the all firmware blobs and Intell ME?

As a theoretical question, maybe. But that's never going to
happen, so the practical answer is 'this will never work'.

-- PMM



Re:‏ qemu running uefi problem

2023-03-14 Thread Alyosha Shevandin
Peter Maydell,
can I assume that It would be possible if there was the full emulation of the 
Lenovo hardware, including the all firmware blobs and Intell ME?

Regards,
Aleksey


מאת: ‏‏qemu-discuss-bounces+shevandin_al=hotmail@nongnu.org 
 בשם Peter Maydell 

‏‏נשלח: יום שני 13 מרץ 2023 19:01
‏‏אל: Ahlani Poacher 
עותק: qemu-discuss@nongnu.org 
‏‏נושא: Re: qemu running uefi problem

On Sun, 12 Mar 2023 at 16:25, Ahlani Poacher  wrote:
>
> Hello, sorry to bother you, I'm a qemu beginner. I want to use QEMU
> to emulate Lenovo's UEFI firmware, but so far I have only found a
> tutorial for QEMU to run EDK2 to implement UEFI. I would like to
> ask how to convert the UEFI executable downloaded from Lenovo's
> official website to a QEMU compliant format to emulate Lenovo UEFI
> using QEMU.

In general, you can't run a UEFI firmware image from real hardware
on QEMU. The things the firmware will try to do are very low
level and it will assume that it's running on a Lenovo laptop,
which is not exactly the same hardware that QEMU provides.
Even if you figured out how to extract a binary blob from whatever
wrapper Lenovo puts it in for downloading, it would just crash
if you tried to run it in QEMU.

You should run a UEFI image that is compiled to know it is
running on QEMU, like the EDK2 one.

thanks
-- PMM



Re: qemu running uefi problem

2023-03-13 Thread Peter Maydell
On Sun, 12 Mar 2023 at 16:25, Ahlani Poacher  wrote:
>
> Hello, sorry to bother you, I'm a qemu beginner. I want to use QEMU
> to emulate Lenovo's UEFI firmware, but so far I have only found a
> tutorial for QEMU to run EDK2 to implement UEFI. I would like to
> ask how to convert the UEFI executable downloaded from Lenovo's
> official website to a QEMU compliant format to emulate Lenovo UEFI
> using QEMU.

In general, you can't run a UEFI firmware image from real hardware
on QEMU. The things the firmware will try to do are very low
level and it will assume that it's running on a Lenovo laptop,
which is not exactly the same hardware that QEMU provides.
Even if you figured out how to extract a binary blob from whatever
wrapper Lenovo puts it in for downloading, it would just crash
if you tried to run it in QEMU.

You should run a UEFI image that is compiled to know it is
running on QEMU, like the EDK2 one.

thanks
-- PMM



qemu running uefi problem

2023-03-12 Thread Ahlani Poacher
Hello, sorry to bother you, I'm a qemu beginner. I want to use QEMU to
emulate Lenovo's UEFI firmware, but so far I have only found a tutorial for
QEMU to run EDK2 to implement UEFI. I would like to ask how to convert the
UEFI executable downloaded from Lenovo's official website to a QEMU
compliant format to emulate Lenovo UEFI using QEMU. I hope you can answer
my question, thank you.

best regards