public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: LAHAYE Olivier <olivier.lahaye@cea.fr>,
	Roman Bolshakov <r.bolshakov@yadro.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: Re: [PATCH] OvmfPkg: Skip initrd command on Xcode toolchain
Date: Wed, 13 May 2020 12:10:52 +0200	[thread overview]
Message-ID: <ad907f8a-fc09-8914-0a04-5fb389616168@redhat.com> (raw)
In-Reply-To: <0800D7A1-34BB-4DCF-ACCB-AA81490BFCD7@cea.fr>

Hi Olivier,

Adding the EDK2 list back, so other developers can answer to help you too.

On 5/13/20 10:24 AM, LAHAYE Olivier wrote:
> Hi,
> 
> Hi,
> 
> I've tested it (built with the patch) and I can now reach the EFI Shell (with and without HVF) on my MacBook Pro.

Thanks for testing it, this is an implicit "Tested-by: LAHAYE Olivier 
<olivier.lahaye@cea.fr>" tag to this patch.

> Exiting the shell, I can reach a basic setup menu where I was able to setup screen resolution and language.
> The only cherry on the cake I miss is the ability to setup keyboard as fr-mac... Any solution?

It might be worth starting a new thread on the list to ask about this.

Regards,

Phil.

> 
> Cheers,
> 
> Olivier.
> 
> Le 13/05/2020 10:19, « Philippe Mathieu-Daudé » <philmd@redhat.com> a écrit :
> 
>      On 5/12/20 10:58 PM, Roman Bolshakov wrote:
>      > OVMF booting stops with the assert if built with Xcode on macOS:
>      >
>      >    Loading driver at 0x0001FAB8000 EntryPoint=0x0001FABF249 LinuxInitrdDynamicShellCommand.efi
>      >    InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 1F218398
>      >    ProtectUefiImageCommon - 0x1F218140
>      >      - 0x000000001FAB8000 - 0x0000000000008A60
>      >
>      >    ASSERT_EFI_ERROR (Status = Unsupported)
>      >    ASSERT LinuxInitrdDynamicShellCommand.c(378): !EFI_ERROR (Status)
>      >
>      > The assert comes from InitializeHiiPackage() after an attempt to
>      > retrieve HII package list from ImageHandle.
>      >
>      > Xcode still doesn't support HII resource section and
>      > LinuxInitrdDynamicShellCommand depends on it. Likewise 277a3958d93a
>      > ("OvmfPkg: Don't include TftpDynamicCommand in XCODE5 tool chain"),
>      > disable initrd command if built with Xcode toolchain
>      >
>      > Fixes: 2632178bc683 ("OvmfPkg: add 'initrd' shell command to expose Linux initrd via device path")
>      > Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>      > Cc: Liming Gao <liming.gao@intel.com>
>      > Cc: Andrew Fish <afish@apple.com>
>      > Cc: Laszlo Ersek <lersek@redhat.com>
>      > Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
>      > ---
>      >   OvmfPkg/OvmfPkgIa32.fdf | 2 +-
>      >   OvmfPkg/OvmfPkgX64.fdf  | 2 +-
>      >   2 files changed, 2 insertions(+), 2 deletions(-)
>      >
>      > diff --git a/OvmfPkg/OvmfPkgIa32.fdf b/OvmfPkg/OvmfPkgIa32.fdf
>      > index fd81b6fa8b..e2b759aa8d 100644
>      > --- a/OvmfPkg/OvmfPkgIa32.fdf
>      > +++ b/OvmfPkg/OvmfPkgIa32.fdf
>      > @@ -290,8 +290,8 @@ INF  MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
>      >
>      >   !if $(TOOL_CHAIN_TAG) != "XCODE5"
>      >   INF  ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
>      > -!endif
>      >   INF  OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf
>      > +!endif
>      >   INF  ShellPkg/Application/Shell/Shell.inf
>      >
>      >   INF MdeModulePkg/Logo/LogoDxe.inf
>      > diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf
>      > index f71134a659..bfca1eff9e 100644
>      > --- a/OvmfPkg/OvmfPkgX64.fdf
>      > +++ b/OvmfPkg/OvmfPkgX64.fdf
>      > @@ -291,8 +291,8 @@ INF  MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
>      >
>      >   !if $(TOOL_CHAIN_TAG) != "XCODE5"
>      >   INF  ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
>      > -!endif
>      >   INF  OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf
>      
>      It looks reasonable.
>      
>      Acked-by: Philippe Mathieu-Daude <philmd@redhat.com>
>      
>      > +!endif
>      >   INF  ShellPkg/Application/Shell/Shell.inf
>      >
>      >   INF MdeModulePkg/Logo/LogoDxe.inf
>      >
>      
>      
> 


  parent reply	other threads:[~2020-05-13 10:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-12 20:58 [PATCH] OvmfPkg: Skip initrd command on Xcode toolchain Roman Bolshakov
2020-05-13  8:19 ` Philippe Mathieu-Daudé
     [not found]   ` <0800D7A1-34BB-4DCF-ACCB-AA81490BFCD7@cea.fr>
2020-05-13 10:10     ` Philippe Mathieu-Daudé [this message]
2020-05-13 10:23 ` Laszlo Ersek
2020-05-14 13:27   ` Roman Bolshakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ad907f8a-fc09-8914-0a04-5fb389616168@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox