VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/UefiPayloadPkg/BuildAndIntegrationInstructions.txt@ 80721

Last change on this file since 80721 was 80721, checked in by vboxsync, 5 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 4.4 KB
Line 
1================================================================================
2Build And Integration Instructions
32019 March 27th
4================================================================================
5
6================================================================================
7DISCLAIMER
8================================================================================
9This release note as well as the software described in it is furnished under license
10and may only be used or copied in accordance with the terms of the license. The
11information in this manual is furnished for informational use only, is subject to
12change without notice, and should not be construed as a commitment by Intel Corporation.
13Intel Corporation assumes no responsibility or liability for any errors or inaccuracies
14that may appear in this document or any software that may be provided in association
15with this document.
16Except as permitted by such license, no part of this document may be reproduced,
17stored in a retrieval system, or transmitted in any form or by any means without
18the express written consent of Intel Corporation.
19
20================================================================================
21 INDEX
22================================================================================
23A. INTRODUCTION
24B. HOW TO BUILD
25C. HOW TO INTEGRATE INTO COREBOOT
26D. HOW TO INTEGRATE INTO SLIM BOOTLOADER
27
28================================================================================
29A. INTRODUCTION
30================================================================================
31This document provides instructions on how to build UEFI Payload and how to
32integrate it into coreboot or Slim Bootloader firmware.
33
34================================================================================
35B. HOW TO BUILD
36================================================================================
371. Run the below two commands in windows command prompt window:
38 edksetup.bat
39
40 For debug ia32 build:
41 build -a IA32 -p UefiPayloadPkg\UefiPayloadPkgIa32.dsc -b DEBUG -t <ToolChain> -D BOOTLOADER=<Bootloader>
42
43 For release ia32 build:
44 build -a IA32 -p UefiPayloadPkg\UefiPayloadPkgIa32.dsc -b RELEASE -t <ToolChain> -D BOOTLOADER=<Bootloader>
45
46 For debug X64 build:
47 build -a IA32 -a X64 -p UefiPayloadPkg\UefiPayloadPkgIa32X64.dsc -b DEBUG -t <ToolChain> -D BOOTLOADER=<Bootloader>
48
49 For release X64 build:
50 build -a IA32 -a X64 -p UefiPayloadPkg\UefiPayloadPkgIa32X64.dsc -b RELEASE -t <ToolChain> -D BOOTLOADER=<Bootloader>
51
52 <ToolChain> is the EDK II build environment on your host. Currently it was tested
53 with VS2015x86 toolchain.
54 <Bootloader> could be "SBL" for Slim Bootloader and "COREBOOT" for coreboot.
55
56 Refer to https://github.com/tianocore/tianocore.github.io/wiki/UDK2018-How-to-Build for
57 details about EDK II build steps.
58
592. If build is successfully, the payload image (UEFIPAYLOAD.fd) will be generated inside the
60 folder of Build\UefiPayloadPkg.
61
62================================================================================
63C. HOW TO INTEGRATE INTO COREBOOT
64================================================================================
651. Copy the payload image (UEFIPAYLOAD.fd) into the top-level directory of Coreboot source tree.
662. Run "make menuconfig" in linux console to start Coreboot configuration surface.
673. In the Payload section,
68 1) Choose "An ELF executable payload" for the option of "Add a payload".
69 2) Type the path of payload image for the option of "Payload path and filename".
70 3) Select the option of "Use LZMA compression for payloads".
714. If the graphics console is required in UEFI payload, enable framebuffer initialization in coreboot.
72 This could be done by enabling native graphics or using VGA BIOS option rom.
735. Build the coreboot firmware image.
74
75================================================================================
76D. HOW TO INTEGRATE INTO SLIM BOOTLOADER
77================================================================================
78Please refer https://slimbootloader.github.io/how-tos/integrate-multiple-payloads.html for below steps.
791. Copy the payload image (UEFIPAYLOAD.fd) into Slim Bootloader source at PayloadPkg\PayloadBins\UefiPld.fd
802. Update config data to make UEFI payload as default payload if required.
813. Build Slim Bootloader with UEFI payload:
82 BuildLoader.py build <Platform> -p "OsLoader.efi:LLDR:Lz4;UefiPld.fd:UEFI:Lzma"
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette