Replace UEFI Shell with a Linux kernel to test booting
This commit is contained in:
parent
462c804024
commit
1c818e4126
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
uefi.img
|
uefi.img
|
||||||
|
linux.efi
|
||||||
|
@ -259,25 +259,3 @@
|
|||||||
NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
|
NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
|
||||||
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
||||||
}
|
}
|
||||||
ShellPkg/Application/Shell/Shell.inf {
|
|
||||||
<LibraryClasses>
|
|
||||||
ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
|
|
||||||
NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
|
|
||||||
NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
|
|
||||||
NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
|
|
||||||
NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
|
|
||||||
NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
|
|
||||||
NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
|
|
||||||
NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
|
||||||
NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
|
|
||||||
HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
|
|
||||||
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
|
||||||
BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
|
|
||||||
<PcdsFixedAtBuild>
|
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
|
|
||||||
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
|
|
||||||
}
|
|
||||||
!ifdef $(INCLUDE_TFTP_COMMAND)
|
|
||||||
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
|
|
||||||
!endif #$(INCLUDE_TFTP_COMMAND)
|
|
||||||
|
@ -26,12 +26,12 @@
|
|||||||
|
|
||||||
[FD.PIXEL3XL_UEFI]
|
[FD.PIXEL3XL_UEFI]
|
||||||
BaseAddress = 0xd0000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash.
|
BaseAddress = 0xd0000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash.
|
||||||
Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
|
Size = 0x01000000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
|
||||||
ErasePolarity = 1
|
ErasePolarity = 1
|
||||||
|
|
||||||
# This one is tricky, it must be: BlockSize * NumBlocks = Size
|
# This one is tricky, it must be: BlockSize * NumBlocks = Size
|
||||||
BlockSize = 0x00001000
|
BlockSize = 0x00001000
|
||||||
NumBlocks = 0x200
|
NumBlocks = 0x1000
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
@ -68,7 +68,7 @@ DATA = {
|
|||||||
0x00, 0x00, 0x00, 0x00 # res5
|
0x00, 0x00, 0x00, 0x00 # res5
|
||||||
}
|
}
|
||||||
|
|
||||||
0x00008000|0x001f8000
|
0x00008000|0xff8000
|
||||||
gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
|
gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
|
||||||
FV = FVMAIN_COMPACT
|
FV = FVMAIN_COMPACT
|
||||||
|
|
||||||
@ -200,10 +200,6 @@ READ_LOCK_STATUS = TRUE
|
|||||||
#
|
#
|
||||||
# UEFI applications
|
# UEFI applications
|
||||||
#
|
#
|
||||||
INF ShellPkg/Application/Shell/Shell.inf
|
|
||||||
!ifdef $(INCLUDE_TFTP_COMMAND)
|
|
||||||
INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
|
|
||||||
!endif #$(INCLUDE_TFTP_COMMAND)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bds
|
# Bds
|
||||||
@ -214,6 +210,11 @@ READ_LOCK_STATUS = TRUE
|
|||||||
INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
||||||
INF MdeModulePkg/Application/UiApp/UiApp.inf
|
INF MdeModulePkg/Application/UiApp/UiApp.inf
|
||||||
|
|
||||||
|
# Linux (pretends to be uefi shell)
|
||||||
|
FILE APPLICATION = 7C04A583-9E3E-4f1c-AD65-E05268D0B4D1 {
|
||||||
|
SECTION PE32 = Pixel3XL/linux.efi
|
||||||
|
}
|
||||||
|
|
||||||
[FV.FVMAIN_COMPACT]
|
[FV.FVMAIN_COMPACT]
|
||||||
FvAlignment = 8
|
FvAlignment = 8
|
||||||
ERASE_POLARITY = 1
|
ERASE_POLARITY = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user