summaryrefslogtreecommitdiff
path: root/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c
diff options
context:
space:
mode:
Diffstat (limited to 'EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c')
-rw-r--r--EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c b/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c
index d4e1904d7d..7e9ad880ba 100644
--- a/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c
+++ b/EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c
@@ -56,7 +56,6 @@ BootAndroidBootImg (
IN VOID *Buffer
)
{
- EFI_DEVICE_PATH_PROTOCOL *FdtDevicePath;
EFI_STATUS Status;
CHAR8 KernelArgs[BOOTIMG_KERNEL_ARGS_SIZE];
VOID *Kernel;
@@ -93,20 +92,10 @@ BootAndroidBootImg (
RamdiskDevicePath->Node1.EndingAddress = ((EFI_PHYSICAL_ADDRESS)(UINTN) Ramdisk) + RamdiskSize;
}
- // Get the default FDT device path
- Status = GetEnvironmentVariable ((CHAR16 *)L"Fdt", &gArmGlobalVariableGuid,
- NULL, 0, (VOID **)&FdtDevicePath);
- if (Status == EFI_NOT_FOUND) {
- DEBUG ((EFI_D_ERROR, "Error: Please update FDT path in boot manager\n"));
- return EFI_DEVICE_ERROR;
- }
- ASSERT_EFI_ERROR (Status);
-
Status = BdsBootLinuxFdt (
(EFI_DEVICE_PATH_PROTOCOL *) &KernelDevicePath,
(EFI_DEVICE_PATH_PROTOCOL *) RamdiskDevicePath,
- KernelArgs,
- FdtDevicePath
+ KernelArgs
);
if (EFI_ERROR (Status)) {
DEBUG ((EFI_D_ERROR, "Couldn't Boot Linux: %d\n", Status));
@@ -117,8 +106,6 @@ BootAndroidBootImg (
FreePool (RamdiskDevicePath);
}
- FreePool (FdtDevicePath);
-
// If we got here we do a confused face because BootLinuxFdt returned,
// reporting success.
DEBUG ((EFI_D_ERROR, "WARNING: BdsBootLinuxFdt returned EFI_SUCCESS.\n"));