Jump to content

Clover General discussion


ErmaC
29,869 posts in this topic

Recommended Posts

1 hour ago, cankiulascmnfye said:

 

I did that. It does not work. Same error

 

Do use CloverPKG to update ? Or only copy/past BOOTX64 and CLOVERX64 ?

For my part, I use an EFI folder on the desktop to update the two Clover files . Then I mount the ESP partion, delete the existing EFI folder and empty the trash. Finally, I copy the desktop folder to the EFI partition.
Because sometimes I have the same problem as you.

 

 

Link to comment
Share on other sites

6 hours ago, Matgen84 said:

 

Do use CloverPKG to update ? Or only copy/past BOOTX64 and CLOVERX64 ?

For my part, I use an EFI folder on the desktop to update the two Clover files . Then I mount the ESP partion, delete the existing EFI folder and empty the trash. Finally, I copy the desktop folder to the EFI partition.
Because sometimes I have the same problem as you.

 

 

 

I update it manually. I don't use Clover on my system's ESP I use a USB flash drive just for testing. I don't see how deleting the EFI folder could resolve issues seemingly related to Clover's way of handling Kernel Collections… weird

Link to comment
Share on other sites

On 9/1/2023 at 8:32 PM, matxpa said:

 

Yes I've already tried it since few days as you could see on this screenshot below (r5155 (2711170) local XCOD8 build)

 

Capturedecran2023-09-01a19_23_39.png.e55b6b618c0529a91d71fc46fe84f330.png

 

So try r5155 without BlockSkywalk in config.plist, with BlockSkywalk activated, with BlockSkywalk deactivated

 

And the reason why i would try this r5155 release is the BCM94360 Wifi card on this Asus Laptop, i suppose it's a legitimate reason.

 

  Reveal hidden contents

 

And to close this topic look in CloverBootloader/rEFIt_UEFI/Settings/ConfigPlist/Config_KernelAndKextPatches.h line code number 318

...

rEFIt_UEFI/Settings/ConfigPlist/Config_KernelAndKextPatches.h:318:    XBool dgetBlockSkywalk() const { return BlockSkywalk.isDefined() ? BlockSkywalk.value() : XBool(true); };

...

Regards

 

As I see it is better to set "false" by default?

  • Like 2
Link to comment
Share on other sites

12 hours ago, cankiulascmnfye said:

 

I update it manually. I don't use Clover on my system's ESP I use a USB flash drive just for testing. I don't see how deleting the EFI folder could resolve issues seemingly related to Clover's way of handling Kernel Collections… weird

 

Because sometimes, I have a bad behavior if I copy directly to ESP, BOOTX64 and CLOVERX64 files.

Link to comment
Share on other sites

On 9/5/2023 at 4:23 AM, Slice said:

As I see it is better to set "false" by default?

In my M5A hackintosh I can boot Sonoma beta 7 by legacy Clover 5154 with BlockSkywalk=False.

If it's True I'll get KP (unable to kext scan) during booting.

But in B85M-G hackintosh I got different results which bothered me up to now !

Screenshot 2023-09-06 at 20.41.37.png

  • Like 3
Link to comment
Share on other sites

Hi @Slice

 

I can't build latest commit 0ea0020 (Monterey 12.6.8/XCode 14.3)

 

Spoiler

CC] UefiShellInstall1CommandsLib
[CC] CopyMemWrapper
[CC] ModU64x32
/Users/mathieu/src/Cloverbootloader/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c:267:3: error: variable '__DebugCodeLocal' set but not used [-Werror,-Wunused-but-set-variable]
  DEBUG_CODE (
  ^
/Users/mathieu/src/Cloverbootloader/MdePkg/Include/Library/DebugLib.h:566:3: note: expanded from macro 'DEBUG_CODE'
  DEBUG_CODE_BEGIN ();          \
  ^
/Users/mathieu/src/Cloverbootloader/MdePkg/Include/Library/DebugLib.h:542:68: note: expanded from macro 'DEBUG_CODE_BEGIN'
#define DEBUG_CODE_BEGIN()  do { if (DebugCodeEnabled ()) { UINT8  __DebugCodeLocal
                                                                   ^
1 error generated.
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib/OUTPUT/BaseXApicLib.obj] Error 1


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

 

Link to comment
Share on other sites

16 minutes ago, Matgen84 said:

Hi @Slice

 

I can't build latest commit 0ea0020 (Monterey 12.6.8/XCode 14.3)

 

  Hide contents

CC] UefiShellInstall1CommandsLib
[CC] CopyMemWrapper
[CC] ModU64x32
/Users/mathieu/src/Cloverbootloader/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c:267:3: error: variable '__DebugCodeLocal' set but not used [-Werror,-Wunused-but-set-variable]
  DEBUG_CODE (
  ^
/Users/mathieu/src/Cloverbootloader/MdePkg/Include/Library/DebugLib.h:566:3: note: expanded from macro 'DEBUG_CODE'
  DEBUG_CODE_BEGIN ();          \
  ^
/Users/mathieu/src/Cloverbootloader/MdePkg/Include/Library/DebugLib.h:542:68: note: expanded from macro 'DEBUG_CODE_BEGIN'
#define DEBUG_CODE_BEGIN()  do { if (DebugCodeEnabled ()) { UINT8  __DebugCodeLocal
                                                                   ^
1 error generated.
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib/OUTPUT/BaseXApicLib.obj] Error 1


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

 

Choose XCODE14 instead of XCODE8.

  • Thanks 1
Link to comment
Share on other sites

@SliceIs it possible to declare in clover bootloader the kext order like it is possible to do in opencore

In clover bootloader i cant enable my Broadcom wifi in Sonoma adding the required kext and the bootarg (also disabling sip is a mandatory condition)

mandatory steps are in Opencore

secureboot disabled (ok also in clover)

disabling sip (ok also in clover)

bootarg amfi=0x80 (ok also in clover)

block com.apple.iokit.IOSkywalkFamily (no sure it is ok in clover

kexts order:

IOSkywalkFamily.kext

IO80211FamilyLegacy.kext

IO80211FamilyLegacy.kext/Contents/PlugIns/AirPortBrcmNIC.kext

(i put them in kexts/14 folder but i cant give the same opencore order)

 

any advice or info to be able to use this wifi also in your bootloader?

thank you

 

edit Clover log:

 

 

2023-09-08_06-46_CLOVERX64.efi.log

Edited by mariosun
clover log
  • Sad 1
Link to comment
Share on other sites

@Slice in latest commit fcead07

is there a particular reason for commenting out make nvram2 ?

Ask this because it make the build process fail when choosing

make pkg, build all or make Release

 

	[CXX] nvram2
#@cc -o nvram2 nvram2.c -framework CoreFoundation -framework IOKit -Wall >/dev/null
mv: rename nvram2 to /Users/labyone/src/CloverBootloader/CloverPackage/sym/utils/nvram2: No such file or directory
make[2]: *** [/Users/labyone/src/CloverBootloader/CloverPackage/sym/utils/nvram2] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [pkg] Error 2
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

 

Link to comment
Share on other sites

20 hours ago, LAbyOne said:

@Slice in latest commit fcead07

is there a particular reason for commenting out make nvram2 ?

Ask this because it make the build process fail when choosing

make pkg, build all or make Release

 

	[CXX] nvram2
#@cc -o nvram2 nvram2.c -framework CoreFoundation -framework IOKit -Wall >/dev/null
mv: rename nvram2 to /Users/labyone/src/CloverBootloader/CloverPackage/sym/utils/nvram2: No such file or directory
make[2]: *** [/Users/labyone/src/CloverBootloader/CloverPackage/sym/utils/nvram2] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [pkg] Error 2
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

 

Fixed.

Link to comment
Share on other sites

The reason is a long story. Look carefully.

When I compiled an utility (nvram2 for example) in Ventura using Clang from Xcode 14 I got a good working utility in Ventura. But... it will not work in Mojave.

I don't know what is changed but universal working utility can be created in Mojave using Clang from Xcode 11. It will work in Mojave and in Ventura.

So to create an Clover release I have to replace nvram2 utility by the one compiled under Mojave.

Have you any thought about the issue?

Link to comment
Share on other sites

5 hours ago, Slice said:

The reason is a long story. Look carefully.

When I compiled an utility (nvram2 for example) in Ventura using Clang from Xcode 14 I got a good working utility in Ventura. But... it will not work in Mojave.

I don't know what is changed but universal working utility can be created in Mojave using Clang from Xcode 11. It will work in Mojave and in Ventura.

So to create an Clover release I have to replace nvram2 utility by the one compiled under Mojave.

Have you any thought about the issue?

 

As it is now, building any tool related to the running system (hence supported xcode version)

will work when used running the same or newer system version, but fail when used on older,  just as you reported.

And any user building from source should have no problem, using it, if on the same or newer system, in legacy boot.

 

But also many user get Clover installer from repo archive,

and the only solution I can think of is :

To have it working on any system it should be built on the older one (you have) and stored as archive in the root of the repo.

then installed from within it into Utils folder (and eventually into the pkg)

 

 

The Release version Should have it in this section on the installer

and eventually installed into /usr/local (as was for ccpv)

ScreenShot.png.644a9b0fa94d2dde12db1bb79d55df73.png

 

( I still have a 10.13.6 running in case you want to test it built an older system)

 

OR

maybe if possible adding to the project some CFLAGS could solve?

CC=clang CFLAGS="-mmacosx-version-min=10.xxx
  LDFLAGS="-mmacosx-version-min=10.xxx" 

 

Link to comment
Share on other sites

23 hours ago, Matgen84 said:

Hi @Slice

I can't build Clover (Monterey 12.6.8, XCODE 14,3) Toolchain=XCODE14; Python 3.11.5

 

 

Clover_Build.log 2.88 kB · 2 downloads

Hi

 

 Add -Wno-unused-command-line-argument and -Wno-single-bit-bitfield-constant-conversion to both XCODE8_COMMON_FLAGS and XCODE14_COMMON_FLAGS in BseTools/Conf/tools_def.template

 

Regards

  • Like 1
Link to comment
Share on other sites

11 hours ago, Slice said:

Easy to check

cc -o nvram2 nvram2.c -framework CoreFoundation -framework IOKit -Wall -mmacosx-version-min=10.13

Will it work under Mojave?

Cannot say as I do not have any Mojave ready to test on

i have my doubts anyway, on 10.13 it crashes due to lack of IOMainPort support

Link to comment
Share on other sites

1 hour ago, LAbyOne said:

Cannot say as I do not have any Mojave ready to test on

i have my doubts anyway, on 10.13 it crashes due to lack of IOMainPort support

But the utility compiled under Mojave works in Ventura in despite of the contradiction.

Link to comment
Share on other sites

×
×
  • Create New...