Jump to content
30960 posts in this topic

Recommended Posts

2 hours ago, mariosun said:

@Slice thank you for listening

 

from here you can read all the study done  which helped to solve the problem in open core boot loader...and the idea was born reading in the clover boot loader code:

https://forum.amd-osx.com/threads/ryzen-7000-testing-table-of-contents.3716/post-25217

 

problem is audio crackling if CPU has an internal IGPU  (it does not improve also disabling igpu from motherboard bios) 

with that patch (Opencore)problem is solved in opencore and AMD am5 users could use Opencore with a perfect working audio

 

if you need clover log or others additional informations feel free to ask

 

 

 

Sorry for repeating but this patch is already in the current Clover->OpenCorePkg

https://github.com/CloverHackyColor/OpenCorePkg/blob/212c98ec954b7842696d5d1752ecefc184dfa3e0/Library/OcAppleKernelLib/CpuidPatches.c#L1422

 

Reposting here from pre-release sonoma.

 

Already running clover 5152 and using an older theme.   Made icon/badge for sonoma but is only displayed when named os_mac.icns.  As I recall, when named os_sonoma.icns clover showed an icon/badge with a question mark and not the icon/badge I made.

 

How to make clover show my icon/badge for sonoma?   Does the icon/badge need a specific name or is there a version table somewhere in the theme.plist or elsewhere that needs to be updated/edited?

 

Thanks for your reply.

  • Like 1
7 hours ago, mek21 said:

Reposting here from pre-release sonoma.

 

Already running clover 5152 and using an older theme.   Made icon/badge for sonoma but is only displayed when named os_mac.icns.  As I recall, when named os_sonoma.icns clover showed an icon/badge with a question mark and not the icon/badge I made.

 

How to make clover show my icon/badge for sonoma?   Does the icon/badge need a specific name or is there a version table somewhere in the theme.plist or elsewhere that needs to be updated/edited?

 

Thanks for your reply.

This is already fix on Clover Dev repos

If you Log In on Github account you can use this Artifacts

  • Like 1

@Slice 

Fix error Build Clover Pack

⬇︎

Spoiler

 

image.png

 

Fix from this commits, for some time this error on the Utils build has been present

Now I will exclude CCPV from build Package to follow this commits

Edit ** Done :wink_anim:

  • Like 2

i am getting this: 

Running edk2 build for CloverX64 using the command:

build --cmd-len=50000 -D NO_GRUB_DRIVERS_EMBEDDED -D USE_APPLE_HFSPLUS_DRIVER --conf=/opt/Source/Clover/Conf -D USE_LOW_EBDA -p Clover.dsc  -a X64 -b RELEASE -t GCC131 -n 13

 

Build environment: macOS-13.4.1-x86_64-i386-64bit

Build start time: 15:33:45, Jul.04 2023

 

 

 

build.py...

/opt/Source/Clover/Conf/tools_def.txt(2555): error 5000: Macro or Environment has not been defined

GCC131_ASLCC_FLAGS

Edited by tluck
21 hours ago, tluck said:

i am getting this: 

Running edk2 build for CloverX64 using the command:

build --cmd-len=50000 -D NO_GRUB_DRIVERS_EMBEDDED -D USE_APPLE_HFSPLUS_DRIVER --conf=/opt/Source/Clover/Conf -D USE_LOW_EBDA -p Clover.dsc  -a X64 -b RELEASE -t GCC131 -n 13

 

Build environment: macOS-13.4.1-x86_64-i386-64bit

Build start time: 15:33:45, Jul.04 2023

 

 

 

build.py...

/opt/Source/Clover/Conf/tools_def.txt(2555): error 5000: Macro or Environment has not been defined

GCC131_ASLCC_FLAGS

 I seems to forgot something. Look my new commit.

 

  • Like 1
  • 2 weeks later...
1 hour ago, Slice said:

I afraid x79 is not compatible/not supported by Sonoma.

I have such computer and Monterey is a top system for it.

.

 

1 hour ago, Slice said:

I afraid x79 is not compatible/not supported by Sonoma.

I have such computer and Monterey is a top system for it.

According to this guide it should work, but there is some steps in the guide im not getting i guess...

https://github.com/5T33Z0/OC-Little-Translated/tree/main/01_Adding_missing_Devices_and_enabling_Features/CPU_Power_Management/CPU_Power_Management_(Legacy)#re-enabling-acpi-power-management-in-macos-ventura

Edited by axonleo
  • 2 weeks later...

Hi @Slice

I can't build latest r5154 commit ee2b479 (Monterey 12.6.8/XCode 14.2).

Existing local repo
 

Spoiler

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.11.2 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 439, in RemoveDirectory
    RemoveDirectory(File, Recursively)
  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: 'X64'

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 -
 

 

Fresh local repo

 

Spoiler

[CC] AcpiDump
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib/OUTPUT/DxeSecurityManagementLib.obj] Error 1
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/OpenCorePkg/Library/OcDebugLogLibOc2Clover/OcDebugLogLibOc2Clover/OUTPUT/DebugHelp.obj] Error 1
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/OpenCorePkg/Library/OcSerializeLib/OcSerializeLib/OUTPUT/OcSerializeLib.obj] Error 1

 

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


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


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


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


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


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


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


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


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


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

- Failed -
 

 

Edited by Matgen84
  • Like 1
[SLINK] CLOVERX64
[DLINK] CLOVERX64
[MTOC] CLOVERX64
warning: no debug symbols in executable (-arch x86_64)
[GENFW] CLOVERX64

Generating DUETEFIMAINFVX64 FV
##
GUID cross reference file can be found at /Users/sergey/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/FV/Guid.xref

FV Space Information
DUETEFIMAINFVX64 [35%Full] 2752512 (0x2a0000) total, 982040 (0xefc18) used, 1770472 (0x1b03e8) free

- Done -
Build end time: 19:51:58, Aug.01 2023
Build total time: 00:02:28

  -> CloverX64-RELEASE_XCODE8-20230720202533-ee2b479-5154-dirty.efi
  adding: Users/sergey/src/CloverBootloader/Build/CloverX64-RELEASE_XCODE8-20230720202533-ee2b479-5154-dirty.efi (deflated 54%)
Compressing DUETEFIMainFv.FV ...
Encoding
Compressing DxeCore.efi ...
Encoding
Compressing DxeIpl.efi ...
Encoding
Generate Loader Image ...
Created /Users/sergey/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/FV/Efildr64
879+0 records in
879+0 records out
450048 bytes transferred in 0.005001 secs (89991602 bytes/sec)
Copy CloverEFI:
  -> boot6
Changing byte at 0xa9 of boot6 to show 6 as init message:
1+0 records in
1+0 records out
1 bytes transferred in 0.000073 secs (13699 bytes/sec)
  -> BOOTX64.efi
  -> CLOVERX64.efi
Copy Mandatory drivers:
  -> XhciDxe.efi
  -> EnglishDxe.efi
  -> ApfsDriverLoader.efi
  -> FSInject.efi
  -> EnglishDxe.efi
  -> GrubEXFAT.efi
  -> GrubISO9660.efi
  -> GrubNTFS.efi
  -> GrubUDF.efi
  -> CsmVideoDxe.efi
  -> EmuVariableUefi.efi
  -> NvmExpressDxe.efi
  -> OsxFatBinaryDrv.efi
  -> PartitionDxe.efi
  -> AudioDxe.efi
  -> Ps2MouseDxe.efi
  -> UsbKbDxe.efi
  -> UsbMouseDxe.efi
  -> AptioInputFix.efi
  -> ApfsDriverLoader.efi
  -> Fat.efi
  -> VBoxExt2.efi
  -> VBoxExt4.efi
  -> VBoxIso9600.efi
  -> VBoxHfs.efi
  -> AppleKeyFeeder.efi
  -> HashServiceFix.efi
  -> OpenRuntime.efi
Copy Applications:
  -> bdmesg.efi
  -> ControlMsrE2.efi
  -> Shell64U.efi
Done!

Generating BootSectors
make: Nothing to be done for `all'.
Done!

* Clover build process took  2m33s  to complete...
sergey@iMac CloverBootloader % clang -v
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
sergey@iMac CloverBootloader % 

 

  • Like 1
19 hours ago, Slice said:
[SLINK] CLOVERX64
[DLINK] CLOVERX64
[MTOC] CLOVERX64
warning: no debug symbols in executable (-arch x86_64)
[GENFW] CLOVERX64

Generating DUETEFIMAINFVX64 FV
##
GUID cross reference file can be found at /Users/sergey/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/FV/Guid.xref

FV Space Information
DUETEFIMAINFVX64 [35%Full] 2752512 (0x2a0000) total, 982040 (0xefc18) used, 1770472 (0x1b03e8) free

- Done -
Build end time: 19:51:58, Aug.01 2023
Build total time: 00:02:28

  -> CloverX64-RELEASE_XCODE8-20230720202533-ee2b479-5154-dirty.efi
  adding: Users/sergey/src/CloverBootloader/Build/CloverX64-RELEASE_XCODE8-20230720202533-ee2b479-5154-dirty.efi (deflated 54%)
Compressing DUETEFIMainFv.FV ...
Encoding
Compressing DxeCore.efi ...
Encoding
Compressing DxeIpl.efi ...
Encoding
Generate Loader Image ...
Created /Users/sergey/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/FV/Efildr64
879+0 records in
879+0 records out
450048 bytes transferred in 0.005001 secs (89991602 bytes/sec)
Copy CloverEFI:
  -> boot6
Changing byte at 0xa9 of boot6 to show 6 as init message:
1+0 records in
1+0 records out
1 bytes transferred in 0.000073 secs (13699 bytes/sec)
  -> BOOTX64.efi
  -> CLOVERX64.efi
Copy Mandatory drivers:
  -> XhciDxe.efi
  -> EnglishDxe.efi
  -> ApfsDriverLoader.efi
  -> FSInject.efi
  -> EnglishDxe.efi
  -> GrubEXFAT.efi
  -> GrubISO9660.efi
  -> GrubNTFS.efi
  -> GrubUDF.efi
  -> CsmVideoDxe.efi
  -> EmuVariableUefi.efi
  -> NvmExpressDxe.efi
  -> OsxFatBinaryDrv.efi
  -> PartitionDxe.efi
  -> AudioDxe.efi
  -> Ps2MouseDxe.efi
  -> UsbKbDxe.efi
  -> UsbMouseDxe.efi
  -> AptioInputFix.efi
  -> ApfsDriverLoader.efi
  -> Fat.efi
  -> VBoxExt2.efi
  -> VBoxExt4.efi
  -> VBoxIso9600.efi
  -> VBoxHfs.efi
  -> AppleKeyFeeder.efi
  -> HashServiceFix.efi
  -> OpenRuntime.efi
Copy Applications:
  -> bdmesg.efi
  -> ControlMsrE2.efi
  -> Shell64U.efi
Done!

Generating BootSectors
make: Nothing to be done for `all'.
Done!

* Clover build process took  2m33s  to complete...
sergey@iMac CloverBootloader % clang -v
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
sergey@iMac CloverBootloader % 

 

 

Hi @Slice
Strange, building work for you, not for me. Where am I to investigate to find a solution for my issue ?.

I forgot to tell that I use Python 3.11.2 (macOS 12.6.8/XCode 14.2). I can build Clover with GCC, and Opencore with my XCode Installation.

Edited by Matgen84
×
×
  • Create New...