Finally I found the culprit.
I tested also different toolchains; here the details.
On Big Sur beta 10:
Xcode 12.0.1
Build version 12A7300
1- Toolchain 1:
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
2- Toolchain 2:
clang version 9.0.0 (git://
github.com/llvm/llvm-project.git 0399d5a9682b3cef71c653373e38890c63c4c365)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Users/daniele/Downloads/clang+llvm-9.0.0-x86_64-darwin-apple/bin
On Catalina 10.15.7:
Xcode 12.0.1
Build version 12A7300
1- Toolchain 1:
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
2- Toolchain 2:
clang version 9.0.0 (git://
github.com/llvm/llvm-project.git 0399d5a9682b3cef71c653373e38890c63c4c365)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Users/daniele/Downloads/clang+llvm-9.0.0-x86_64-darwin-apple/bin
3- Toolchain 3:
Apple clang version 7.0.0 (based on LLVM 7.0.0)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin
------------------------------------------------------------------------------
I noticed that the issue was with Catalina and Toolchain 3.
Commands to compile the files with GPU issue (Toolchain 3):
$ git clone
https://github.com/tianocore/edk2.git$ cd edk2
$ git clean -ffdx
$ git reset --hard
$ git submodule deinit --force --all
$ git checkout edk2-stable202008
$ git submodule update --init --force
$ source edksetup.sh
$ nice make -C "$EDK_TOOLS_PATH" -j $(getconf _NPROCESSORS_ONLN)
$ build -a X64 -b RELEASE -p OvmfPkg/OvmfPkgX64.dsc -t XCODE5
These commands build files successfully, but OVMF_VARS.fd and OVMF_CODE.fd give the described issue (cannot boot if hdmi is not plugged in).
Other toolchains (both on Big Sur and Catalina), with the same commands reported above, give an error if:
$ make -C BaseTools/
is not run after:
$ git submodule update --init --force
All the other toolchains build files without the described issue (I can boot with only dvi attached).
So, I thought, let's run:
$ make -C BaseTools/
with toolchain 3 (clang 7, on Catalina) and boom, I'm able to boot with only dvi attached.
I'm not sure where the problem is, because if you take a look at the first mac os log I attached (where I did not explicitly run $ make -C BaseTools/), BaseTools seem to have compiled:
"Finished building BaseTools C Tools with HOST_ARCH=X64"
Anyway, if I don't explicitly run:
$ make -C BaseTools/
OVMF_CODE.fd and OVMF_VARS.fd don't work properly.
Summary for tianocore logo (logo is shown: yes/no):
Clang 12.0: NO
Clang 9.0: YES
Clang 7.0: YES
Summary for building (can compile without errors, without explicitly run "make -C BaseTools/": yes/no):
Clang 12.0: NO
Clang 9.0: NO
Clang 7.0: YES
Best regards