3mdeb / edk2-docker

Docker container for building EDK2 UEFI Open Source reference implementation
15 stars 4 forks source link

Compile EDK2 for Minnowboard #3

Open asa1365 opened 5 years ago

asa1365 commented 5 years ago

Hello Piotr,

I am trying to compile EDK2 for Minnowboard Max. I found your documents from this link

https://github.com/3mdeb/edk2-docker and they help me but I have a error in my process that is as follows. Also, I compiled UDK2018 on ubuntu 2018 with MinnowBoard Max/Turbot 1.00 Firmware Image. I would be grateful if you have time let me know how to solve it .

GenFds.py... : error 000E: File/directory not found in workspace /home/edk2/Build/Vlv2TbltDevicePkg/DEBUG_GCC5/FV/VLV.fd is not found in packages path: /home/edk2/. /home/edk2/edk2-platforms /home/edk2/silicon /home/edk2/edk2 build.py... : error 7000: Failed to execute command GenFds -f /home/edk2/edk2-platforms/Vlv2TbltDevicePkg/PlatformCapsuleGcc.fdf --conf=/home/edk2/edk2/Conf -o /home/edk2/Build/Vlv2TbltDevicePkg/DEBUG_GCC5 -t GCC5 -b DEBUG -p /home/edk2/edk2-platforms/Vlv2TbltDevicePkg/PlatformCapsuleGcc.dsc -a IA32,X64 -D "EFI_SOURCE=/home/edk2/edk2/EdkCompatibilityPkg" -D "EDK_SOURCE=/home/edk2/edk2/EdkCompatibilityPkg" -D "TOOL_CHAIN_TAG=GCC5" -D "TOOLCHAIN=GCC5" -D "TARGET=DEBUG" -D "FAMILY=GCC" -D "WORKSPACE=/home/edk2" -D "EDK_TOOLS_PATH=/home/edk2/edk2/BaseTools" -D "ARCH=IA32 X64" -D "ECP_SOURCE=/home/edk2/edk2/EdkCompatibilityPkg" [/home/edk2]

Failed - Build end time: 07:39:07, Apr.16 2019 Build total time: 00:00:03

cat: /home/edk2/MNW2MAX_X64_D_0101_01.ROM: No such file or directory Skip Running BIOS_Signing ... Build location: Build/Vlv2TbltDevicePkg/DEBUG_GCC5 BIOS ROM Created: MNW2MAX_X64_D_0101_01.ROM -------------------- The EDKII BIOS build has successfully completed. --------------------

Best, Zahra

krystian-hebel commented 5 years ago

Hello @asa1365

The problem is that branch devel-MinnowBoardMax-UDK2017 changed since README for this Docker image (and the container itself) was prepared. Unfortunately, edk2-platform does not use tags, so only the latest version can be pulled, unless a hash of a commit is used. Later versions of edk2-platform apparently don't support binary objects in version 0.97.

Another issue is that OpenSSL_1_1_0-stable also moved - OpenSSL-HOWTO mentions using tag OpenSSL_1_1_0e.

I've tried both using older commits (89b9edaa048f Fix GCC build error. used to work for us) and newer binary objects, in both cases the image builds ~but the platform does not boot. I'm investigating it further.~ EDIT: never mind, I was flashing old image over and over again. Both approaches seem to work.

krystian-hebel commented 4 years ago

@asa1365 please let us know if this fixes problem you encountered, so we can close this issue.