Jump to content

Roger Smith

Just Joined
  • Content Count

    18
  • Joined

  • Last visited

About Roger Smith

  • Rank
    InsanelyMac Protégé
  1. I was wondering if anyone has any good audio working with qemu. I noticed that cataline supports 9p mounts and the virtio-net-pci device natively. You get good performance from that. But how do you get audio to work. I have passed through my HD Graphics 4600 using teh patches here https://bbs.archlinux.org/viewtopic.php?id=245593 Video playback is really good but the audio is intermittent. The best result I got was using this sound device line: -device ich9-intel-hda -device hda-output -audiodev alsa,id=alsa,timer-period=500,threshold=0,out.channels=2,out.format=s16,out.frequency=48000,out.try-poll=off,out.fixed-settings=on,out.period-length=21333,out.buffer-length=21333 but still it cuts out every so often.
  2. Roger Smith

    Booting to 4K resolution HD graphics 4600

    on my hd4600 machine I used WhateverGreen to patch AppleIntulAzulFramebffer to enable bigger framebuffer to enable 4K mode. The machine boots up fine up to the point when it gets to the apple logo. Then it changes from the 4K mode that my bootloader has enabled to one that is corrupt. I can change resolution using the display manager to 2K then up to 4K and everything is fine. Is there something is coredisplay that needs to be patched too or does anyone have any ideas?
  3. Roger Smith

    Intel Framebuffer patching using WhateverGreen

    You need a bigger framebuffer to get 4K to work. I have 4K working with a desktop hd4600 and cannot get this work with whatevergreen. I had to patch the AppleIntelFramebufferAzul binary to get this to work. (check out https://pikeralpha.wordpress.com/2013/06/27/appleintelframebufferazul-kext/ for the details. < 009f6e0 0003 0d22 0300 0303 0000 0200 0000 0130 < 009f6f0 0000 0000 0000 6000 1499 0000 1499 0000 --- > 009f6e0 0003 0d22 0300 0303 0000 0800 0000 0200 > 009f6f0 0000 0000 0000 8000 1499 0000 1499 0000 These were the changes that I needed: 0000 0800 makes the framebuffer-stolenmem 128Mb. This memory is stolen because it is mapped inside your physical memory space, stealing 128Mb of mem from your system. 0000 0200 gives you a bigger frame buffer. Because at 4octets per pixel at 3840x2160 you need at least 31.5Mb. This should be controlled by framebuffer-fbmem 0000 8000 For some reason I needed to make this bigger to get my haswell to work. This setting can be checked in the settings and this works by setting the framebuffer-unifiedmem to AACAAA== These are my settings in the config.plist <key>Devices</key> <dict> <key>Properties</key> <dict> <key>PciRoot(0x0)/Pci(0x2,0x0)</key> <dict> <key>AAPL,ig-platform-id</key> <data>AwAiDQ==</data> <key>framebuffer-patch-enable</key> <data>AQAAAA==</data> <key>xframebuffer-stolenmem</key> <data>AAAAAg==</data> <key>xframebuffer-fbmem</key> <data>AAAABA==</data> <key>xframebuffer-unifiedmem</key> <data>AACAAA==</data> <key>xframebuffer-patch0-enable</key> <data>AQAAAA==</data> <key>xframebuffer-patch0-find</key> <data>AwAiDQADAwMAAAACAAAwAQAAAAAAAABgmRQ=</data> <key>xframebuffer-patch0-replace</key> <data>AwAiDQADAwMAAAAIAAAAAgAAAAAAAACAmRQ=</data> </dict> </dict> </dict> The x's are there because none of those things worked. Cheers Rog
  4. Roger Smith

    WhatEverGreen Support Topic

    I used to use hex editor patching of the AppleIntelFramebufferAzul but I can no longer be bothered doing this. I try to use whatvergree etc, and I have the enabled working but I cannot get the stolen and frame buffer sizes to work using whatevergreen. I have the following binary patch working: < 009f6e0 0003 0d22 0300 0303 0000 0200 0000 0130 < 009f6f0 0000 0000 0000 6000 1499 0000 1499 0000 --- > 009f6e0 0003 0d22 0300 0303 0000 0800 0000 0200 > 009f6f0 0000 0000 0000 8000 1499 0000 1499 0000 Which means I need to specify 3 settings (from: https://pikeralpha.wordpress.com/2013/06/27/appleintelframebufferazul-kext/) they are AAPL,ig-platform-id -> AwAiDQ== (ieecho -n AwAiDQ | base64 -d | hexdump) gives 0003 0d22 framebuffer-patch-enable -> AQAAAA== -> 0001 0000 framebuffer-unifiedmem -> AACAAA== 0000 0080 (this is working, tested independently and is in the example) framebuffer-stolenmem -> AAAAAg== (this is not working as it causes crashing) framebuffer-fbmem -> I don't know what to use but I know that if it is not large I cannot run 4K display. I have tried a few endian formats, but I have not looked at the source yet. Does anyone see anything wrong or have tips for the endianess?
  5. Roger Smith

    WhatEverGreen Support Topic

    Than you for implementing lilucpu=N option in lilu. Much appreciated.
  6. Roger Smith

    Filevault 2 (FV2) with ps2 keyboard

    Can anyone test this with vmware plz?
  7. Roger Smith

    Filevault 2 (FV2) with ps2 keyboard

    I have similar problem when I try to use Qemu/KVM with FileVault2 (FV2). I hack AptioInput fix to poll conIn and I can get password entry on OVMF. Should work for vmware as awell. Please find source here: https://bitbucket.org/timmycook/virtioinputdxe and compiled binary in https://bitbucket.org/timmycook/virtioinputdxe/raw/a16ff573bc688e14f3751c1a82e9e83df2f74029/VirtioInputDxe.efi Actually I didn't bother cleaning up all the mess, I took {censored} from all over the place stuck it together.
  8. Roger Smith

    AptioMemoryFix

    Yeah that was the linux command line. Aptioinput cannot be used on linux nor qemu, because as you say they are not using AMI code. The crappy ASUS uses that bios version 219. I am noticing that sometime some key input is being missed for a few keystrokes. Like when I inter the password, I have to go something like passw (and to get the * for the w I have to hit w 2 to 5 times). Otherwise not a bad effort. As for qemu I might start another thread but I don't need FV2 there. I just find it easier to debug on the emulator.
  9. Roger Smith

    AptioMemoryFix

    Yeah impressive, but on linux I can get KVM to work. I used this qemu-system-x86_64 -enable-kvm -nodefconfig -nodefaults -no-hpet -no-fd-bootchk -no-user-config -L /mnt/work/vm/etc -drive if=pflash,format=raw,readonly,file=./OVMF_CODE.fd -drive if=pflash,format=raw,file=./OVMF_VARS.fd -rtc base=utc,clock=host,driftfix=slew -m 4G -machine q35,accel=kvm,usb=off,vmport=off,kernel_irqchip=on -cpu IvyBridge,-apic,-x2apic,+pclmulqdq,+ssse3,+popcnt,+pclmulqdq,+avx2,+invpcid,+ss,+aes,+sse4.1,+sse4.2,+xsave,+xsaveopt,+avx,+fma,+rdtscp,+pcid,+abm,+movbe,+f16c,+rdrand,+fsgsbase,+tsc-adjust,+smep,+bmi2,+erms,+invpcid,+arat,+bmi1,+kvm-pv-unhalt,+kvmclock,+kvm-asyncpf,+kvm-steal-time,+kvm-pv-eoi,+kvmclock-stable-bit,+invtsc,vmware-cpuid-freq=on,kvm=on,vendor=GenuineIntel -smp cpus=4 -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -smbios '\''type=1,manufacturer=ASUSTeK COMPUTER INC.,product=UX31A,version=1.0,serial=XXXXXXXXXXXXXXX,uuid=XXXXXXXX-XXXX-XXXX-XXXX-RXXXXXXXXXXX,sku=ASUS-NotebookSKU,family=UX'\'' -acpitable file=/mnt/work/vm/etc/MSDM -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vgamem_mb=32 -device ahci,id=ahci -drive id=disk0,if=none,format=raw,file=./sda.raw -device ide-drive,bus=ahci.0,drive=disk0,bootindex=1 -device ich9-usb-ehci1,id=ehci1 -device usb-kbd -device usb-tablet -display gtk -device ich9-intel-hda,msi=on,x-pcie-extcap-init=on -device hda-output -monitor none -chardev file,path=log.txt,id=log -chardev stdio,id=std -device isa-serial,iobase=0x3f8,chardev=log -device isa-debugcon,iobase=0x402,chardev=std -parallel none BUT I cannot access FV2 using Qemu. Oh yeah that problem with CSM is for an ASUS UX31. I have tried with PS2 and USB mice but I cannot get password entry into FV2. Anyhow using that config I can pretty much emulate the entire HD on another machine -- even pass the HD graphics via VFIO on Haswell. Is there some kind of trick to get FV2 to accept USB keyboard input? Hey doesn't anyone know how to tweak the settings with polling for the AptioFixPkg? I notice that I am missing keystrokes and the logging is too verbose, when I enter a password on FV2?
  10. Roger Smith

    AptioMemoryFix

    Yeah thanks, maybe its the devicetree? :) Sometimes we cannot see the forest for the trees. Turned out that the stupid efisimplepointer was causing the problem. I have disabled this in MOHandleProtocol thus: EFI_GUID Spp = { 0x31878C87, 0x0B75, 0x11D5, { 0x9A, 0x4F, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D }}; if (CompareGuid (Protocol, &Spp)) { DebugPrint(-1u, "Disabled %g\n", Protocol); return EFI_UNSUPPORTED; } I even tried disabling the pointer but to no avail. Anyhow thanks for your help. The machine is an IvyBridge and I was thinking that it only had UGA till I started looking at the code. I found it difficult to get debug from the screen so I moved the image to another machine and run this under Qemu. Does anyone know how to get input with qemu and either the PS/2 keyboard and/or USB. I compiled clover with EXIT_USBKB=1 but that didn't help. Thanks again fellas.
  11. Roger Smith

    AptioMemoryFix

    Hi, I did a dump of the ACPI tables with CSM enabled and those without CSM enabled. The only difference I could fild was the BGRT table and the annoying vendor logo. Does that ring any bells for anyone?
  12. Roger Smith

    AptioMemoryFix

    I have a problem starting boot.efi on an FV2 APFS partition. I have signed the boot.efi with the secureboot keys and can only get the graphics to work when I enable CSM in the BIOS. Without CSM and with or without FASTBOOT, MOHandleProtocol doesn't find the GOP (Graphics Output Protocol) on any file descriptor. I managed to find one at startup and save a that value, I checked the framebuffer address too and zeroed it so that I knew that it was valid but still no graphics output. Without my changes I get an 0xE unsupported error. Adding the GOP manually gets me a display that is doing nothing. I can see two calls to the GOP device and no calls to any of the GOP methods. Normally you see only the Blt call being made when things work. Anyone have any ideas? The BIOS isn't going to be flashed on this device as I am currently repurposing int.
×