Jump to content

Clover General discussion


ErmaC
29,929 posts in this topic

Recommended Posts

Hi guys. Thanks for finding some of my bugs when I was away.

What's left ? 

4 hours ago, Slice said:

Next problem: stop after

0:710  0:001  Hiding entries with string Preboot

next line should be

0:744  0:002  === [ LoadDrivers ] =============================

but absent.

Is this problem still there ?

Link to comment
Share on other sites

@Slice

Sorry to bother you 

updated today (a few minutes ago) to latest build and all is smooth, build goes w/o issues

 

but just noticed a quite peculiar singularity never happened before, ( i'm actually not very present lately, so don't know if its due to latest changes into clover or something else)

Processing meta-data Architecture(s)  = X64
.Build target     = RELEASE
Toolchain        = XCODE8

Active Platform          = /Users/labyone/src/Clover/Clover.dsc
.....build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplechunklistlib.h not found in /Users/labyone/src/Clover/Library/OcAppleChunklistLib/OcAppleChunklistLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplechunklistlib.h not found in /Users/labyone/src/Clover/Library/OcAppleChunklistLib/OcAppleChunklistLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocdevicepathlib.h not found in /Users/labyone/src/Clover/Library/OcDevicePathLib/OcDevicePathLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocdevicepathlib.h not found in /Users/labyone/src/Clover/Library/OcDevicePathLib/OcDevicePathLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/occpulib.h not found in /Users/labyone/src/Clover/Library/OcCpuLib/OcCpuLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/occpulib.h not found in /Users/labyone/src/Clover/Library/OcCpuLib/OcCpuLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocrtclib.h not found in /Users/labyone/src/Clover/Library/OcRtcLib/OcRtcLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocrtclib.h not found in /Users/labyone/src/Clover/Library/OcRtcLib/OcRtcLib.inf
.build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocbootmanagementlib.h not found in /Users/labyone/src/Clover/Library/OcBootManagementLib/OcBootManagementLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocbootmanagementlib.h not found in /Users/labyone/src/Clover/Library/OcBootManagementLib/OcBootManagementLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocafterbootcompatlib.h not found in /Users/labyone/src/Clover/Library/OcAfterBootCompatLib/OcAfterBootCompatLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocafterbootcompatlib.h not found in /Users/labyone/src/Clover/Library/OcAfterBootCompatLib/OcAfterBootCompatLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplebootpolicylib.h not found in /Users/labyone/src/Clover/Library/OcAppleBootPolicyLib/OcAppleBootPolicyLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplebootpolicylib.h not found in /Users/labyone/src/Clover/Library/OcAppleBootPolicyLib/OcAppleBootPolicyLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/occompressionlib.h not found in /Users/labyone/src/Clover/Library/OcCompressionLib/OcCompressionLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/occompressionlib.h not found in /Users/labyone/src/Clover/Library/OcCompressionLib/OcCompressionLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/occonsolelib.h not found in /Users/labyone/src/Clover/Library/OcConsoleLib/OcConsoleLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/occonsolelib.h not found in /Users/labyone/src/Clover/Library/OcConsoleLib/OcConsoleLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocosinfolib.h not found in /Users/labyone/src/Clover/Library/OcOSInfoLib/OcOSInfoLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocosinfolib.h not found in /Users/labyone/src/Clover/Library/OcOSInfoLib/OcOSInfoLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplekeymaplib.h not found in /Users/labyone/src/Clover/Library/OcAppleKeyMapLib/OcAppleKeyMapLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplekeymaplib.h not found in /Users/labyone/src/Clover/Library/OcAppleKeyMapLib/OcAppleKeyMapLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocmisclib.h not found in /Users/labyone/src/Clover/Library/OcMiscLib/OcMiscLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocmisclib.h not found in /Users/labyone/src/Clover/Library/OcMiscLib/OcMiscLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocappleramdisklib.h not found in /Users/labyone/src/Clover/Library/OcAppleRamDiskLib/OcAppleRamDiskLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocappleramdisklib.h not found in /Users/labyone/src/Clover/Library/OcAppleRamDiskLib/OcAppleRamDiskLib.inf
.build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocmemorylib.h not found in /Users/labyone/src/Clover/Library/OcMemoryLib/OcMemoryLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocmemorylib.h not found in /Users/labyone/src/Clover/Library/OcMemoryLib/OcMemoryLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplediskimagelib.h not found in /Users/labyone/src/Clover/Library/OcAppleDiskImageLib/OcAppleDiskImageLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplediskimagelib.h not found in /Users/labyone/src/Clover/Library/OcAppleDiskImageLib/OcAppleDiskImageLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocrnglib.h not found in /Users/labyone/src/Clover/Library/OcRngLib/OcRngLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocrnglib.h not found in /Users/labyone/src/Clover/Library/OcRngLib/OcRngLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocxmllib.h not found in /Users/labyone/src/Clover/Library/OcXmlLib/OcXmlLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocxmllib.h not found in /Users/labyone/src/Clover/Library/OcXmlLib/OcXmlLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocfilelib.h not found in /Users/labyone/src/Clover/Library/OcFileLib/OcFileLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocfilelib.h not found in /Users/labyone/src/Clover/Library/OcFileLib/OcFileLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/occryptolib.h not found in /Users/labyone/src/Clover/Library/OcCryptoLib/OcCryptoLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/occryptolib.h not found in /Users/labyone/src/Clover/Library/OcCryptoLib/OcCryptoLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocstringlib.h not found in /Users/labyone/src/Clover/Library/OcStringLib/OcStringLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocstringlib.h not found in /Users/labyone/src/Clover/Library/OcStringLib/OcStringLib.inf
.build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplekeyslib.h not found in /Users/labyone/src/Clover/Library/OcAppleKeysLib/OcAppleKeysLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/include/library/ocapplekeyslib.h not found in /Users/labyone/src/Clover/Library/OcAppleKeysLib/OcAppleKeysLib.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/refit_uefi/cpp_unit_test/xbuffer_tests.h not found in /Users/labyone/src/Clover/rEFIt_UEFI/refit.inf
build: : warning: Module MetaFile [Sources] is missing local header!
    Local Header: /users/labyone/src/clover/refit_uefi/cpp_unit_test/xbuffer_tests.h not found in /Users/labyone/src/Clover/rEFIt_UEFI/refit.inf
. done!

are these missing headers warnings to be expected or...?

 

Link to comment
Share on other sites

4 minutes ago, Jief_Machak said:

Ok, I'm taking a break of refactoring and have started to have a look at Big Sur.

 

What's the plan ? Where can I help ? I see that there is new Oc modules in Library. Should we integrate the injecting function of OpenCore ?

Hey. Glad to here that.

With some kernel patches, Cover 5019 are able to boot till beta 3

Waiting others

Will be glad to make tests

 

Link to comment
Share on other sites

45 minutes ago, Jief_Machak said:

I read somewhere that the main problem is to boot Big Sur installer.

Which patch are needed to boot ?

 

Attached kernel patches screenshot (22-08-2020) update for BS Beta 5

 

Spoiler

1181971754_kukkukk2020-08-22.thumb.png.3ddf05c57e59d664994943986ef7def7.png

 

  • Like 1
Link to comment
Share on other sites

3 minutes ago, MICKHAEL said:

Thanks. Please attach plist. It's way better than screen

 

I know that, you're right. This screenshot came from Hackintosher-forum.de :) I've to create a plist file ASP

  • Like 1
Link to comment
Share on other sites

1 hour ago, Jief_Machak said:

I read somewhere that the main problem is to boot Big Sur installer.

Which patch are needed to boot ?

 

This time, attached plist file from kernel patches screenshot (22-08-2020) update for BS Beta 5
It seems to be the same that @MICKHAEL except 11.0 instead of 10.16

 

 

config_KernelAndKextPatchesONLY.plist

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

2 hours ago, Jief_Machak said:

Ok, I'm taking a break of refactoring and have started to have a look at Big Sur.

 

What's the plan ? Where can I help ? I see that there is new Oc modules in Library. Should we integrate the injecting function of OpenCore ?

The problem is kext injection. There are two possible ways.

1. As usual Clover injected all kexts into device tree and then patched kernel to accept them along with KC. It worked before with prelinkedkernel up to beta 3 but not worked with installer because it is not using prelinkedkernel. It uses KC (kernel collection).The task #1 is to understand why this way is no more working. I disassembled bigsur kernel and see differences compared to Catalina kernel but I still didn't understand a key difference. May be one new patch will resolve the problem.

2. OpenCore way is to inject kexts into KC structure in memory. This way is not required solving a puzzle just follow KC structure which is more or less understandable. The caveat is memory allocation which may occured not enough for our kexts. If we can inject one kext (FakeSMC) then the problem will be resolved because all other kexts can be placed into /Library/Extensions of installed system. Also desirable to inject a LAN kext which can be required for success installation.

I am sorry this moment I am not at home and can't provide more information what I already know. I can answer more questions at evening.

  • Like 8
Link to comment
Share on other sites

As I'm not a great disassembler guy, I'd go for OpenCore way which will have the advantage that THEY will maintain it ! I'm pretty sure I can find a way to integrate OpenCore without changing their sources or the structure, which means that we'll just have to "git pull" to keep be up to date. In that, I'm good :)

If we go that way, why would we have a memory problem and they don't ? Because Clover is bigger ?

Do you already know which is function the function that do injection in OpenCore, that should be compiled and integrated ?

 

No rush, answer this evening.

  • Like 5
Link to comment
Share on other sites

29 minutes ago, mifjpn said:

Thanks you for your effort.

I try to compile bulid-e4d1a40.

I select 7.buildall,but error occurs and stop compile.

I maked the directory /User/Alpha/CloverBootloader-master-e4d1a40.

Is there anything I should do?

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

/Users/alpha/CloverBootloader-master-e4d1a40/rEFIt_UEFI/Platform/../../CloverApp/Clover/NSWindowFix.h:9:9: fatal error: Cocoa/Cocoa.h: No such file or directory
    9 | #import <Cocoa/Cocoa.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [/Users/alpha/CloverBootloader-master-e4d1a40/Build/Clover/RELEASE_GCC53/X64/rEFIt_UEFI/refit/OUTPUT/Platform/Settings.obj] Error 1


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/alpha/CloverBootloader-master-e4d1a40/Build/Clover/RELEASE_GCC53/X64/rEFIt_UEFI/refit]


build.py...
 : error F002: Failed to build module
    /Users/alpha/CloverBootloader-master-e4d1a40/rEFIt_UEFI/refit.inf [X64, GCC53, RELEASE]

- Failed -
Build end time: 20:58:49, Sep.01 2020
Build total time: 00:00:13

 

 

Same here (Xcode compile failed) :cry:

 

Spoiler

[GENFW] BdsDxe
Trim --Vfr-Uni-Offset -o /Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/FV/Ffs/FC5C7020-1A48-4198-9BE2-EAD5ABC8CF2FBdsDxe/BdsDxe.offset --ModuleName=BdsDxe --DebugDir=/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/CloverEFI/OsxBdsDxe/BdsDxe/DEBUG
In file included from /Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/Platform/Settings.cpp:8078:
In file included from /Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/Platform/../../CloverApp/Clover/Clover-Bridging-Header.h:22:
/Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/Platform/../../CloverApp/Clover/NSWindowFix.h:9:9: fatal error: 'Cocoa/Cocoa.h' file not found
#import <Cocoa/Cocoa.h>
        ^~~~~~~~~~~~~~~
1 error generated.
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit/OUTPUT/Platform/Settings.obj] Error 1


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit]


build.py...
 : error F002: Failed to build module
    /Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/refit.inf [X64, XCODE8, RELEASE]

- Failed -
 

 

  • Like 1
Link to comment
Share on other sites

2 hours ago, Jief_Machak said:

I didn't touch CloverApp. So for once, shouldn't be me :P

 

Don't get me wrong, but you really did it  --> bc04c86 :rofl:. This commit broke the compilation of the application, so I restored it last night and now work as it should. Later (or maybe previous ones?... not sure) broke the compilation of the bootloader because the uefi enviroment somehow "include” CloverBootloader/CloverApp/Clover/Clover-Bridging-Header.h which does belong to a Cocoa application, which never happened before. Where this happen is behind me atm, but clearly Clover shouldn't search this path for headers nor import it/them. 

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

Ah ah. Ok, on me. But I don't see why we couldn't share that header. I don't know why it broke compilation, I thought I compiled and it worked. Maybe I didn't compile the right way.

I sent you a message a github. I currenty need that header to be sure to generate your SETTINGS_DATA in my serialize function. But this should be replace by a deserialize function in CloverApp instead of this raw reading of your version of SETTINGS_DATA.

If you don't have any time to do this, could we share that header, maybe with some #ifdef if needed?

Link to comment
Share on other sites

×
×
  • Create New...