Open legop3 opened 2 years ago
I cannot find the files opregion.bin, bdsmSize.bin anywhere
You can find this files from this repo as mentioned in README.
I do not know where to even put the rest of the files
You just need to replace working Your OpenCore EFI to Our OpenCore-Catalina's EFI directory.
My KVM folder has an OpenCore folder with an EFI folder, is this my working OpenCore?
Yes.
And last place BaseSystem.img and mac_hdd_ng.img to root of this repo.
Thanks! I have gotten farther. Now, when I run opencore-rebuild.sh, I get this output:
### copy files from local folder
/var/tmp/opencore-image-ng.sh-1860
/var/tmp/opencore-image-ng.sh-1860/EFI
/var/tmp/opencore-image-ng.sh-1860/EFI/OC
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI/SSDT-PNLF-CFL.aml
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI/SSDT-DTGP.aml
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI/SSDT-PLUG.aml
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI/SSDT-EHCI.aml
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI/SSDT-PLUG-DRTNIA.aml
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI/SSDT-EC-USBX-LAPTOP.aml
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI/SSDT-EC.aml
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI/SSDT-XOSI.aml
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AGPMInjector.kext
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AGPMInjector.kext/Contents
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AGPMInjector.kext/Contents/Info.plist
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VoodooHDA.kext
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VoodooHDA.kext/Contents
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VoodooHDA.kext/Contents/MacOS
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VoodooHDA.kext/Contents/MacOS/VoodooHDA
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VoodooHDA.kext/Contents/Info.plist
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VoodooHDA.kext/Contents/_CodeSignature
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VoodooHDA.kext/Contents/_CodeSignature/CodeResources
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/MacOS
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/MacOS/VirtualSMC
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/Info.plist
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/Resources
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/Resources/VirtualSMCSDK
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/Resources/VirtualSMCSDK/kern_vsmcapi.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/Resources/VirtualSMCSDK/AppleSmc.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/Resources/VirtualSMCSDK/kern_smcinfo.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/Resources/VirtualSMCSDK/AppleSmcBridge.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/Resources/VirtualSMCSDK/kern_keyvalue.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/Resources/VirtualSMCSDK/kern_value.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/_CodeSignature
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/VirtualSMC.kext/Contents/_CodeSignature/CodeResources
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/MCEReporterDisabler.kext
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/MCEReporterDisabler.kext/Contents
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/MCEReporterDisabler.kext/Contents/Info.plist
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/MacOS
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/MacOS/Lilu
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Info.plist
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_compat.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_nvram.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_efi.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_rtc.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_api.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_config.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_patcher.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/ppc.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/systemz.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/arm.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/x86.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/platform.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/xcore.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/capstone.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/mips.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/arm64.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/capstone/sparc.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_disasm.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_version.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_mach.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/hde64.h
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_user.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_policy.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_file.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_compression.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_iokit.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/plugin_start.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_cpu.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_time.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_util.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_crypto.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Headers/kern_devinfo.hpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Library
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Library/wrappers
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Library/wrappers/entry64.S
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Library/wrappers/build.tool
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Library/wrappers/wrappers.inc
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Library/wrappers/entry32.S
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/Lilu.kext/Contents/Resources/Library/plugin_start.cpp
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/WhateverGreen.kext
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/WhateverGreen.kext/Contents
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/WhateverGreen.kext/Contents/MacOS
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/WhateverGreen.kext/Contents/MacOS/WhateverGreen
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/WhateverGreen.kext/Contents/Info.plist
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/WhateverGreen.kext/Contents/_CodeSignature
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/WhateverGreen.kext/Contents/_CodeSignature/CodeResources
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AppleALC.kext
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AppleALC.kext/Contents
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AppleALC.kext/Contents/MacOS
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AppleALC.kext/Contents/MacOS/AppleALC
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AppleALC.kext/Contents/Info.plist
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AppleALC.kext/Contents/_CodeSignature
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/AppleALC.kext/Contents/_CodeSignature/CodeResources
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/USBPorts.kext
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/USBPorts.kext/Contents
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts/USBPorts.kext/Contents/Info.plist
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/ResetSystem.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/OpenShell.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/ControlMsrE2.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/KeyTester.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/CleanNvram.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/BootKicker.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/MmapDump.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/TpmInfo.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/RtcRw.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/OpenControl.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/ChipTune.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/VerifyMsrE2.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/CsrUtil.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Tools/GopStop.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/OpenCanopy.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/HfsPlus.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/OpenUsbKbDxe.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/Ps2MouseDxe.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/VBoxHfs.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/AudioDxe.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/HiiDatabase.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/OpenHfsPlus.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/Ps2KeyboardDxe.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/NvmExpressDxe.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/OpenLinuxBoot.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/OpenRuntime.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/UsbMouseDxe.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/OpenPartitionDxe.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/CrScreenshotDxe.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers/XhciDxe.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Bootstrap
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Bootstrap/Bootstrap.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/.contentFlavour
/var/tmp/opencore-image-ng.sh-1860/EFI/OC/OpenCore.efi
/var/tmp/opencore-image-ng.sh-1860/EFI/BOOT
/var/tmp/opencore-image-ng.sh-1860/EFI/BOOT/.contentFlavour
/var/tmp/opencore-image-ng.sh-1860/EFI/BOOT/BOOTx64.efi
### creating and adding disk image
# disk-create OpenCore.qcow2 qcow2 384M
# add OpenCore.qcow2
# run
### partition disk image
# part-init /dev/sda gpt
# part-add /dev/sda p 2048 300000
# part-add /dev/sda p 302048 -2048
# part-set-gpt-type /dev/sda 1 C12A7328-F81F-11D2-BA4B-00A0C93EC93B
# part-set-bootable /dev/sda 1 true
# mkfs vfat /dev/sda1 label:EFI
# mkfs vfat /dev/sda2 label:OpenCoreBoot
# mount /dev/sda2 /
# mkdir /ESP
# mount /dev/sda1 /ESP
### copy files to disk image
'config.plist' -> '/var/tmp/opencore-image-ng.sh-1860/config.plist'
# mkdir /ESP/EFI
# mkdir /ESP/EFI/OC
# mkdir /ESP/EFI/OC/Kexts
# mkdir /ESP/EFI/OC/ACPI
# mkdir /ESP/EFI/OC/Resources
# mkdir /ESP/EFI/OC/Tools
# copy-in /var/tmp/opencore-image-ng.sh-1860/EFI/BOOT /ESP/EFI
# copy-in /var/tmp/opencore-image-ng.sh-1860/EFI/OC/OpenCore.efi /ESP/EFI/OC
# copy-in /var/tmp/opencore-image-ng.sh-1860/EFI/OC/Drivers /ESP/EFI/OC/
# copy-in /var/tmp/opencore-image-ng.sh-1860/EFI/OC/Kexts /ESP/EFI/OC/
# copy-in /var/tmp/opencore-image-ng.sh-1860/EFI/OC/ACPI /ESP/EFI/OC/
# copy-in /var/tmp/opencore-image-ng.sh-1860/EFI/OC/Resources /ESP/EFI/OC/
libguestfs: error: source ‘/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Resources’ does not exist (or cannot be read)
### cleaning up ...
and after setting my GPU device ID in boot.sh, trying to boot returns the output:
user@computer:~/OSX_GVT-D$ sudo ./boot.sh
modprobe: FATAL: Module i915 is in use.
qemu-system-x86_64: -drive id=InstallMedia,if=none,file=./BaseSystem.img,format=raw: Could not open './BaseSystem.img': No such file or directory
modprobe: FATAL: Module vfio_pci is builtin.
modprobe: FATAL: Module vfio is builtin.
I did try a different method before this, would you recommend that I start with a fresh Ubuntu install and try again? something seems to be conflicting.
Okay, so I reinstalled Ubuntu, Now after following the guide and running boot.sh, I get:
./boot.sh: 7: echo: echo: I/O error
modprobe: FATAL: Module i915 is in use.
qemu-system-x86_64: -fw_cfg name=etc/igd-opregion,file=./i915ovmf/opregion.bin: warning: externally provided fw_cfg item names should be prefixed with "opt/"
qemu-system-x86_64: -fw_cfg name=etc/igd-bdsm-size,file=./i915ovmf/bdsmSize.bin: warning: externally provided fw_cfg item names should be prefixed with "opt/"
qemu-system-x86_64: -device vfio-pci,host=0000:00:02.0,id=hostdev0,bus=pcie.0,addr=0x2,romfile=./i915ovmf/i915ovmf.rom: vfio 0000:00:02.0: no iommu_group found: No such file or directory
modprobe: FATAL: Module vfio_pci is builtin.
modprobe: FATAL: Module vfio is builtin.
it seems like something (maybe my UI) is already using i915, so it wont detach, a couple of warnings, then "no iommu_group found."
I still get the same output as I posted above for opencore-rebuild.sh
it seems like something (maybe my UI) is already using i915
Yes you are right. You need to find out what else is using i915 driver. Try to do ssh to your target machine and run line by line of boot.sh (Try to unload i915 from ssh session - It will help you to debug the issue).
You can check if driver is bind to iGPU usin lspci -vvv
.
a couple of warnings, then "no iommu_group found."
Have you enabled iommu group? (I think I need to add this to the guide) 😃.
So, after disabling the GUI in Ubuntu alltogether, the command "sudo modprobe -r i915" still says "FATAL: Module i915 is in use." there is not any UI running on the host right now, it's sitting on the TTY login screen and I am using ssh to run commands.
even after blacklisting i915, it still is in use somehow by something.
anyway, this is what i get from boot.sh now:
./boot.sh: 7: echo: echo: I/O error
qemu-system-x86_64: -fw_cfg name=etc/igd-opregion,file=./i915ovmf/opregion.bin: warning: externally provided fw_cfg item names should be prefixed with "opt/"
qemu-system-x86_64: -fw_cfg name=etc/igd-bdsm-size,file=./i915ovmf/bdsmSize.bin: warning: externally provided fw_cfg item names should be prefixed with "opt/"
qemu-system-x86_64: -device vfio-pci,host=0000:00:02.0,id=hostdev0,bus=pcie.0,addr=0x2,romfile=./i915ovmf/i915ovmf.rom: vfio 0000:00:02.0: no iommu_group found: No such file or directory
modprobe: FATAL: Module vfio_pci is builtin.
modprobe: FATAL: Module vfio is builtin.
I cannot find a clear answer on how to enable iommu groups, I do have intel_iommu=on in my grub command line though.
@legop3,
If TTY is there, may be that still means iGPU used by host. Check this legendary article, https://worthdoingbadly.com/gpupassthrough/
./boot.sh: 7: echo: echo: I/O error
This clearly means IOMMU not enabled in your grub bootloader somehow. follow arch linux guide on enabling IOMMU. It has more clearer explanation 😃 .
could this have anything to do with it? my linux kernel version is 5.11.0-41-generic...
I can always try using an older version of ubuntu, one with a kernel before 5.4. should I try that next?
Yes seems worth it to downgrade.
Okay, I am now running ubuntu 19.10. boot.sh has gotten farther than it ever has before! the output now is:
qemu-system-x86_64: warning: vfio 0000:00:02.0: failed to setup resample irqfd: Invalid argument
BdsDxe: loading Boot0001 "UEFI QEMU HARDDISK QM00017 " from PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x2,0xFFFF,0x0)
BdsDxe: starting Boot0001 "UEFI QEMU HARDDISK QM00017 " from PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x2,0xFFFF,0x0)
OC: Failed to load configuration!
so, if my assumption is correct, passthrough is working and it's just not booting? nothing shows up on the host's screen, but it does turn off.
qemu-system-x86_64: warning: vfio 0000:00:02.0: failed to setup resample irqfd: Invalid argument
This is strange. You need to check by running one line by line of boot.sh
Is display showing anything regarding OpenCore booting up?
Hi. Anyone can help. I run ./boot.sh
and stuck at this line. I already rebuilt opencore change resolution and still not working
@4mirfor3v3r, Can you share the complete logs for better understanding? - I think this is not complete, May be terminal scrolled up?.
Same issue
`
./boot.sh: line 7: echo: write error: No such device
qemu-system-x86_64: -drive if=pflash,format=raw,readonly,file=./OVMF/OVMF_CODE.fd: warning: short-form boolean option 'readonly' deprecated
Please use readonly=on instead
qemu-system-x86_64: -fw_cfg name=etc/igd-opregion,file=./i915ovmf/opregion.bin: warning: externally provided fw_cfg item names should be prefixed with "opt/"
qemu-system-x86_64: -fw_cfg name=etc/igd-bdsm-size,file=./i915ovmf/bdsmSize.bin: warning: externally provided fw_cfg item names should be prefixed with "opt/"
Driver starts!
i915: found device 8086-3E92 0
i915: start
i915: set pci attrs
i915: made gop path
i915: installed child handle
i915: before QEMU shenanigans
BdsmSize=8388608
i915: vbt: 0x7FBF0400, bdb: 0x7FBF0430, sig: $B KLK d0�30, bsig: BO_AABOK�t�
i915: finding section 2
i915: Boot display type: 0x0000
i915: Child device size: 39
i915: Child device count: 8
i915: SetupOpRegion: OpRegion @ 0x7FBF0000 size 0x2000 in 2 pages
SetupStolenMemory: : stolen memory @ 0x7E500000 size 0x800000
i915: SetupFwcfgStuff returns 0
i915: after QEMU shenanigans
Port A VBT info: CRT:0 DVI:0 HDMI:0 DP:0 eDP:0 USB-Type-C:0 TBT:0 type:0000
VBT HDMI level shift for port A: 0
VBT DP max link rate for port A: 810000
Port B VBT info: CRT:0 DVI:16 HDMI:1 DP:0 eDP:0 USB-Type-C:0 TBT:0 type:60D2
VBT HDMI level shift for port B: 10
VBT DP max link rate for port B: 810000
Port C VBT info: CRT:0 DVI:16 HDMI:1 DP:0 eDP:0 USB-Type-C:0 TBT:0 type:60D2
VBT HDMI level shift for port C: 10
VBT DP max link rate for port C: 810000
Port D VBT info: CRT:0 DVI:16 HDMI:1 DP:4 eDP:0 USB-Type-C:0 TBT:0 type:60D6
VBT HDMI level shift for port D: 10
VBT DP max link rate for port D: 810000
More than one child device for port A in VBT, using the first.
More than one child device for port A in VBT, using the first.
More than one child device for port A in VBT, using the first.
More than one child device for port A in VBT, using the first.
i915: power well enabled F00003FF
panel power sequencer register settings: PP_ON #x, PP_OFF #x, PP_DIV #x
PP_CTL: 00000000, PP_STAT 00000000
PP_CTL: 00000043, PP_STAT 0000000A
PP_CTL: 00000043, PP_STAT 80000008
i915: CDCLK = 080002A1
i915: DBUF timeout
i915: _PLANE_BUF_CFG_1_A = 00000000
i915: _PLANE_BUF_CFG_1_A = 035B0000 (after)
i915: SFUSE_STRAP = 00000107
i915: trying pin 1
i915: trying pin 1
i915: gmbus timeout
i915: trying pin 1
00 FF FF FF FF FF FF 00
4C 2D 0B 09 01 00 00 00
2A 15 01 03 80 59 32 78
0A EE 91 A3 54 4C 99 26
0F 50 54 BD EF 80 71 4F
81 C0 81 00 81 80 95 00
A9 C0 B3 00 01 01 02 3A
80 18 71 38 2D 40 58 2C
45 00 A0 5A 00 00 00 1E
66 21 56 AA 51 00 1E 30
46 8F 33 00 A0 5A 00 00
00 1E 00 00 00 FD 00 18
4B 0F 51 17 00 0A 20 20
20 20 20 20 00 00 00 FC
00 53 41 4D 53 55 4E 47
0A 20 20 20 20 20 01 9B
Mode: 148500, Max:300000
I915: HUsing Connector Mode: 0, On Port 1Reading PP_STATUS: 2147483656
i915: got EDID:
00 FF FF FF FF FF FF 00
4C 2D 0B 09 01 00 00 00
2A 15 01 03 80 59 32 78
0A EE 91 A3 54 4C 99 26
0F 50 54 BD EF 80 71 4F
81 C0 81 00 81 80 95 00
A9 C0 B3 00 01 01 02 3A
80 18 71 38 2D 40 58 2C
45 00 A0 5A 00 00 00 1E
66 21 56 AA 51 00 1E 30
46 8F 33 00 A0 5A 00 00
00 1E 00 00 00 FD 00 18
4B 0F 51 17 00 0A 20 20
20 20 20 20 00 00 00 FC
00 53 41 4D 53 55 4E 47
0A 20 20 20 20 20 01 9B
i915: bar ranges - 810000000 1000000, 800000000 10000000
i915: aperture at 800000000
i915: gmadr = 00000000, size = 00000000, hgmadr = 00000000, hsize = 00000000
i915: 1920x1080 clock=148500
i915: ggtt_base at 810800000, entries: 5CB90E2D 5CB90E2D, backing fb: 7DD00000, 7F9E00 bytes
i915: progressed to mline 669, status is 0
i915: set mode 0
i915: DPLL_CTRL1 = 00000845
i915: _DPLL1_CFGCR1 = 80400173
i915: _DPLL1_CFGCR2 = 000003A5
i915: DPLL 1 locked
i915: port is 1
i915: DPLL_CTRL2 = 00A60018
i915: progressed to line 119, TRANS_CLK_SEL_PORT(port) is 40000000
i915: before TranscoderPipe 0
i915: HTOTAL_A (60000) = 0897077F
i915: HBLANK_A (60004) = 0897077F
i915: HSYNC_A (60008) = 080307D7
i915: VTOTAL_A (6000C) = 04640437
i915: VBLANK_A (60010) = 04640437
i915: VSYNC_A (60014) = 0440043B
i915: PIPEASRC (6001C) = 077F0437
i915: BCLRPAT_A (60020) = 00000000
i915: VSYNCSHIFT_A (60028) = 00000000
i915: PIPE_MULT_A (6002C) = 00000000
i915: before pipe gamma
i915: after TranscoderPipe
i915: before gamma
i915: before pipe gamma
REGISTER 70008
i915Display: current line: 168
i915Display: current line: 171
i915Display: current line: 174
i915: before DDI
DDI Port: 1
REG TransDDI: 00030000
i915: after DDI
i915: pipe enabled
DDI_BUF_CTL(port) = 00000080
SAVED BTIS 00000000
DDI_BUF_CTL(port) = 80000080
i915: progressed to line 618, status is0
i915: plane enabled, dspcntr: 84002000, FbBase: 800000000
i915: Reg PP_CONTROL(000C7204), val: 00000007
i915: Reg _BXT_BLC_PWM_FREQ1(000C8254), val: 0001D4C0
BdsDxe: loading Boot0001 "UEFI QEMU HARDDISK QM00017 " from PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x2,0xFFFF,0x0)
BdsDxe: starting Boot0001 "UEFI QEMU HARDDISK QM00017 " from PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x2,0xFFFF,0x0)
BS: Starting OpenCore...
BS: Booter path - \EFI\BOOT\BOOTX64.EFI
OCFS: Trying to locate filesystem on 7ED03B98 7DCB8F98
OCFS: Filesystem DP is \EFI\BOOT\BOOTX64.EFI
BS: Trying to start loaded OpenCore image...
BS: Failed to locate bootstrap protocol - Not Found
BS: Trying to load OpenCore image...
BS: Relative path - EFI
BS: Startup path - EFI\OpenCore.efi (0)
BS: Read OpenCore image of 782496 bytes
BS: Loaded OpenCore image at 7CBDF918 handle
OCCPU: TSC Adjust 0
OCCPU: Known Model Core Crystal Clock Frequency 24000000Hz
OC: Starting OpenCore...
OC: Booter path -
======== End of efiboot serial output. ======== `
@Awnrt, It looks like the issue of OpenCore. But I can see passthru is working (Anything like: screen goes black? OR OpenCore window showing up?).
Can you share the config.plist?
@vivekmiyani EFI.zip kernel_panic.txt
Kernel panic when passthrough
@Awnrt, Just few more questions,
When this error coming up? - After Apple logo OR before / after OpenCore boot?
Similar error I was faced when opening chrome browser. (Check the README.md's issues section)
@vivekmiyani Before apple logo
@Awnrt, Can you let me know hardware information, particularly CPU generation and model.
@vivekmiyani msi z390m mortar i7-8700k uhd 630 rtx 3080 32gb ram
both gpus connected to one monitor, igpu through hdmi and dgpu through dp
I am getting the same error as at the top when running the rebuild command
libguestfs: error: source ‘/var/tmp/opencore-image-ng.sh-1860/EFI/OC/Resources’ does not exist (or cannot be read)
Also, in my case after running boot.sh my screen turns off and I only have a blinking caps lock indicator, not sure how to collect logs for this.
@Ryhon0, Can you create separate issue for this.?
And regarding caps-lock blinking, I've also faced similar issue randomly in my case. The reason is unknown to me.
And regarding Resources directory error, you can skip that as of now. It's only because of Resources
directory not present in your OC build.
@Awnrt Can you switch to https://github.com/vivekmiyani/OSX_GVT-D/issues/4 issue.?
@legop3, Is this still an issue for you?
Hello, I am having some trouble. I set up a VM using OSX-KVM, and it works, this is my next step. I cannot find the files opregion.bin, bdsmSize.bin anywhere, and I do not know where to even put the rest of the files. My KVM folder has an OpenCore folder with an EFI folder, is this my working OpenCore? should I put these files in that folder, or put that folder in these files before I do ./opencore-rebuild.sh