Jump to content
30960 posts in this topic

Recommended Posts

Hardware dependency came from Memory Map as I see from debug-log

31:698  0:001  OCABC: AllocPages 2 0xFB00000 (71015) - Not Found

There is no problem who has large enough contiguous space in memory. Not me. 

41 minutes ago, Slice said:

Hardware dependency came from Memory Map as I see from debug-log

31:698  0:001  OCABC: AllocPages 2 0xFB00000 (71015) - Not Found

There is no problem who has large enough contiguous space in memory. Not me. 

 

Preboot Log (last lines)

31:698  0:001  OCABC: AllocPages 2 0xFB00000 (71015) - Not Found
31:730  0:031  RestoreConfig called Param1=2
41:757  10:026  OCB: InternalEfiExit C78E2E18 - Aborted / Unsupported
41:757  0:000  StartImage failed : Aborted
                                                                                                                                                                                                                          

 

pwd

/.../CloverBootloader

 

egrep "OCB: InternalEfiExit|OCABC: AllocPages|StartImage failed : " */*/* 2>/dev/null | grep -v "^Binary" 

rEFIt_UEFI/refit/main.cpp:      DBG("StartImage failed : %s\n", efiStrError(Status));

rEFIt_UEFI/refit/main.cpp:      printf("StartImage failed : %s\n", efiStrError(Status));

 

egrep "OCB: InternalEfiExit|OCABC: AllocPages|StartImage failed : " */*/*/* 2>/dev/null | grep -v "^Binary"

OpenCorePkg/Library/OcAfterBootCompatLib/ServiceOverrides.c:  DEBUG ((DEBUG_VERBOSE, "OCABC: AllocPages %u 0x%Lx (%u) - %r\n", Type, *Memory, NumberOfPages, Status));

OpenCorePkg/Library/OcBootManagementLib/ImageLoader.c:  DEBUG ((DEBUG_VERBOSE, "OCB: InternalEfiExit %p - %r / %r\n", ImageHandle, ExitStatus, Status));

 

 

I compiled build r5156 commit bd45a8c on macOS Sonoma Version 14.2 (23C64) and Version 15.0.1 (15A507), bat still unable to boot sonoma with BlockSkywalk Quirk enable:
Stuck at [EB.LD.LKC|R.2] <"System\Library\KernelCollections\BootKernelExtensions.kc">

13:900  0:007  ->Extra kext: 14\IOSkywalkFamily.kext (v.1.0)
14:038  0:007  Bridge kext to OC : Path=IOSkywalkFamily.kext
14:047  0:009  info plist path: Kexts\14\IOSkywalkFamily.kext\Contents\Info.plist
14:056  0:009  InfoPlistPath=Kexts\14\IOSkywalkFamily.kext\Contents\Info.plist
14:070  0:013  assign executable as 'Contents\MacOS\IOSkywalkFamily'
25:438  0:039  OCAK: Patching invalid size 2EFF8 with 145E000 for com.apple.iokit.IOSkywalkFamily
25:445  0:007  OCAK: com.apple.iokit.IOSkywalkFamily got KXLD 0 0
25:452  0:007  OCAK: Excluding com.apple.iokit.IOSkywalkFamily - VirtualBase FFFFFF800280E000, MaxSize 40000
25:459  0:007  OCAK: Found kext com.apple.iokit.IOSkywalkFamily (51DC5318) from link 51DC5320 to drop
25:466  0:007  OCAK: Erasing com.apple.iokit.IOSkywalkFamily from prelinked kext under dict index 3, plist 525DA018, plist index 167
25:477  0:010  OC: Prelinked blocker (Exclude) result 0 for com.apple.iokit.IOSkywalkFamily () - Success
25:633  0:007  OCAK: com.apple.iokit.IOSkywalkFamily got KXLD 0 0
25:643  0:010  OCAK: Requesting __LINKEDIT for com.apple.iokit.IOSkywalkFamily - 5643B4D0 at 3BB9000
25:650  0:007  OCAK: Requesting SymbolTable for com.apple.iokit.IOSkywalkFamily - 11261
25:778  0:012  OC: Prelinked injection Kexts\14\IOSkywalkFamily.kext () - Success
26:196  0:010  OCAK: Requesting SymbolTable for com.apple.iokit.IOSkywalkFamily - 10350
 

2023-12-11_13-28_CLOVERX64.EFI.log

2 hours ago, MakAsus said:

I compiled build r5156 commit bd45a8c on macOS Sonoma Version 14.2 (23C64) and Version 15.0.1 (15A507), bat still unable to boot sonoma with BlockSkywalk Quirk enable:
Stuck at [EB.LD.LKC|R.2] <"System\Library\KernelCollections\BootKernelExtensions.kc">

13:900  0:007  ->Extra kext: 14\IOSkywalkFamily.kext (v.1.0)
14:038  0:007  Bridge kext to OC : Path=IOSkywalkFamily.kext
14:047  0:009  info plist path: Kexts\14\IOSkywalkFamily.kext\Contents\Info.plist
14:056  0:009  InfoPlistPath=Kexts\14\IOSkywalkFamily.kext\Contents\Info.plist
14:070  0:013  assign executable as 'Contents\MacOS\IOSkywalkFamily'
25:438  0:039  OCAK: Patching invalid size 2EFF8 with 145E000 for com.apple.iokit.IOSkywalkFamily
25:445  0:007  OCAK: com.apple.iokit.IOSkywalkFamily got KXLD 0 0
25:452  0:007  OCAK: Excluding com.apple.iokit.IOSkywalkFamily - VirtualBase FFFFFF800280E000, MaxSize 40000
25:459  0:007  OCAK: Found kext com.apple.iokit.IOSkywalkFamily (51DC5318) from link 51DC5320 to drop
25:466  0:007  OCAK: Erasing com.apple.iokit.IOSkywalkFamily from prelinked kext under dict index 3, plist 525DA018, plist index 167
25:477  0:010  OC: Prelinked blocker (Exclude) result 0 for com.apple.iokit.IOSkywalkFamily () - Success
25:633  0:007  OCAK: com.apple.iokit.IOSkywalkFamily got KXLD 0 0
25:643  0:010  OCAK: Requesting __LINKEDIT for com.apple.iokit.IOSkywalkFamily - 5643B4D0 at 3BB9000
25:650  0:007  OCAK: Requesting SymbolTable for com.apple.iokit.IOSkywalkFamily - 11261
25:778  0:012  OC: Prelinked injection Kexts\14\IOSkywalkFamily.kext () - Success
26:196  0:010  OCAK: Requesting SymbolTable for com.apple.iokit.IOSkywalkFamily - 10350
 

2023-12-11_13-28_CLOVERX64.EFI.log 119.17 kB · 1 download

Hi

 

did you try to boot without RtWlanU...  (and Wlan.app)

your Log PCI Devices list shows a BCM4360 (0x43a014e4)

0:104  0:000  PCI (00|07:00.00) : 14E4 43A0 class=028000
0:104  0:000   - WIFI: Vendor= Broadcom
 

RtWlanU... for Realtek chipsets on Wifi Cards or USB Sticks

 

27:038  0:011  OC: Prelinked injection Kexts\14\RtWlanU1827.kext () - Success
...

27:126  0:033  OC: Prelinked injection Kexts\14\RtWlanU.kext () - Success
 

Regards

  • Haha 1
2 hours ago, matxpa said:

Hi

 

did you try to boot without RtWlanU...  (and Wlan.app)

your Log PCI Devices list shows a BCM4360 (0x43a014e4)

0:104  0:000  PCI (00|07:00.00) : 14E4 43A0 class=028000
0:104  0:000   - WIFI: Vendor= Broadcom
 

RtWlanU... for Realtek chipsets on Wifi Cards or USB Sticks

 

27:038  0:011  OC: Prelinked injection Kexts\14\RtWlanU1827.kext () - Success
...

27:126  0:033  OC: Prelinked injection Kexts\14\RtWlanU.kext () - Success
 

Regards

Both cards work properly with OC 0.9.6 and do not interfere with each other, but I tried moving them to the Kexts\off\ folder from which they are not injected and the result is the same.
14:255  0:007  ->Extra kext: 14\IOSkywalkFamily.kext (v.1.0)
14:393  0:007  Bridge kext to OC : Path=IOSkywalkFamily.kext
14:402  0:009  info plist path: Kexts\14\IOSkywalkFamily.kext\Contents\Info.plist
14:412  0:010  InfoPlistPath=Kexts\14\IOSkywalkFamily.kext\Contents\Info.plist
14:427  0:014  assign executable as 'Contents\MacOS\IOSkywalkFamily'
26:303  0:043  OCAK: Patching invalid size 2EFF8 with 145E000 for com.apple.iokit.IOSkywalkFamily
26:312  0:009  OCAK: com.apple.iokit.IOSkywalkFamily got KXLD 0 0
26:320  0:007  OCAK: Excluding com.apple.iokit.IOSkywalkFamily - VirtualBase FFFFFF800280E000, MaxSize 40000
26:328  0:008  OCAK: Found kext com.apple.iokit.IOSkywalkFamily (58E54898) from link 58E548A0 to drop
26:336  0:007  OCAK: Erasing com.apple.iokit.IOSkywalkFamily from prelinked kext under dict index 3, plist 5966A498, plist index 167
26:347  0:010  OC: Prelinked blocker (Exclude) result 0 for com.apple.iokit.IOSkywalkFamily () - Success
26:514  0:007  OCAK: com.apple.iokit.IOSkywalkFamily got KXLD 0 0
26:522  0:007  OCAK: Requesting __LINKEDIT for com.apple.iokit.IOSkywalkFamily - 5740A4D0 at 3BB7000
26:533  0:010  OCAK: Requesting SymbolTable for com.apple.iokit.IOSkywalkFamily - 11261
26:667  0:012  OC: Prelinked injection Kexts\14\IOSkywalkFamily.kext () - Success
27:117  0:011  OCAK: Requesting SymbolTable for com.apple.iokit.IOSkywalkFamily - 10350

2023-12-11_17-34_CLOVERX64.EFI.log

Edited by MakAsus

Hi @Slice

 

I can't build commit 5817544aa. 🥲 Since few years, I delete Build directory before building Clover (no problem). Since few month, I'm using XCODE14 Toolchain (no problem)

Strangely, Build/XCODE8 is create before crash. See error message below. Please..

 

Note: Merge commit 8c86c0e for OpencorePKG is empty on GitHub repo !

 

Spoiler

TOOLCHAIN_DIR: /Users/mathieu/src/opt/local
MTOC_PREFIX: /Users/mathieu/src/opt/local/bin/
NASM_PREFIX: /Users/mathieu/src/opt/local/bin/
NASM_VER: 2.16.01
Initializing workspace
recreate Conf folder
WORKSPACE: /Users/mathieu/src/Cloverbootloader
EDK_TOOLS_PATH: /Users/mathieu/src/Cloverbootloader/BaseTools
CONF_PATH: /Users/mathieu/src/Cloverbootloader/Conf
Copying $EDK_TOOLS_PATH/Conf/build_rule.template
     to /Users/mathieu/src/Cloverbootloader/Conf/build_rule.txt
Copying $EDK_TOOLS_PATH/Conf/tools_def.template
     to /Users/mathieu/src/Cloverbootloader/Conf/tools_def.txt
Copying $EDK_TOOLS_PATH/Conf/target.template
     to /Users/mathieu/src/Cloverbootloader/Conf/target.txt
Build environment: macOS-12.7.1-x86_64-i386-64bit
Build start time: 09:30:02, Dec.13 2023

WORKSPACE        = /Users/mathieu/src/Cloverbootloader
EDK_TOOLS_PATH   = /Users/mathieu/src/Cloverbootloader/BaseTools
CONF_PATH        = /Users/mathieu/src/Cloverbootloader/Conf
PYTHON_COMMAND   = python3

Processing meta-data ... done!


build.py...
 : error C0DE: Unknown fatal error when processing [/Users/mathieu/src/Cloverbootloader/OpenCorePkg/Library/OcDebugLogLibOc2Clover/OcDebugLogLibOc2Clover.inf [X64, XCODE8, RELEASE]]
    
(Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)

(Python 3.12.0 on darwin) Traceback (most recent call last):
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1388, in _BuildPa
    RemoveDirectory(AutoGenObject.BuildDir, True)
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/Source/Python/Common/Misc.py", line 443, in RemoveDirectory
    os.rmdir(Directory)
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/Source/Python/Common/LongFilePathOs.py", line 33, in rmdir
    return os.rmdir(LongFilePath(path))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 66] Directory not empty: '/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2695, in Main
    MyBuild.Launch()
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2488, in Launch
    self._BuildPlatform()
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1823, in _BuildPlatform
    self._BuildPa(self.Target, Pa, FfsCommand=CmdListDict,PcdMaList=PcdMaList)
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1389, in _BuildPa
    except WindowsError as X:
           ^^^^^^^^^^^^
NameError: name 'WindowsError' is not defined


- Failed -

 

 

Screenshot

 

Spoiler

Capturedcran2023-12-1309_54_51.png.fcd83a2eb4f3dfd3ac3f2b5f23f55859.png

 

Edited by Matgen84
2 minutes ago, Slice said:

@Matgen84,

It depends on your version of Xcode.

If < 14 then use XCODE8 toolset

if 14 then use XCODE14 toolset

if 15 then use XCODE15 toolset

Or just use GCC131 toolset.

 

@Slice I use as I said before: XCODE14 toolset. Without success. Can you take alook to spoiler: there is eoor message.

  • Like 1
4 minutes ago, Matgen84 said:

 

@Slice I use as I said before: XCODE14 toolset. Without success. Can you take alook to spoiler: there is eoor message.

Because you are on Monterey? I saw your spoiler.

OSError: [Errno 66] Directory not empty: '/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8'

  • Like 2
3 minutes ago, Slice said:

Because you are on Monterey? I saw your spoiler.

OSError: [Errno 66] Directory not empty: '/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8'

 

In fact, it's a GitHub issue: red cross on commit is replacing by green circle button. Now I can build latest commit without any problem (XCODE14 RELEASE folder).

 

Thanks.

  • Like 2

@LockDown @Slice

I use SMBIOS iMac20,1 (Z390 config). Despite of explanation on support.apple, this iMac don't have T2 chip. 

 

To be sure having incremental update for Sonoma: I put restricevents.kext in Clover/Kext Folder, and revpatch=sbvmm with HWTarget to J185AP. I kept crsActiveConfig <key>0x285</key> from previous iMac19,1 config.plist.

Edited by Matgen84
  • Like 1

@Matgen84

I think that iMac20,1 does have T2 chip, so it has specific SecureBootModel value (j185).

SMBIOS lacking T2 doesn't need RestrictEvents to be notified of updates.

Reading your post I understand that you need RestrictEvents to get updates notifications, right?

  • Like 1
21 hours ago, miliuco said:

@Matgen84

I think that iMac20,1 does have T2 chip, so it has specific SecureBootModel value (j185).

SMBIOS lacking T2 doesn't need RestrictEvents to be notified of updates.

Reading your post I understand that you need RestrictEvents to get updates notifications, right?

 

@miliuco

I apologize: you're right, iMac20,1 have a T2 chip. 

 

In summary, using iMac20.1 without RestrictEvents.kext I get update notifications but the updates are full-size. After the system is updated, RestrictEvents.kext and the boot argument can be disabled because they are not required for normal Sonoma operation.

 

21 hours ago, LockDown said:

@Matgen84

revpatch=sbvmm would bypass it

 

@LockDown

 

Since June and first Sonoma Beta, I add revpatch=sbvmm to boot arguments. I don't try to remove it before updating the system.

  • Like 3
On 12/8/2023 at 9:05 PM, matxpa said:

@Slice

 

Hi

Here's what you want and what you need (BOOTX64.efi (and CLOVERX64.efi) after renaming the below efi components) of

 

 

r5157_a9b0654 (20231112-03h48) --> Wifi BCM 4360 works    CloverX64_r5157_20231112-03h48_a9b0654_XCODE15_RELEASE_master_local.efi

 

r5157_1914496 (20231116-19h14)   --> Wifi BCM 4360 works    CloverX64_r5157_20231116-19h14_1914496 _XCODE15_RELEASE_master_local..efi

 

r5157_bdb7a95 (20231116-22h10)  --> Wifi BCM 4360 works    CloverX64_r5157_20231116-22h10_bdb7a95_XCODE15_RELEASE_master_local.efi

 

What else ...

      ACPI/DSDT/Fixes           : FixAirport=TRUE

      Devices/FakeID             : WIFI=0x43a014e4

      KernelAndKextPatches BlockSkywalk = TRUE 

      RtVariables                    : CsrActiveConfig=0x803 (just F.Y.I)

 

     kexts/14                          : AMFIPass.kext, IOSkywalkFamily.kext, IO80211FamilyLegacy.kext and RestrictEvents.kext) --> latest OC or OCLP releases

     kexts/Other                    : (Std kexts) ALC LILU WEG SMC(Virtual and specifics Asus X75VB kexts for RJ45, WebCam, KBD & PAD) --> latest OC or others Dev. releases

     

 

NB in KernelAndKextPatches/KextsToPatch

I don't need (Disabled=YES) the patch from www.applelife.ru (Broadcom 94360 activation AirPort.BrcmNIC)
 

Regards

Anyway these versions is not working on my computer, hang just after BootKernelExtensions.kc in verbose.mode if BlockSkywalk set.

If unset then all is good.

But I can't understand why it works in QEMU. What is the difference? Same file and same treatments. Somehow related to  memory map which is different?

  • Like 1
6 hours ago, Slice said:

Test please this version with BlockSkywalk. I don't promise full success but I excluded some CPU panics.

CLOVERX64.efi 1.46 MB · 4 downloads

Just wonder why native Opencore randomly works.

Thanks but this new BOOTX64.efi/CLOVERX64.efi did NOT work as the following in my Z490 hackintosh:

1. Booting Sonoma 14.2.1 got early hang just after BootKernelExtensions.kc in verbose.mode if BlockSkywalk set.

2. Booting Sonoma 14.2 got KP as shown here:

Hope you can find the solution ASAP !

IMG_0251.jpg

Edited by jsl2000
  • Like 1
13 hours ago, Slice said:

Test please this version with BlockSkywalk. I don't promise full success but I excluded some CPU panics.

CLOVERX64.efi 1.46 MB · 4 downloads

Just wonder why native Opencore randomly works.

Thanks Slice

Same problem of previous version on AM5 platform

  • Like 1
  • Sad 1
On 12/22/2023 at 5:14 PM, Slice said:

Anyway these versions is not working on my computer, hang just after BootKernelExtensions.kc in verbose.mode if BlockSkywalk set.

If unset then all is good.

But I can't understand why it works in QEMU. What is the difference? Same file and same treatments. Somehow related to  memory map which is different?

Hi Slice.

 

With your latest CloverX64.efi I don't get stuck immed. (after +/- 10 debug lines) but I get stuck with a memory fault KP (as jsl200 reports)

Preboot.log ends with a "Closing log", with previous commits (after bdb7a95 which one works fine with IOSkywalkFamily boolean and kext) Preboot.log didn't end as this last one does.

 

...

31:603  0:000  Kernel quirks
31:603  0:000  ACPCL 1 AXCL 1 AXEM 1 AXFB 0 CSG 0 DIM 0 DLJ 1 DRC 0 DPM 0 EBTFF 0 EDI 0 IPBS 0 LKP 0 PNKD 1 PTKP 1 TPD 0 XPL 1 PCC 0
31:603  0:000  Closing log
 

Regards

  • Like 2
On 12/26/2023 at 12:58 PM, matxpa said:

Hi Slice.

 

With your latest CloverX64.efi I don't get stuck immed. (after +/- 10 debug lines) but I get stuck with a memory fault KP (as jsl200 reports)

Preboot.log ends with a "Closing log", with previous commits (after bdb7a95 which one works fine with IOSkywalkFamily boolean and kext) Preboot.log didn't end as this last one does.

 

...

31:603  0:000  Kernel quirks
31:603  0:000  ACPCL 1 AXCL 1 AXEM 1 AXFB 0 CSG 0 DIM 0 DLJ 1 DRC 0 DPM 0 EBTFF 0 EDI 0 IPBS 0 LKP 0 PNKD 1 PTKP 1 TPD 0 XPL 1 PCC 0
31:603  0:000  Closing log
 

Regards

Alas, even with the latest build, loading does not go further than this:

image.thumb.jpeg.2893d5e93350c37b4ec512b78a034f69.jpeg

preboot.log

Edited by MakAsus

Clover revision: 5156 (master, commit f6fcfeccb) starts to behave differently. Instead of stopping loading with an early kernel panic, it happens a little later.
image.thumb.jpeg.d7355b6e80606046c734ca0413c09257.jpeg
 

preboot.log

Edited by MakAsus
×
×
  • Create New...