macOS-Simple-KVM icon indicating copy to clipboard operation
macOS-Simple-KVM copied to clipboard

Mention the source for OVMF_CODE.fd

Open paranoidnela opened this issue 5 years ago • 6 comments

I need to recompile a macos compatible EDK2, with some GVT-G patches but I need the source for OVMF_CODE.fd

paranoidnela avatar Mar 01 '20 20:03 paranoidnela

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

user747 avatar Mar 14 '20 20:03 user747

I would also love to see how these files generated. It would make the project and its internal workings more transparent.

yan-foto avatar May 29 '20 17:05 yan-foto

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.

bobinmurphy avatar Aug 30 '20 19:08 bobinmurphy

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.

mijk84 avatar Sep 28 '20 16:09 mijk84

the https://github.com/kholia/edk2/tree/macOS-NG-v2 says file not found.. need to look at it dsdt stuff.. thx

kocoman1 avatar Jul 21 '22 19:07 kocoman1

@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)

notAperson535 avatar Jul 21 '22 19:07 notAperson535