Jump to content

AptioMemoryFix


vit9696
595 posts in this topic

Recommended Posts

8 hours ago, Download-Fritz said:

@Killuminati91 The kernel can never be allocated over 4 GB, which is what you are trying to do, iirc the slide value is capped to 255. Without OpenCore's DevirtualiseMMIO quirk, you'll probably not get very far, possibly not even with it.

 

You could try this with DevirtualiseMMIO=true, but we do not actively support the usage of that driver

 

Thanks for the headsup! Sadly this doesnt work either as it stalls at End RandomSeed ++++++. Ill try to educate my self on OpenCore.

Does this mean in conclusion that this laptop model simply is not compatible?

 

Full memmap attached, unless I'm blind there is really no available sector except the one that is way too large.

 

Type       Start            End              # Pages          Attributes
Available  0000000000000000-000000000009EFFF 000000000000009F 000000000000000F
Reserved   000000000009F000-000000000009FFFF 0000000000000001 000000000000000F
Available  0000000000100000-000000002252EFFF 000000000002242F 000000000000000F
LoaderCode 000000002252F000-0000000022617FFF 00000000000000E9 000000000000000F
Available  0000000022618000-000000002261EFFF 0000000000000007 000000000000000F
BS_Data    000000002261F000-000000002267DFFF 000000000000005F 000000000000000F
Available  000000002267E000-000000002267EFFF 0000000000000001 000000000000000F
BS_Data    000000002267F000-00000000226ABFFF 000000000000002D 000000000000000F
Available  00000000226AC000-00000000226ACFFF 0000000000000001 000000000000000F
BS_Data    00000000226AD000-0000000022F25FFF 0000000000000879 000000000000000F
Available  0000000022F26000-0000000022F27FFF 0000000000000002 000000000000000F
BS_Data    0000000022F28000-0000000023103FFF 00000000000001DC 000000000000000F
Available  0000000023104000-0000000023104FFF 0000000000000001 000000000000000F
BS_Data    0000000023105000-0000000023198FFF 0000000000000094 000000000000000F
LoaderCode 0000000023199000-000000002327EFFF 00000000000000E6 000000000000000F
BS_Data    000000002327F000-00000000260ADFFF 0000000000002E2F 000000000000000F
BS_Code    00000000260AE000-00000000260C8FFF 000000000000001B 000000000000000F
BS_Data    00000000260C9000-00000000260D9FFF 0000000000000011 000000000000000F
BS_Code    00000000260DA000-00000000260DAFFF 0000000000000001 000000000000000F
BS_Data    00000000260DB000-00000000260EBFFF 0000000000000011 000000000000000F
BS_Code    00000000260EC000-00000000260F9FFF 000000000000000E 000000000000000F
BS_Data    00000000260FA000-0000000027474FFF 000000000000137B 000000000000000F
BS_Code    0000000027475000-0000000027491FFF 000000000000001D 000000000000000F
BS_Data    0000000027492000-00000000274C2FFF 0000000000000031 000000000000000F
BS_Code    00000000274C3000-00000000274CCFFF 000000000000000A 000000000000000F
BS_Data    00000000274CD000-00000000274DEFFF 0000000000000012 000000000000000F
BS_Code    00000000274DF000-00000000274FFFFF 0000000000000021 000000000000000F
BS_Data    0000000027500000-0000000027987FFF 0000000000000488 000000000000000F
Reserved   0000000027988000-0000000028287FFF 0000000000000900 000000000000000F
BS_Code    0000000028288000-000000002828FFFF 0000000000000008 000000000000000F
BS_Data    0000000028290000-000000002829EFFF 000000000000000F 000000000000000F
Available  000000002829F000-0000000029668FFF 00000000000013CA 000000000000000F
BS_Code    0000000029669000-000000002A09EFFF 0000000000000A36 000000000000000F
RT_Code    000000002A09F000-000000002A46EFFF 00000000000003D0 800000000000000F
RT_Data    000000002A46F000-000000002ADEEFFF 0000000000000980 800000000000000F
Reserved   000000002ADEF000-000000002B4DEFFF 00000000000006F0 000000000000000F
ACPI_NVS   000000002B4DF000-000000002BBCEFFF 00000000000006F0 000000000000000F
ACPI_Recl  000000002BBCF000-000000002BC4EFFF 0000000000000080 000000000000000F
BS_Data    000000002BC4F000-000000002BC4FFFF 0000000000000001 000000000000000F
Available  0000000100000000-00000004BABFFFFF 00000000003BAC00 000000000000000F
Reserved   00000000000A0000-00000000000FFFFF 0000000000000060 0000000000000000
Reserved   000000002BC50000-000000003FFFFFFF 00000000000143B0 000000000000000F
Reserved   0000000040000000-0000000040FFFFFF 0000000000001000 0000000000000009
Reserved   0000000041000000-00000000453FFFFF 0000000000004400 0000000000000000
MMIO       0000000045400000-00000000CFFFFFFF 000000000008AC00 8000000000000001
MMIO       00000000FC800000-00000000FE7FFFFF 0000000000002000 8000000000000001
MMIO       00000000FED00000-00000000FED00FFF 0000000000000001 8000000000000001
MMIO       00000000FED10000-00000000FED17FFF 0000000000000008 8000000000000001
Reserved   00000000FED20000-00000000FED7FFFF 0000000000000060 0000000000000000
MMIO       00000000FEDA0000-00000000FEDA1FFF 0000000000000002 8000000000000001
MMIO       00000000FEE00000-00000000FEE00FFF 0000000000000001 8000000000000001
MMIO       00000000FF600000-00000000FFFFFFFF 0000000000000A00 8000000000000001
 
  Reserved  :        108,641 Pages (444,993,536 Bytes)
  LoaderCode:            463 Pages (1,896,448 Bytes)
  LoaderData:              0 Pages (0 Bytes)
  BS_Code   :          2,736 Pages (11,206,656 Bytes)
  BS_Data   :         21,020 Pages (86,097,920 Bytes)
  RT_Code   :            976 Pages (3,997,696 Bytes)
  RT_Data   :          2,432 Pages (9,961,472 Bytes)
  ACPI_Recl :            128 Pages (524,288 Bytes)
  ACPI_NVS  :          1,776 Pages (7,274,496 Bytes)
  MMIO      :        579,084 Pages (2,371,928,064 Bytes)
  MMIO_Port :              0 Pages (0 Bytes)
  PalCode   :              0 Pages (0 Bytes)
  Available :      4,056,228 Pages (16,614,309,888 Bytes)
  Persistent:              0 Pages (0 Bytes)
              -------------- 
Total Memory:         15,959 MB (16,735,268,864 Bytes)

 

Edited by Killuminati91
Link to comment
Share on other sites

  • 3 weeks later...

Hi, I have weird issue since final release of catalina. My Nvram works with osxaptio 1, 3, osxaptio2-wtf and aptioinput aswell but after catalina if I boot even once with these drivers, I cant access bios. When I try it hang out in black screen. If I use osxaptio2 all the time I can access bios but mlb and rom values becaming 0. Also if I get blackscreen once only way to revert that reflashing nvram with amibios tool. I have also tried OpenCore it has same issue as well. I ve tried QcQuirks as well it has same issue too.

I have never experianced that kind of issue before on mojave. 

Device: Asus FX553VD i-7700hq.

Edit: I modified QcQuirks also but only way to keep bios alive disabling mac's access to nvram in that way nvram becoming meaningless.

Edited by valinor61
Link to comment
Share on other sites

  • 1 month later...

Can't boot AptioMemoryFix.efi or FwRuntimeServices.efi+OcQuirks.efi

 

If I used FwRuntimeServices.efi+OcQuirks.efi getting this error;

 

ERROR allocating 0x119e1 pages at 0x0000000006257000 alloc type 2
Couldn't allocate runtime area
Boot failed: will sleep for 10 seconds before exiting...

 

 

If I used AptioMemoryFix.efi this time I am getting this error;

 

AMF: No slide values are usable! Falling back to 0 with 0x17771000 bytes!
ERROR allocating 0x119e1 pages at 0x0000000006257000 alloc type 2
Couldn't allocate runtime area
Boot failed: will sleep for 10 seconds before exiting...

 

I tried all others aptiofix from clover none of them works.

 

What can I do? Please help!

Link to comment
Share on other sites

17 minutes ago, telepati said:

Can't boot AptioMemoryFix.efi or FwRuntimeServices.efi+OcQuirks.efi

 

If I used FwRuntimeServices.efi+OcQuirks.efi getting this error;

 

ERROR allocating 0x119e1 pages at 0x0000000006257000 alloc type 2
Couldn't allocate runtime area
Boot failed: will sleep for 10 seconds before exiting...

 

 

If I used AptioMemoryFix.efi this time I am getting this error;

 

AMF: No slide values are usable! Falling back to 0 with 0x17771000 bytes!
ERROR allocating 0x119e1 pages at 0x0000000006257000 alloc type 2
Couldn't allocate runtime area
Boot failed: will sleep for 10 seconds before exiting...

 

I tried all others aptiofix from clover none of them works.

 

What can I do? Please help!

 

I've the same issue sometime.

 

Maybe you know that:

 

Boot from Recovery partition, go in Terminal, use this command (Replace Catalina by the name of your volume, of course)

 

rm -f /Volumes/Catalina/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache && kextcache -i /Volumes/Catalina && touch Volumes/Catalina/System/Library/Extensions && update_dyld_shared_cache -force && nvram -c && sudo purge

 

Edited by Matgen84
  • Thanks 1
Link to comment
Share on other sites

4 hours ago, Matgen84 said:

 

I've the same issue sometime.

 

Maybe you know that:

 

Boot from Recovery partition, go in Terminal, use this command (Replace Catalina by the name of your volume, of course)

 


rm -f /Volumes/Catalina/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache && kextcache -i /Volumes/Catalina && touch Volumes/Catalina/System/Library/Extensions && update_dyld_shared_cache -force && nvram -c && sudo purge

 

Thanks, @Matgen84 I didn't know that. I will try it.

Link to comment
Share on other sites

  • 2 months later...

Got same problem on ice lake laptop. There is no space for core.

 

[spoiler=memmap]

Type       Start            End              # Pages          Attributes
Available  0000000000000000-000000000009EFFF 000000000000009F 000000000000000F
Reserved   000000000009F000-000000000009FFFF 0000000000000001 000000000000000F
Available  0000000000100000-0000000030D59FFF 0000000000030C5A 000000000000000F
BS_Data    0000000030D5A000-0000000031543FFF 00000000000007EA 000000000000000F
Available  0000000031544000-0000000031961FFF 000000000000041E 000000000000000F
BS_Data    0000000031962000-000000003198EFFF 000000000000002D 000000000000000F
LoaderCode 000000003198F000-0000000031A64FFF 00000000000000D6 000000000000000F
Available  0000000031A65000-0000000031A68FFF 0000000000000004 000000000000000F
BS_Data    0000000031A69000-0000000031ABDFFF 0000000000000055 000000000000000F
Available  0000000031ABE000-0000000031ABEFFF 0000000000000001 000000000000000F
BS_Data    0000000031ABF000-0000000031AEBFFF 000000000000002D 000000000000000F
Available  0000000031AEC000-0000000031AECFFF 0000000000000001 000000000000000F
BS_Data    0000000031AED000-0000000031B31FFF 0000000000000045 000000000000000F
Available  0000000031B32000-0000000031B34FFF 0000000000000003 000000000000000F
BS_Data    0000000031B35000-0000000031B4FFFF 000000000000001B 000000000000000F
Available  0000000031B50000-0000000031B51FFF 0000000000000002 000000000000000F
BS_Data    0000000031B52000-0000000032727FFF 0000000000000BD6 000000000000000F
Available  0000000032728000-0000000032728FFF 0000000000000001 000000000000000F
BS_Data    0000000032729000-000000003272EFFF 0000000000000006 000000000000000F
Available  000000003272F000-000000003272FFFF 0000000000000001 000000000000000F
BS_Data    0000000032730000-00000000327ABFFF 000000000000007C 000000000000000F
Available  00000000327AC000-00000000327ACFFF 0000000000000001 000000000000000F
BS_Data    00000000327AD000-0000000032848FFF 000000000000009C 000000000000000F
Available  0000000032849000-000000003284DFFF 0000000000000005 000000000000000F
BS_Data    000000003284E000-0000000032852FFF 0000000000000005 000000000000000F
Available  0000000032853000-0000000032857FFF 0000000000000005 000000000000000F
BS_Data    0000000032858000-00000000329F1FFF 000000000000019A 000000000000000F
Available  00000000329F2000-00000000329F6FFF 0000000000000005 000000000000000F
BS_Data    00000000329F7000-0000000032A1CFFF 0000000000000026 000000000000000F
Available  0000000032A1D000-0000000032A1DFFF 0000000000000001 000000000000000F
BS_Data    0000000032A1E000-0000000033255FFF 0000000000000838 000000000000000F
LoaderCode 0000000033256000-000000003333DFFF 00000000000000E8 000000000000000F
BS_Data    000000003333E000-00000000360EEFFF 0000000000002DB1 000000000000000F
BS_Code    00000000360EF000-0000000036108FFF 000000000000001A 000000000000000F
BS_Data    0000000036109000-0000000036119FFF 0000000000000011 000000000000000F
BS_Code    000000003611A000-000000003611AFFF 0000000000000001 000000000000000F
BS_Data    000000003611B000-000000003612BFFF 0000000000000011 000000000000000F
BS_Code    000000003612C000-0000000036139FFF 000000000000000E 000000000000000F
BS_Data    000000003613A000-0000000037475FFF 000000000000133C 000000000000000F
BS_Code    0000000037476000-0000000037492FFF 000000000000001D 000000000000000F
BS_Data    0000000037493000-00000000374C3FFF 0000000000000031 000000000000000F
BS_Code    00000000374C4000-00000000374CDFFF 000000000000000A 000000000000000F
BS_Data    00000000374CE000-00000000374DFFFF 0000000000000012 000000000000000F
BS_Code    00000000374E0000-00000000374FFFFF 0000000000000020 000000000000000F
BS_Data    0000000037500000-0000000037987FFF 0000000000000488 000000000000000F
Reserved   0000000037988000-0000000038287FFF 0000000000000900 000000000000000F
BS_Code    0000000038288000-000000003828FFFF 0000000000000008 000000000000000F
BS_Data    0000000038290000-000000003829EFFF 000000000000000F 000000000000000F
Available  000000003829F000-0000000039692FFF 00000000000013F4 000000000000000F
BS_Code    0000000039693000-000000003A09EFFF 0000000000000A0C 000000000000000F
RT_Code    000000003A09F000-000000003A46EFFF 00000000000003D0 800000000000000F
RT_Data    000000003A46F000-000000003ADEEFFF 0000000000000980 800000000000000F
Reserved   000000003ADEF000-000000003B4DEFFF 00000000000006F0 000000000000000F
ACPI_NVS   000000003B4DF000-000000003BBCEFFF 00000000000006F0 000000000000000F
ACPI_Recl  000000003BBCF000-000000003BC4EFFF 0000000000000080 000000000000000F
BS_Data    000000003BC4F000-000000003BC4FFFF 0000000000000001 000000000000000F
Available  0000000100000000-00000002B2BFFFFF 00000000001B2C00 000000000000000F
Reserved   00000000000A0000-00000000000FFFFF 0000000000000060 0000000000000000
Reserved   000000003BC50000-0000000047FFFFFF 000000000000C3B0 000000000000000F
Reserved   0000000048000000-0000000048FFFFFF 0000000000001000 0000000000000009
Reserved   0000000049000000-000000004D3FFFFF 0000000000004400 0000000000000000
MMIO       000000004D400000-00000000CFFFFFFF 0000000000082C00 8000000000000001
MMIO       00000000FC800000-00000000FE7FFFFF 0000000000002000 8000000000000001
MMIO       00000000FED00000-00000000FED00FFF 0000000000000001 8000000000000001
MMIO       00000000FED10000-00000000FED17FFF 0000000000000008 8000000000000001
Reserved   00000000FED20000-00000000FED7FFFF 0000000000000060 0000000000000000
MMIO       00000000FEDA0000-00000000FEDA1FFF 0000000000000002 8000000000000001
MMIO       00000000FEE00000-00000000FEE00FFF 0000000000000001 8000000000000001
MMIO       00000000FF600000-00000000FFFFFFFF 0000000000000A00 8000000000000001
 
  Reserved  :         75,873 Pages (310,775,808 Bytes)
  LoaderCode:            446 Pages (1,826,816 Bytes)
  LoaderData:              0 Pages (0 Bytes)
  BS_Code   :          2,692 Pages (11,026,432 Bytes)
  BS_Data   :         26,068 Pages (106,774,528 Bytes)
  RT_Code   :            976 Pages (3,997,696 Bytes)
  RT_Data   :          2,432 Pages (9,961,472 Bytes)
  ACPI_Recl :            128 Pages (524,288 Bytes)
  ACPI_NVS  :          1,776 Pages (7,274,496 Bytes)
  MMIO      :        546,316 Pages (2,237,710,336 Bytes)
  MMIO_Port :              0 Pages (0 Bytes)
  PalCode   :              0 Pages (0 Bytes)
  Available :      1,986,857 Pages (8,138,166,272 Bytes)
  Persistent:              0 Pages (0 Bytes)
              -------------- 
Total Memory:          7,895 MB (8,279,552,000 Bytes)

Link to comment
Share on other sites

7 hours ago, 2chdotru said:

Got same problem on ice lake laptop. There is no space for core.

 

How could that be? You have basically the entire region free,

Available  0000000000100000-0000000030D59FFF 0000000000030C5A 000000000000000F

You probably should be using OcQuirks instead at this point.

  • Like 1
Link to comment
Share on other sites

4 hours ago, 2chdotru said:

@apianti, can boot only with latest Opencore with DevirtualiseMMIO and ProtectUefiServices. 

 

3 hours ago, apianti said:

Pretty sure those two settings are in OcQuirks as well.

 

To activate DevirtualiseMMIO and ProtectUefiServices, I use  OcQuirks.plist for my Z390 motherboard. Put True instead of false by default in OcQuirks.efi

  • Thanks 1
Link to comment
Share on other sites

DevirtualiseMmio did not work on Ice Lake (essentially at all) until yesterday's version 0.5.7. Because Intel broke the loading of images, and you need a special hack (ProtectUefiServices).

https://applelife.ru/threads/opencore-obsuzhdenie-i-ustanovka.2944066/page-214#post-865151

  • Like 1
Link to comment
Share on other sites

Since installing a Gigabyte Titan Ridge onto my Asrock Z390 Board I can only boot with ProvideCustomSlide quirks set. Without the card it works without that quirk. Is that expected and OK. Memory map:

Type       Start            End              # Pages          Attributes
Available  0000000000000000-000000000009EFFF 000000000000009F 000000000000000F
Reserved   000000000009F000-000000000009FFFF 0000000000000001 000000000000000F
Available  0000000000100000-0000000019635FFF 0000000000019536 000000000000000F
BS_Data    0000000019636000-0000000019675FFF 0000000000000040 000000000000000F
Available  0000000019676000-000000002769EFFF 000000000000E029 000000000000000F
LoaderCode 000000002769F000-00000000277C3FFF 0000000000000125 000000000000000F
BS_Data    00000000277C4000-0000000027AC5FFF 0000000000000302 000000000000000F
BS_Code    0000000027AC6000-0000000027AE0FFF 000000000000001B 000000000000000F
BS_Data    0000000027AE1000-0000000027B0CFFF 000000000000002C 000000000000000F
BS_Code    0000000027B0D000-0000000027B0EFFF 0000000000000002 000000000000000F
BS_Data    0000000027B0F000-000000002955EFFF 0000000000001A50 000000000000000F
BS_Code    000000002955F000-000000002956FFFF 0000000000000011 000000000000000F
BS_Data    0000000029570000-0000000029594FFF 0000000000000025 000000000000000F
BS_Code    0000000029595000-00000000295ABFFF 0000000000000017 000000000000000F
BS_Data    00000000295AC000-00000000295D3FFF 0000000000000028 000000000000000F
BS_Code    00000000295D4000-00000000295FFFFF 000000000000002C 000000000000000F
BS_Data    0000000029600000-0000000029618FFF 0000000000000019 000000000000000F
BS_Code    0000000029619000-0000000029635FFF 000000000000001D 000000000000000F
Available  0000000029636000-000000002EC11FFF 00000000000055DC 000000000000000F
BS_Data    000000002EC12000-000000003C02BFFF 000000000000D41A 000000000000000F
Available  000000003C02C000-000000003C1FBFFF 00000000000001D0 000000000000000F
BS_Code    000000003C1FC000-000000003C8E2FFF 00000000000006E7 000000000000000F
Reserved   000000003C8E3000-000000003E14EFFF 000000000000186C 000000000000000F
Available  000000003E14F000-000000003E5A1FFF 0000000000000453 000000000000000F
ACPI_NVS   000000003E5A2000-000000003E6A4FFF 0000000000000103 000000000000000F
RT_Data    000000003E6A5000-000000003F320FFF 0000000000000C7C 800000000000000F
RT_Code    000000003F321000-000000003F40EFFF 00000000000000EE 800000000000000F
BS_Data    000000003F40F000-000000003F40FFFF 0000000000000001 000000000000000F
Available  0000000100000000-00000008BEFFFFFF 00000000007BF000 000000000000000F
Reserved   00000000000A0000-00000000000FFFFF 0000000000000060 0000000000000000
Reserved   000000003F410000-000000003F6FFFFF 00000000000002F0 000000000000000F
Reserved   000000003F700000-000000003F7FFFFF 0000000000000100 070000000000000F
Reserved   000000003F800000-000000003FFFFFFF 0000000000000800 0000000000000000
MMIO       00000000E0000000-00000000EFFFFFFF 0000000000010000 800000000000100D
MMIO       00000000FE000000-00000000FE010FFF 0000000000000011 8000000000000001
MMIO       00000000FEC00000-00000000FEC00FFF 0000000000000001 800000000000100D
MMIO       00000000FED00000-00000000FED03FFF 0000000000000004 800000000000100D
MMIO       00000000FEE00000-00000000FEE00FFF 0000000000000001 8000000000000001
MMIO       00000000FF000000-00000000FFFFFFFF 0000000000001000 800000000000100D
 
  Reserved  :          9,405 Pages (38,522,880 Bytes)
  LoaderCode:            293 Pages (1,200,128 Bytes)
  LoaderData:              0 Pages (0 Bytes)
  BS_Code   :          1,909 Pages (7,819,264 Bytes)
  BS_Data   :         62,015 Pages (254,013,440 Bytes)
  RT_Code   :            238 Pages (974,848 Bytes)
  RT_Data   :          3,196 Pages (13,090,816 Bytes)
  ACPI_Recl :              0 Pages (0 Bytes)
  ACPI_NVS  :            259 Pages (1,060,864 Bytes)
  MMIO      :         69,655 Pages (285,306,880 Bytes)
  MMIO_Port :              0 Pages (0 Bytes)
  PalCode   :              0 Pages (0 Bytes)
  Available :      8,307,197 Pages (34,026,278,912 Bytes)
  Persistent:              0 Pages (0 Bytes)
              -------------- 
Total Memory:         32,715 MB (34,304,438,272 Bytes)

 

Link to comment
Share on other sites

As a matter of fact I am already using OpenCore. I have the following quirks enabled:

 

2106615499_Screenshot2020-03-14at18_02_00.png.6bf694fa6d79e3bc7c667a2b47e256bd.png

 

Boot worked out every time (roughly 10 boots since I have the card installed).

 

Two questions:

 

1. Cannot find the ProtectUefiServices you mentioned in the OpenCore Doc pdf. Is this only for OcQuirks?

 

2. My log is empty. Is the log only written for non-release builds?

 

694635921_Screenshot2020-03-14at18_06_27.thumb.png.00d150a65c7cd5347fa3fc1fc5152f8b.png

 

 

Edited by r!ppz
Link to comment
Share on other sites

I booted with a Debug build. These are the devirt log outputs:

OCABC: MMIO devirt start
OCABC: MMIO devirt 0xE0000000 (0x10000 pages, 0x800000000000100D) skip 0
OCABC: MMIO devirt 0xFE000000 (0x11 pages, 0x8000000000000001) skip 0
OCABC: MMIO devirt 0xFEC00000 (0x1 pages, 0x800000000000100D) skip 0
OCABC: MMIO devirt 0xFED00000 (0x4 pages, 0x800000000000100D) skip 0
OCABC: MMIO devirt 0xFEE00000 (0x1 pages, 0x8000000000000001) skip 0
OCABC: MMIO devirt 0xFF000000 (0x1000 pages, 0x800000000000100D) skip 0
OCABC: MMIO devirt end, saved 278620 KB
OCABC: Only 174/256 slide values are usable!
OCABC: Valid slides - 0-131, 203-244

 

It seems that everything is working, right? So I should not use ProtectUefiServices, right?

Edited by r!ppz
Link to comment
Share on other sites

  • 2 weeks later...
On 5/27/2018 at 6:06 PM, Pene said:

Hello vit9696,

 

I noticed on my system that I cannot boot to linux when AptioMemoryFix (latest) is loaded before grub starts.

Grub (UEFI) manages to start properly, but the system hangs when it boots the linux distro (Ubuntu in my case).

When AptioMemoryFix is not loaded, Ubuntu starts without problems.

(I'm unsure if this happens only on my system, or only with ubuntu, or if this is more widespread. I'm on a pure UEFI system, no CSM)

On 5/27/2018 at 6:26 PM, vit9696 said:

Hi,

The issue indeed is (was) unknown, yet I suppose it should not happen.

 

Firstly, may I ask you to provide more details about your installation? I.e. Ubuntu version, architecture installation method, why did you use grub (I thought Linux supports native EFI loading?), anything you may find important. It will be great to have a virtual machine (e.g. VMware) where the issue could be reproduced (i.e. by loading AptioMemoryFix from UEFI Shell and then starting grub). Also, do you see any messages from your Linux distro? It should also have some kind of panic log (via serial or swap), which might be helpful if you can get it.

 

Secondly, I could suggest you to do some debugging that may possibly hint where the problem is. Could you go to AptioMemoryFix.c and 

https://github.com/vit9696/AptioFixPkg/blob/master/Platform/AptioMemoryFix/AptioMemoryFix.c#L109 and try commenting the shim installation lines?


  InstallRtShims (GetVariableCustomSlide);
  InstallBsOverrides ();
  InstallRtOverrides ();

That would break macOS, but it should pretty certainly fix Linux. If it does, try finding which exact line breaks it (i.e. by uncommenting).

 

Similarly after you find the culprit you could step further and narrow it down to the exact function:

https://github.com/vit9696/AptioFixPkg/blob/master/Platform/AptioMemoryFix/RtShims.c#L126


    gRT->GetVariable               = (EFI_GET_VARIABLE)((UINTN)gRtShims              + ((UINTN)&RtShimGetVariable          - (UINTN)&gRtShimsDataStart));
    gRT->SetVariable               = (EFI_SET_VARIABLE)((UINTN)gRtShims              + ((UINTN)&RtShimSetVariable          - (UINTN)&gRtShimsDataStart));
    gRT->GetNextVariableName       = (EFI_GET_NEXT_VARIABLE_NAME)((UINTN)gRtShims    + ((UINTN)&RtShimGetNextVariableName  - (UINTN)&gRtShimsDataStart));
    gRT->GetTime                   = (EFI_GET_TIME)((UINTN)gRtShims                  + ((UINTN)&RtShimGetTime              - (UINTN)&gRtShimsDataStart));
    gRT->SetTime                   = (EFI_SET_TIME)((UINTN)gRtShims                  + ((UINTN)&RtShimSetTime              - (UINTN)&gRtShimsDataStart));
    gRT->GetWakeupTime             = (EFI_GET_WAKEUP_TIME)((UINTN)gRtShims           + ((UINTN)&RtShimGetWakeupTime        - (UINTN)&gRtShimsDataStart));
    gRT->SetWakeupTime             = (EFI_SET_WAKEUP_TIME)((UINTN)gRtShims           + ((UINTN)&RtShimSetWakeupTime        - (UINTN)&gRtShimsDataStart));
    gRT->GetNextHighMonotonicCount = (EFI_GET_NEXT_HIGH_MONO_COUNT)((UINTN)gRtShims  + ((UINTN)&RtShimGetNextHighMonoCount - (UINTN)&gRtShimsDataStart));
    gRT->ResetSystem               = (EFI_RESET_SYSTEM)((UINTN)gRtShims              + ((UINTN)&RtShimResetSystem          - (UINTN)&gRtShimsDataStart));

https://github.com/vit9696/AptioFixPkg/blob/master/Platform/AptioMemoryFix/ServiceOverrides.c#L124


  gBS->AllocatePages      = MOAllocatePages;
  gBS->GetMemoryMap       = MOGetMemoryMap;
  gBS->ExitBootServices   = MOExitBootServices;
  gBS->HandleProtocol     = MOHandleProtocol;
  gBS->StartImage         = MOStartImage;

https://github.com/vit9696/AptioFixPkg/blob/master/Platform/AptioMemoryFix/ServiceOverrides.c#L143


gRT->SetVirtualAddressMap = MOSetVirtualAddressMap;

Once we know the details I should hopefully be able to provide some help. Also, does Windows work fine?

Hi,

 

I think this issue is back with (latest) OpenRuntime.

https://github.com/CloverHackyColor/CloverBootloader/issues/96

Edited by Pene
Link to comment
Share on other sites

On 10/12/2019 at 10:59 AM, Killuminati91 said:

Can anyone help me through this? I am kinda lost here, I tried all different aptiofix drivers.

I recommend you to try opencore with ProtectUEFIServices and DevirtualizeMMIO, you can also use those quirks with OcQuirks.plist but i recommend using OpenCore.

 

Also, can you please extract your tables using F4 from the CLOVER GUI and post here your origin folder please?

 

Thanks.

 

Link to comment
Share on other sites

On 3/26/2020 at 11:42 AM, 1Ale1 said:

I recommend you to try opencore with ProtectUEFIServices and DevirtualizeMMIO, you can also use those quirks with OcQuirks.plist but i recommend using OpenCore.

 

Also, can you please extract your tables using F4 from the CLOVER GUI and post here your origin folder please?

 

Thanks.

 

 

Heyo, ditched the S740 but swapped it for a S940 which just arrived. Same processor. Attached the first clover dump. Will begin working on this one tonight.

 

----------------------------------------------------

 

So this is my current setup:

Lenovo S940



i7-1065g7

16GB RAM

512GB NVME SSD

 

Bios, everything kept on initial values except:

BIOS Backflash: Enabled



Flip to Boot: Disabled

Application Policy: Disabled

Intel Platform Trust Technology: Disabled

Secure Boot: Disabled

 

Created an installer drive with Catalina 10.15.4 and Clover. SMBios: Macbook Pro 15,4 (as the 2020 air is not available yet). All necessary SSDT's generated and modified according to my DSDT dump. Using OCQuirks instead of aptiofixes, enabled "ProtectUEFIServices" and "DevirtualizeMMIO"

 

STATUS: Stuck at "+++++++" which looks a bit different now than previously.

 

Attached "origin", "CLOVER" and a screenshot of the verbose output.

origin Lenovo S940.zip

EFI.zip

IMG_0234.jpg

Edited by Killuminati91
Link to comment
Share on other sites

I imagine you need to fix your CPU setup as there are no macs with 10th gen i7s (or any 10th gen for that matter). Also it looks like it is failing to create and load the modified prelinked kernel.

 

EDIT: Also it looks like you are booting directly from the installer image, which means that you probably can't write to the disk which is needed for the modified prelinked kernel.

Edited by apianti
Link to comment
Share on other sites

2 hours ago, apianti said:

I imagine you need to fix your CPU setup as there are no macs with 10th gen i7s (or any 10th gen for that matter). Also it looks like it is failing to create and load the modified prelinked kernel.

 

EDIT: Also it looks like you are booting directly from the installer image, which means that you probably can't write to the disk which is needed for the modified prelinked kernel.

 

Any way to SPOOF the CPU on OpenCore?

 

This is my latest result, shifted from Clover to OpenCore because of issues in recent clover builds.

 

307:451 00:093 OCB: Performing OcShowSimpleBootMenu... 0
307:543 00:092 OCB: BootNext has not been found
307:650 00:106 OCB: BootOrder is unavailable - Not Found
307:742 00:092 OCB: Initial default is 0, fallback
321:469 13:726 OCB: Should boot from Install macOS Catalina (T:2|F:0|DEF:0)
321:569 00:100 OCB: Perform boot Install macOS Catalina to dp PciRoot(0x0)/Pci(0x14,0x0)/USB(0x0,0x0)/HD(2,GPT,4CE3D327-4F1C-48A6-ABB3-CBE00EC1A5D6,0x64028,0x38A3AD8)/\System\Library\CoreServices\boot.efi (0/0)
321:980 00:411 OCB: Matching <> args on type 2 0
322:075 00:094 OCABC: Recovering trashed GetMemoryMap pointer
322:186 00:110 OCOS: OS set: <null> Mac OS X 10.15
322:283 00:097 OCOS: OS set: Apple Inc. Mac OS X 10.15
322:747 00:463 Trying XNU hook on System\Library\PrelinkedKernels\prelinkedkernel.development
322:911 00:164 Kext reservation size 6266880
338:197 15:285 Result of XNU hook on System\Library\PrelinkedKernels\prelinkedkernel.development is Success
338:303 00:106 OC: Read kernel version 19.0.0 (190000)
338:397 00:093 OCAK: Replacing _xcpm_core_scope_msrs data 226 76
338:501 00:104 OCAK: Replacing _xcpm_core_scope_msrs data 226 13200
338:594 00:092 OCAK: Replacing _xcpm_core_scope_msrs data 226 16384
338:686 00:092 OCAK: Not matching _xcpm_core_scope_msrs data 46 29660
338:787 00:100 OCAK: XcpmCfgLockRel replace count - 2
338:899 00:112 OCAK: PanicKextDump replace count - 1
338:991 00:091 OCAK: Patch success kext dump
339:094 00:103 OCAK: PowerStateTimeout replace count - 1
339:196 00:101 OCAK: Patch success power state
339:319 00:123 OCAK: AppleCpuPmCfgLock v1 replace count - 10
339:412 00:092 OCAK: Patch v1 success com.apple.driver.AppleIntelCPUPowerManagement
339:504 00:092 OCAK: AppleCpuPmCfgLock v2 replace count - 0
339:600 00:095 OCAK: RemoveUsbLimitIoP1 replace count - 1
339:692 00:092 OCAK: Patch success com.apple.iokit.IOUSBHostFamily
339:794 00:102 OCAK: RemoveUsbLimitV2 replace count - 1
339:894 00:099 OCAK: Patch success com.apple.driver.usb.AppleUSBXHCI
339:986 00:092 OCAK: AppleIoMapper replace count - 1
340:080 00:094 OCAK: Patch success com.apple.iokit.IOPCIFamily AppleIoMapper
340:191 00:110 OC: Prelink injection Lilu.kext () - Success
340:291 00:100 OC: Prelink injection VirtualSMC.kext () - Success
340:390 00:099 OC: Prelink injection NVMeFix.kext () - Success
340:505 00:114 OC: Prelink injection USBInjectAll.kext () - Success
340:607 00:101 OC: Prelink injection WhateverGreen.kext () - Success
340:760 00:152 Prelinked status - Success
340:864 00:103 OCSMC: SmcReadValue Key 4D535463 Size 1
340:958 00:094 OCSMC: SmcReadValue Key 4D534163 Size 2
341:051 00:092 OCABC: MMIO devirt start
341:143 00:091 OCABC: MMIO devirt end, saved 0 KB

 

Slide=90 does its job, but it is still just hanging at that point, refusing to go on.

 

329802139_Bildschirmfoto2020-04-09um13_13_55.thumb.png.6b89d107ff0e631386ad48d90a5d0f33.png

EFI.zip

opencore-2020-04-09-130243.txt

Edited by Killuminati91
Link to comment
Share on other sites

On 4/9/2020 at 1:39 AM, apianti said:

I imagine you need to fix your CPU setup as there are no macs with 10th gen i7s (or any 10th gen for that matter).

The MacBook Air 2020 has Ice Lake 10th gen i3 or i5 with Gen11 graphics supporting DisplayPort 1.4 and DSC.

Link to comment
Share on other sites

On 4/10/2020 at 10:21 PM, joevt said:

The MacBook Air 2020 has Ice Lake 10th gen i3 or i5 with Gen11 graphics supporting DisplayPort 1.4 and DSC.

 

@Killuminati91 we managed to workaround the problem you had here

On 4/1/2020 at 5:09 PM, Killuminati91 said:

STATUS: Stuck at "+++++++" which looks a bit different now than previously.

 

You just needed to Add ProtectUefiServices=true, DevirtualizeMMIO=true, enablewriteunprotector=FALSE (on the laptop in question which is the same as mine which has MAT support according to the OpenCore log.) and RebuildAppleMemoryMap=True and SyncRuntimePermissions=true.

 

I have a lenovo Yoga S740, with the i7 1065G7 (pretty much the same CPU as the MacBookAir9,1 which has only a different SKU, "i7 1060NG7" but it's the same chip) - a little O.T, i managed to unlock the MSR 0xE2 register on this machine by manually editing the parameter "01" at the offset 0x43 from bios, changed it to "00" and confirmed by VerifyMsrE2.efi, so in the EFI attached you won't find AppleXCPMCfgLock.

 

This was the situation at first glance

 

index.thumb.jpg.656d3f493225367c9b58fc19c5067b29.jpg

 

 

We've also found by checking the DSDT that the USBs are defined in then DSDT and we also discoveredthe thunderbolt controller is embedded in the CPU. With ReleaseUSBOwnership (Clover equivalent would be FixOwnership) we sometimes managed to skip this issue as well.

 

 

index1.thumb.jpg.dce81c521bbd78696831700687d369ab.jpg

 

 

But...

No luck so far with Ice Lake, I'm trying to make it boot but I'm getting always the same errors, either stalls at Pci Configuration End,

or Kernel Panics on "FaultCR2" (i have also tried with fixHeaders with clover, also tried different clover versions, also tried all what i said before with only fakeSMC which is independent and requires no plugins), but here's the result

 

index2.thumb.jpg.b13057e47789b7517a40e55c3edcc4ce.jpg

 

 

When trying with VirtualSMC + Lilu and Clover however, we haven't been able to boot yet, even with -igfxvesa and a fakeCPUID.

 

index3.thumb.jpg.72faa6d4cc213d166f7a02207004b9d9.jpg

 

We've also tried OpenCore, but still the issue persists either on that kernel panic if the DSDT is loaded, or stalls at

 

PCI configuration End here

 

1935476778_Screenshot2020-04-12at22_24_06.thumb.png.b29152d1e452df9106ddef9fbd1ffb46.png

 

Or when loading the DSDT here (this is the furthest we've gone so far) with WeG Lilu and Virtual SMC compiled at the latest commit today at 21:00 (GMT +1:00)

 

inde6x.thumb.jpg.e9aa8307c5e5496188b4790e9d64a317.jpg

 

I attach here the EFI.zip and the screenshots. We managed to find some workarounds to this issue by hiding the thunderbolt from devices/properties, and also to solve the battery ACPI alert by editing the DSDT, but still stuck here.

 

Could we assume that the issue is the CPU itself?

 

@vit9696 Is ice Lake fully supported in this situation or do we need to wait for the release of the new OpenCore 0.5.8 and new Kexts such as Lilu 1.4.4, the new WeG 1.3.9 and virtualSMC 1.1.3?

 

Maybe something more needs to be added in those libraries and on OpenCore or is everything dependent upon Catalina to support this CPU?

 

And what about the Iris Plus Graphics (the intel G7)?

 

I've seen that these days @Andrey1970 has updated the manuals (FAQ.Intel.en.md) but still we don't have framebuffers with fbmem different from Zero yet? (but this is another story since here we're still stuck on this kernel panic).

 

I'm stuck here, but I don't know what the problem could be.

 

Any help is highly appreciated, also lots of this work was made by the awesome community at macos86.it

image.png

Link to comment
Share on other sites

×
×
  • Create New...