From patchwork Wed Apr 22 00:45:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Park, Aiden" X-Patchwork-Id: 238240 List-Id: U-Boot discussion From: aiden.park at intel.com (aiden.park at intel.com) Date: Tue, 21 Apr 2020 17:45:07 -0700 Subject: [PATCH 8/8] doc: slimbootloader: Update 64-bit build instruction In-Reply-To: <20200422004507.2025-1-aiden.park@intel.com> References: <20200422004507.2025-1-aiden.park@intel.com> Message-ID: <20200422004507.2025-9-aiden.park@intel.com> From: Aiden Park Add steps to build 64-bit Slim Bootloader and U-Boot. Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- doc/board/intel/slimbootloader.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/board/intel/slimbootloader.rst b/doc/board/intel/slimbootloader.rst index a8c41b1aa7..779ed78ef1 100644 --- a/doc/board/intel/slimbootloader.rst +++ b/doc/board/intel/slimbootloader.rst @@ -145,6 +145,35 @@ Also, the PayloadId needs to be set for APL board. Use DediProg to flash IFWI. You should reach at U-Boot serial console. +Build Instruction for 64-bit Slim Bootloader & U-Boot on QEMU target +-------------------------------------------------------------------- + +1. Build 64-bit U-Boot and obtain u-boot-dtb.bin:: + + $ make distclean + $ make slimbootloader-x86_64_defconfig + $ make all + +2. Copy u-boot-dtb.bin to Slim Bootloader:: + + $ mkdir -p /PayloadPkg/PayloadBins/ + $ cp /u-boot-dtb.bin /PayloadPkg/PayloadBins/u-boot-dtb.bin + +3. Update PayloadId with 'U-BT':: + + $ vi Platform/QemuBoardPkg/CfgData/CfgDataExt_Brd1.dlt + -GEN_CFG_DATA.PayloadId | 'AUTO' + +GEN_CFG_DATA.PayloadId | 'U-BT' + +4. Update payload text base:: + + $ vi Platform/QemuBoardPkg/BoardConfig.py + + self.PAYLOAD_LOAD_HIGH = 0 + + self.PAYLOAD_EXE_BASE = 0x00100000 + +5. Build QEMU target:: + + $ python BuildLoader.py build qemu -a x64 -p "OsLoader.efi:LLDR:Lz4;u-boot-dtb.bin:U-BT:Lzma" Build Instruction to use ELF U-Boot -----------------------------------