public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* csm on edk2-platform
@ 2019-11-06 16:17 tommaso.mazzoni
  2019-11-14 13:19 ` [edk2-devel] " Laszlo Ersek
  0 siblings, 1 reply; 2+ messages in thread
From: tommaso.mazzoni @ 2019-11-06 16:17 UTC (permalink / raw)
  To: devel, dwmw2

[-- Attachment #1: Type: text/plain, Size: 3424 bytes --]

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,


-- 
Tommaso Mazzoni
------------------------------------------------------------------------
http://www.engicam.com <http://www.engicam.com>

50018 Scandicci - Florence - Italy
Via dei Pratoni, 16
Tel. +39 055 7311387
Fax. +39 055 720608
Web www.engicam.com <http://www.engicam.com>

C.F./P.I. 05389070482
Registro Imprese di FIRENZE 542918
Capitale sociale interamente versato 50.000,00€
NOTICE: This message and attachments are intended only for the use of 
their addresses and may contain confidential information belonging to 
Engicam. If you are not the intended recipient, you are hereby notified 
that any reading, dissemination, distribution, or copying of this 
message, or any attachment, is strictly prohibited. If you have received 
this message in error, please notify the original sender immediately and 
delete this message, along with any attachments.

[-- Attachment #2: Type: text/html, Size: 40863 bytes --]

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

end of thread, other threads:[~2019-11-14 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-06 16:17 csm on edk2-platform tommaso.mazzoni
2019-11-14 13:19 ` [edk2-devel] " Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox