Jump to content
8755 posts in this topic

Recommended Posts

hi this is another _INI lookup failiure I think this is from here

DefinitionBlock ("", "SSDT", 2, "ACDT", "AWAC", 0x00000000)
{
    External (STAS, IntObj)

    Scope (_SB)
    {
        Method (_INI, 0, NotSerialized)  // _INI: Initialize
        {
            If (_OSI ("Darwin"))
            {
                STAS = One
            }
        }
    }
}

please help I dont understand assembler

IMG-1272.jpg

Hey all.

 

I wish to start by saying I've seen some amazing work on OC in the last year. Big Kudos to vit and DF for their constant developing, and also the team, while also answering all the bugtracker questions. 

 

Having to work from home recently has allowed me to finally find some time to see if I can upgrade my version of OpenCore from a version before AptioMemoryFix was dropped to boot macOS High Sierra on my old Z68 machine with ASUS Maximus IV Gene Z and i7-2600. It's not a problem if I can't as I'm happy to use the older version or Clover, but still, it would be good if I could use the latest and greatest.

 

The last build I have which I can use to boot High Sierra using OC with AptioMemoryFix is a pre-release version of 0.0.4 from August 3rd 2019, commit 6d8d39a
https://github.com/acidanthera/OpenCorePkg/commits/master?after=eff6598386a4b55d0c3fbb0afc66172b7de43aff+804

 

Using the released version 0.0.4 of OC or newer with FwRuntimeServices.efi (and now the newer OpenRuntime.efi) I either see on screen error 'Error allocating 0x800 pages at 0x000000000f600000 alloc type 2' when trying to 'Start LoadKernelFromStream'
boot_process_stop_Error_allocating_pages.jpg.aa546fd10553c42bc427f54edfb9966c.jpg

 

Or it halts at 'End RandomSeed'
boot_process_stop_EndRandomSeed.jpg.15841341e0e036798335cf880d713b92.jpg

 

Here's OC 0.0.4 debug log:
opencore-2020-04-04-165829.txt

 

Here's the debug log using the latest version of OC:
opencore-2020-04-06-152037.txt

 

Config wise I always have the following enabled:
• IgnoreInvalidFlexRatio
• ProvideConsoleGop (though enabled or disabled makes no difference to a successful boot)
• DisableIoMapper
• PanicNoKextDump

 

I've tried many variations of Booter->Quirks and found that I need to have enabled:
• AvoidRuntimeDefrag
• EnableSafeModeSlide
• EnableWriteUnprotector
• ProvideCustomSlide
• SetupVirtualMap

 

It seems that Enabling ShrinkMemoryMap AND SetupVirtualMap with OC 0.0.4 ends in KP for Unaligned Frame
boot_process_KP_Unaligned_Frame.jpg.194b52966da2de9173d4b654e69187d1.jpg

 

Trying to use any of the other quirks don't help.
• DiscardHibernateMap (Config8)
• ForceExitBootServices
• ProtectCsmRegion
• ProtectUefiServices

 

I'm attaching a memmap from boot and after loading each, AptioMemoryfix, FWRuntimeServices and OpenRuntime if they help spot the issue.

 

memmap1_after_load_FWRuntimeServices_004.txt

memmap1_from_boot_before_FWRuntimeServices.txt

 

memmap2_from_boot_before_OpenRuntime.txt

memmap2_after_load_OpenRuntime.txt

 

memmap3_from_boot_before_AptioMemoryFix.txt

memmap3_after_load_AptioMemoryFix.txt

 

Thanks in advance for any suggestions.

 

EDIT: Solved thanks to vit9696's suggestion.

Edited by blackosx
Mark as solved
1 hour ago, vit9696 said:

blackosx, could you try posting your config for 0.5.7? It seems like some Booter quirks are not set, but it will be easier to reason with the photo and the config side by size.

Hey vit9696. Sure

 

EDIT: config.plist removed

1 hour ago, crusher said:

Hey @blackosx

 Hey crusher.

Edited by blackosx
  • Like 1

@blackosx, you have a very large memory map, so RebuildAppleMemoryMap is a must. In older OpenCore versions it was called ShrinkMemoryMap. I do not remember where exactly is CSM region on APTIO IV, so better enable ProtectMemoryRegions. A little unrelated, but you want RequestBootVarRouting on pretty much all hacks. ForceExitBootServices — 50/50, might be, but not guaranteed. This should get you booted I think. 

  • Like 2
  • Thanks 1
9 minutes ago, vit9696 said:

@blackosx, you have a very large memory map, so RebuildAppleMemoryMap is a must. In older OpenCore versions it was called ShrinkMemoryMap. I do not remember where exactly is CSM region on APTIO IV, so better enable ProtectMemoryRegions. A little unrelated, but you want RequestBootVarRouting on pretty much all hacks. ForceExitBootServices — 50/50, might be, but not guaranteed. This should get you booted I think. 


Thank you very much @vit9696

I went with RebuildAppleMemoryMap, ProtectMemoryRegions and RequestBootVarRouting and Bingo!

:)

6 minutes ago, crusher said:

Here u go and u just need to change PlatformInfo/Generic

EFI.zip

Thank for your help crusher but no need. All fixed :)

  • Like 1

hi apperantly there is akext for not having those kp's and there is a rehab man's kext for battery issues that will plague you and I dont have a single ssdt in acpi and I think they are all fine except for this one virtualsmc is not loading properly please let me know what is wrong now it is 4510 hd4400 yoga 2 pro

IMG-1277.thumb.jpg.e8e4728cb01df8fb0eb71de723d6159d.jpg

3 hours ago, blackosx said:


Thank you very much @vit9696

I went with RebuildAppleMemoryMap, ProtectMemoryRegions and RequestBootVarRouting and Bingo!

:)

Thank for your help crusher but no need. All fixed :)

is that efi of something that works or is it all there you have alot of stuff missing and how did you get put of that error ocs: no schema for protectcsmregion at 8 index

Edited by markl18

Hi everyone I am trying to boot in Safe Mode but when finished the loading bar display signal loss but fans and system working just no screen. I tried to boot on debug mode one within safe mode one with normal boot and I compared two boot logs they are completely identical but as I said before just signal lost on safe boot. Any idea what can cause this?

 

Another thing I realize while trying to boot on SafeMode purple lines coming back;

 

IMG_0429.jpeg.c851d109ff7d8acb9af586347c0bee45.jpeg

 

These are boot logs, weg, lilu logs and my config.plist;

 

opencore-2020-04-07-231116 Normal Boot.txt

config.plist

opencore-2020-04-07-230853 Safe Mode.txt

WEG and Lilu Logs

Edited by telepati
  • Sad 1

playing with OC on a tianocore Sandybridge...

 

1) is it possible to use a custom DSDT? gasp...  instead of figuring out all the edits to re-implement?

 

2) is this normal: about 1 mintue to see menu? - had to set Scanning to just look at APFS and SATA other it took like well over 90secs to scan 2 disks. 0 never returns.

~1 minute to get boot menu.

 

this is 1 disk:

 

26:118 00:229 OC: OpenCore is loaded, showing boot menu...

26:248 00:130 OC: Ready for takeoff in 0 us

26:375 00:126 OCB: Performing OcScanForBootEntries...

26:505 00:129 OCB: Found 8 potentially bootable filesystems

...

36:794 00:127 OCBP: 8 filesystems for APFS - Success

 

44:746 00:150 OCB: Entry 0 is Windows at \EFI\BOOT\ (T:16|F:0)

50:092 00:131 OCB: Entry 1 is macOS at \926FDF0C-2A82-4456-89D7-2AC9E575D690\System\Library\CoreServices\ (T:2|F:0)

56:220 00:130 OCB: Entry 2 is Recovery 10.15.4 at \926FDF0C-2A82-4456-89D7-2AC9E575D690\ (T:4|F:1)

 

 

7-0B7C-49F3-9147-01F4042E6842,B44790F7B21ECB4BB81F02E0CC09D23C)/\926FDF0C-2A82-4456-89D7-2AC9E575D690\

56:494 00:145 OCB: Performing OcShowSimpleBootMenu... 0

56:622 00:128 OCB: BootNext has not been found

56:751 00:129 OCB: BootOrder is unavailable - Not Found

56:882 00:130 OCB: Initial default is 0, fallback

 

Edited by tluck
  • Like 1
×
×
  • Create New...