macOS-Simple-KVM
macOS-Simple-KVM copied to clipboard
Mention the source for OVMF_CODE.fd
I need to recompile a macos compatible EDK2, with some GVT-G patches but I need the source for OVMF_CODE.fd
have not tested and may be out of date, but i found this. maybe it helps you.
Update (29-April-2019): OVMF blobs built from https://github.com/kholia/edk2/tree/macOS-NG-v2.
Building OVMF
-------------
# Add tools and build dependencies:
apt-get update
apt-get install build-essential git lintian debhelper iasl nasm \
python uuid-dev -y
git clone https://github.com/tianocore/edk2
cd edk2
git submodule update --init
make -C BaseTools
. edksetup.sh BaseTools
build -a X64 -t GCC5 -p OvmfPkg/OvmfPkgX64.dsc -b RELEASE
(OBSOLETE) The included blobs were built from commit 2913ebb2b550f50a.
Host OS
-------
OVMF blobs (OVMF_CODE.fd, OVMF_VARS.fd) were built on Ubuntu 18.04 LTS based on
https://github.com/kholia/edk2 (upstream commit 328409ce8de7f3 and some local
commits).
Older OVMF blobs (OVMF_CODE.fd, OVMF_VARS.fd) were built on Ubuntu 14.04.5 LTS
(Trusty Tahr).
OVMF_CODE-pure-efi.fd and OVMF_VARS-pure-efi.fd files (in backup folder) come
from the "edk2.git-ovmf-x64-0-20170922.b3006.gfe4049471b.noarch.rpm" archive
downloaded from https://www.kraxel.org/repos/jenkins/edk2/ site.
References
----------
* https://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/
* https://www.nicksherlock.com/2018/04/patch-ovmf-to-support-macos-in-proxmox-5-1/
* https://github.com/thenickdude/edk2 (macos-support branch)
https://github.com/kholia/OSX-KVM/blob/master/OVMF-notes.txt
I would also love to see how these files generated. It would make the project and its internal workings more transparent.
OVMF files obtained for recent builds of EDK2/OVMF don't seem to work, and I suspect the build instructions posted above won't work either. The version of OVMF_CODE distributed with simple-KVM appear to come from a special build or one made with special build parameters. It would help to know exactly how that version of OVMF was built.
I would love to be able to use vmware-svga as a video adapter but as it stands, the OVMF provided do not allow to even see any output at all.
the https://github.com/kholia/edk2/tree/macOS-NG-v2 says file not found.. need to look at it dsdt stuff.. thx
@kocoman1 this is the new file contents. looks like it is a different source
Current OVMF blobs are borrowed from the following URL(s),
- http://ftp.debian.org/debian/pool/main/e/edk2/ (ovmf_2021.08-2_all.deb)
Building OVMF
-------------
# Add tools and build dependencies:
apt-get update
apt-get install build-essential git lintian debhelper iasl nasm \
python uuid-dev -y
git clone https://github.com/tianocore/edk2
cd edk2
git submodule update --init
make -C BaseTools
. edksetup.sh BaseTools
build -a X64 -t GCC5 -p OvmfPkg/OvmfPkgX64.dsc -b RELEASE
References
----------
* https://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/
* https://www.nicksherlock.com/2018/04/patch-ovmf-to-support-macos-in-proxmox-5-1/
* https://github.com/thenickdude/edk2 (macos-support branch)