IN VOID *Buffer\r
)\r
{\r
- EFI_DEVICE_PATH_PROTOCOL *FdtDevicePath;\r
EFI_STATUS Status;\r
CHAR8 KernelArgs[BOOTIMG_KERNEL_ARGS_SIZE];\r
VOID *Kernel;\r
RamdiskDevicePath->Node1.EndingAddress = ((EFI_PHYSICAL_ADDRESS)(UINTN) Ramdisk) + RamdiskSize;\r
}\r
\r
- // Get the default FDT device path\r
- Status = GetEnvironmentVariable ((CHAR16 *)L"Fdt", &gArmGlobalVariableGuid,\r
- NULL, 0, (VOID **)&FdtDevicePath);\r
- if (Status == EFI_NOT_FOUND) {\r
- DEBUG ((EFI_D_ERROR, "Error: Please update FDT path in boot manager\n"));\r
- return EFI_DEVICE_ERROR;\r
- }\r
- ASSERT_EFI_ERROR (Status);\r
-\r
Status = BdsBootLinuxFdt (\r
(EFI_DEVICE_PATH_PROTOCOL *) &KernelDevicePath,\r
(EFI_DEVICE_PATH_PROTOCOL *) RamdiskDevicePath,\r
- KernelArgs,\r
- FdtDevicePath\r
+ KernelArgs\r
);\r
if (EFI_ERROR (Status)) {\r
DEBUG ((EFI_D_ERROR, "Couldn't Boot Linux: %d\n", Status));\r
FreePool (RamdiskDevicePath);\r
}\r
\r
- FreePool (FdtDevicePath);\r
-\r
// If we got here we do a confused face because BootLinuxFdt returned,\r
// reporting success.\r
DEBUG ((EFI_D_ERROR, "WARNING: BdsBootLinuxFdt returned EFI_SUCCESS.\n"));\r