From: tommaso.mazzoni@engicam.com
To: devel@edk2.groups.io, dwmw2@infradead.org
Subject: csm on edk2-platform
Date: Wed, 6 Nov 2019 17:17:42 +0100 [thread overview]
Message-ID: <f0dcf2f2-a29a-1cb8-799f-f7ed05369032@engicam.com> (raw)
[-- 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 --]
next reply other threads:[~2019-11-06 16:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-06 16:17 tommaso.mazzoni [this message]
2019-11-14 13:19 ` [edk2-devel] csm on edk2-platform Laszlo Ersek
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=f0dcf2f2-a29a-1cb8-799f-f7ed05369032@engicam.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