TianoCore EDK2 master
Loading...
Searching...
No Matches
PlatformBm.h File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI TryRunningQemuKernel (VOID)
 

Detailed Description

Head file for BDS Platform specific code

Copyright (C) 2015-2016, Red Hat, Inc. Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PlatformBm.h.

Function Documentation

◆ TryRunningQemuKernel()

EFI_STATUS EFIAPI TryRunningQemuKernel ( VOID  )

Download the kernel, the initial ramdisk, and the kernel command line from QEMU's fw_cfg. Construct a minimal SimpleFileSystem that contains the two image files, and load and start the kernel from it.

The kernel will be instructed via its command line to load the initrd from the same Simple FileSystem.

Return values
EFI_NOT_FOUNDKernel image was not found.
EFI_OUT_OF_RESOURCESMemory allocation failed.
EFI_PROTOCOL_ERRORUnterminated kernel command line.
Returns
Error codes from any of the underlying functions. On success, the function doesn't return.

Loads and boots UEFI Linux via the FwCfg interface.

Return values
EFI_NOT_FOUND- The Linux kernel was not found

Definition at line 17 of file QemuKernel.c.