Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upl #10570

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from
Draft

Upl #10570

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e925cdf
MdeModulePkg: HobPrintLib: Fix CPU HOB format specifiers
benjamindoron Oct 18, 2024
f07203a
UefiPayloadPkg: Fix FIT image's FDT property names
benjamindoron Oct 18, 2024
eb915bc
UefiPayloadPkg: Fix unnecessary arch-specific DSC lines and bugs
benjamindoron Oct 28, 2024
fde5dec
UefiPayloadPkg: HobParseLib: Strip down library's imports
benjamindoron Oct 28, 2024
f9d008c
UefiPayloadPkg: CustomFdtNodeParserLib: Make "hoblistptr" optional
benjamindoron Oct 28, 2024
891f0ba
UefiPayloadPkg: FdtParserLib: Don't accept reserved-memory
benjamindoron Oct 28, 2024
1fda1d0
UefiPayloadPkg: FdtParserLib: Improve handling of cross-node dependency
benjamindoron Oct 28, 2024
748ed6a
UefiPayloadPkg: FdtParserLib: Handling "serial" FDT nodes
benjamindoron Oct 28, 2024
0b6e89e
UefiPayloadPkg: FdtParserLib: Cleanup the function a little
benjamindoron Oct 28, 2024
30a676b
UefiPayloadPkg: "load" property should reflect image, not whole FIT
benjamindoron Dec 10, 2024
00815b4
UefiPayloadPkg: FdtParserLib: Make "pci-rb" optional
benjamindoron Dec 10, 2024
a769797
UefiPayloadPkg: Add support for finding FVs in the UPL FDT
benjamindoron Dec 12, 2024
de74337
UefiPayloadPkg: Change "entry-start" prop to "entry"
benjamindoron Dec 17, 2024
cf49140
DNM: UefiPayloadPkg: FdtParserLib: Support coreboot memory nodes
benjamindoron Oct 28, 2024
fb56700
Tianocore: Move libfdt to the latest version
sjg20 Dec 25, 2024
71bf1a3
UefiPayloadPkg: Convert to use Fdt class
sjg20 Dec 25, 2024
50583c8
UefiPayloadPkg: Set the loadables property
sjg20 Dec 25, 2024
8c92b74
UefiPayloadPkg: Use the correct 'firmware' type
sjg20 Dec 25, 2024
da883d0
UefiPayloadPkg: Set the OS type
sjg20 Dec 25, 2024
510d4ff
UefiPayloadPkg: Use i386 for the architecture
sjg20 Dec 25, 2024
b16de57
UefiPayloadPkg: Raise an exception on error
sjg20 Dec 25, 2024
98be596
UefiPayloadPkg: Correct data-offset property
sjg20 Dec 26, 2024
cc71486
UefiPayloadPkg: Set the architecture type
sjg20 Dec 26, 2024
b8196d1
UefiPayloadPkg: Improve debugging messages in CustomFdtNodeParserLib
sjg20 Jan 3, 2025
4bea365
UefiPayloadPkg: Use UPL description rather than name
sjg20 Jan 3, 2025
14e69b8
UefiPayloadPkg: Fix up serial debugging
sjg20 Jan 3, 2025
6b96c9e
UefiPayloadPkg: Use an assumed FIT totalsize of 4K
sjg20 Dec 29, 2024
3826c86
WIP: Debugging
sjg20 Dec 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MdeModulePkg/Library/HobPrintLib/HobPrintLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ PrintCpuHob (
Hob.Raw = (UINT8 *)HobStart;
ASSERT (HobLength >= sizeof (*Hob.Cpu));

DEBUG ((DEBUG_INFO, " SizeOfMemorySpace = 0x%lx\n", Hob.Cpu->SizeOfMemorySpace));
DEBUG ((DEBUG_INFO, " SizeOfIoSpace = 0x%lx\n", Hob.Cpu->SizeOfIoSpace));
DEBUG ((DEBUG_INFO, " SizeOfMemorySpace = 0x%x\n", Hob.Cpu->SizeOfMemorySpace));
DEBUG ((DEBUG_INFO, " SizeOfIoSpace = 0x%x\n", Hob.Cpu->SizeOfIoSpace));
return EFI_SUCCESS;
}

Expand Down
2 changes: 1 addition & 1 deletion MdePkg/Library/BaseFdtLib/libfdt
Original file line number Diff line number Diff line change
Expand Up @@ -124,29 +124,36 @@ CustomFdtNodeParser (
{
INT32 Node, CustomNode;
INT32 TempLen;
CONST FDT_PROPERTY *PropertyPtr;
UINT64 *Data64;
UINTN CHobList;
CONST FDT_PROPERTY *PropertyPtr;
EFI_PEI_HOB_POINTERS Hob;

CHobList = (UINTN)HobList;

DEBUG ((DEBUG_INFO, "%a() #1 \n", __func__));
DEBUG ((DEBUG_INFO, "%a() #1 CHobList %p\n", __func__, CHobList));

//
// Look for if exists hob list node
//
Node = FdtSubnodeOffsetNameLen (FdtBase, 0, "options", (INT32)AsciiStrLen ("options"));
if (Node > 0) {
DEBUG ((DEBUG_INFO, " Found options node (%08X)", Node));
DEBUG ((DEBUG_INFO, " Found options node (%08X)\n", Node));
CustomNode = FdtSubnodeOffsetNameLen (FdtBase, Node, "upl-custom", (INT32)AsciiStrLen ("upl-custom"));
if (CustomNode > 0) {
DEBUG ((DEBUG_INFO, " Found upl-custom node (%08X)", CustomNode));
PropertyPtr = FdtGetProperty (FdtBase, CustomNode, "hoblistptr", &TempLen);
Data64 = (UINT64 *)(PropertyPtr->Data);
CHobList = (UINTN)Fdt64ToCpu (ReadUnaligned64 (Data64));
DEBUG ((DEBUG_INFO, " Found hob list node (%08X)", CustomNode));
DEBUG ((DEBUG_INFO, " -pointer %016lX\n", CHobList));
if (PropertyPtr != NULL) {
Data64 = (UINT64 *)(PropertyPtr->Data);
CHobList = (UINTN)Fdt64ToCpu (ReadUnaligned64 (Data64));
DEBUG ((DEBUG_INFO, " Found hob list node (%08X) -pointer %016lX\n", CustomNode, CHobList));
} else {
DEBUG ((DEBUG_INFO, " Not Found hob list node\n"));
return CHobList;
}
} else {
DEBUG ((DEBUG_INFO, " Not Found hob list node\n"));
return CHobList;
}
}

Expand Down
Loading
Loading