public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: tommaso.mazzoni@engicam.com, dwmw2@infradead.org
Cc: devel@edk2.groups.io
Subject: Re: [edk2-devel] csm on edk2-platform
Date: Thu, 14 Nov 2019 14:19:18 +0100	[thread overview]
Message-ID: <a2090585-a8b3-8958-2f8e-4037d93927d9@redhat.com> (raw)
In-Reply-To: <f0dcf2f2-a29a-1cb8-799f-f7ed05369032@engicam.com>

Hi David,

could you please look into this briefly?

Tommaso: please provide David with a more complete description of the
symptom that you see. Can you tell what line exactly in edk2 triggers
the problem?

Thanks
Laszlo

On 11/06/19 17:17, Tommaso Mazzoni wrote:
> Dear all,
> 
> Dear David Woodhouse,
> 
> I'm trying to add Csm packages to my edk2-platform (based on
> devel-IntelAtomProcessorE3900 branch). I customized the repository to
> fit a custom module based on Apollo Lake CPU.
> 
> edk2 is the UDK2018 branch.
> 
> I generated Csm16.bin with David Woodhouse SeaBios
> (git://git.infradead.org/users/dwmw2/seabios.git).
> 
> Then I updated LegacyBbs.c in LegacyBiosDxe.inf because edk2-UDK2018
> version supports only Floppy and IDE HDD. I used LegacyBbs.c from
> edk2-master to scan also removable devices.
> 
> Now I can scan removable devices and Boot Manager populate the boot list
> with Legacy options, even it calls all options "Harddisk".
> 
> So I can try to boot it but the boot procedure stacks when it try to
> disconnect EFI devices (in PciShadowRoms function of LegacyPci.c).
> Function starts to disconnect from VGA, at that point boot stacks.
> 
> My dsc file contains the following includes:
> 
>    MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
>         <LibraryClasses>
>    !ifdef $(CSM_ENABLE)
>           NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
>   
> NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
> 
>    !endif
>       }
>    MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf {
>         <LibraryClasses>
>    DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
>         }
>       MdeModulePkg/Application/UiApp/UiApp.inf {
>         <LibraryClasses>
>    NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
>    NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
>   
> NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
> 
>    !ifdef $(CSM_ENABLE)
>   
> NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
> 
>   
> NULL|IntelFrameworkModulePkg/Library/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
> 
>    !endif
>       }
> 
> and:
> 
>    !ifdef $(CSM_ENABLE)
> 
>    IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/KeyboardDxe.inf
> 
>    IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
> 
>    IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/BlockIoDxe.inf
> 
>    IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/Snp16Dxe.inf
> 
>    IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
> 
>    OvmfPkg/Csm/Csm16/Csm16.inf
> 
>    !endif
> 
> I try to replicate what Laszlo suggest in
> https://ml01.01.org/hyperkitty/list/edk2-devel@lists.01.org/thread/AT7EWPIOJ3GUPBAHIDZLR5V5ZK5S442K/
> 
> 
> Do you have any suggestions? Do you understand what is happening?
> 
> Thank you.
> 
> Best regards,
> 
> 


      reply	other threads:[~2019-11-14 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-06 16:17 csm on edk2-platform tommaso.mazzoni
2019-11-14 13:19 ` Laszlo Ersek [this message]

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=a2090585-a8b3-8958-2f8e-4037d93927d9@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