Jump to content
30960 posts in this topic

Recommended Posts

Hi @Slice Thanks for your great job. I test last commit but Sonoma icon (png) doen't be detected !

 

Loader.cpp

 

Spoiler

XStringW OSIconName;

if (OSVersion.isEmpty()) {

OSIconName = L"mac"_XSW;

} else if (OSVersion.elementAt(0) == 14 ){

// Ventura.                                                       <----- Sonoma instead of Ventura ?

OSIconName = L"sonoma,mac"_XSW;

} else if (OSVersion.elementAt(0) == 13 ){

// Ventura

OSIconName = L"ventura,mac"_XSW;


 

XIcon.cpp file : no Sonoma entry

Spoiler

//other oses will be added below

"os_bigsur", //53 == ICON_BIGSUR

"os_monterey", //54 == ICON_MONTEREY

"os_ventura", //55 == ICON_VENTURA

""

};

const INTN IconsNamesSize = sizeof(IconsNames) / sizeof(IconsNames[0]);

 

5 hours ago, Slice said:
5 hours ago, mariosun said:

This is not a trick. busFreqValue remains the same. busFCvtn2tValue will not used anywhere.

So this method/patch is not possible to apply in clover bootloader?

because it could be useful also for other AMD cpu with an integrated igpu 

Edited by mariosun
17 minutes ago, chris1111 said:

@Slice complete Sonoma Icon Done Thanks B)

 


@chris1111 can't build last commit df8fd2 !
 

Spoiler

Copying $EDK_TOOLS_PATH/Conf/target.template
     to /Users/mathieu/src/Cloverbootloader/Conf/target.txt
Build environment: macOS-12.6.6-x86_64-i386-64bit
Build start time: 16:14:58, Jun.10 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.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 -
 

 

12 minutes ago, Matgen84 said:


@chris1111 can't build last commit df8fd2 !
 

  Reveal hidden contents

 

The build is not complete Wait for completed

 See

 

Screenshot 2023-06-10 at 10.32.33.png

 

 

  • Thanks 1
10 minutes ago, chris1111 said:

The build is not complete Wait for completed

 See

 

Screenshot 2023-06-10 at 10.32.33.png

 

 

 

Thanks. "Some checks haven’t completed yet" if I click Orange dot. But if I git clone a new repo before the task end, I can build with no issue. Strange, I don't understand why.

Now checking is finished. I can build from my previous repo. 

  • Like 1
5 minutes ago, Matgen84 said:

 

Thanks. "Some checks haven’t completed yet" if I click Orange dot. But if I git clone a new repo before the task end, I can build with no issue. Strange, I don't understand why.

Now checking is finished. I can build from my previous repo. 

Build Artifacts

image.png

 

No issue build Xcode Version 14.2 (14C18) Ventura 13.4

Update Build

:angel: 

Thanks @Matgen84

  • Like 1
20 hours ago, antuneddu said:

Hi @Slice what is the trick to make the Sonoma icon appear ? Clover revision: 5152 (master, commit 5a6e6e363)

 

screenshot0.thumb.png.43d4fb671a53838b30f41de02f465d4c.png

 

1248749842_Screenshot2023-06-09alle21_06_13.png.77238c0c103206f81c4c6b3c58f11a2d.png

 

Edit : Fixed for now by naming the os_sonoma icon to os_unkown 🙃

 

916046004_Screenshot2023-06-09alle21_26_29.png.197edc7023ec6e844facb05cfd8fe4ea.png

 

 


 

Fixed with Clover beta-edf8fd212 sonoma icon is now visible

  • Like 3
3 minutes ago, antuneddu said:

 

 

 

 

1528145392_Screenshot2023-06-10alle17_50_12.png.7d793a45a8e7d9d75c70004fb90c70bb.png

in my opinion they are fine, see if you like them os_sonoma_icns.zip

 

@chris1111   I make a coffee over :hysterical:

Thanks 🤣 Nescafe the best 502500630.png  :rofl: 

I will add to the theme now

  • Haha 1

Hoping for some help, I keep getting the Prohibitory Sign even with the Clover Boot set to Verbose.   The Preboot Log at the end says abort here are the last few lines in the log but is this because it can't find the kernel?  My System is Asus G51JX with first generation I7, i7-640M and Nvidia GTX 360M no Intel Graphics, almost exactly the same as the MacPro6,2.  Trying to launch Ventura and plan on patching with OCLP after I boot into Ventura.  Ventura already installed from another Mac.

 

Edited:

 

Ok I changed the SMBIOs to MacBookPro14,2 seem to get past the prohibitory sign but now it gets stuck at the last [EB] messages does not continue booting.

 

Is there a boot flag like in OC for example -No_Compat_Check or -amfi_get_out_of_my_way=1 not sure if this applies for Legacy Bios boot?

key><dict><key>UUID</key><string>09BCBDB5-AE3B-41A6-911B-EA9C1C4A3ED1</string></dict></dict></dict></array>
21:466  0:000  SetNvramVariable (efi-boot-device, 7C436110-AB2A-4BBB-A880-FE41995C9F82, 0x6, 216): -> writing new (Success)
21:466  0:000  Custom boot screen not used because entry has unset use graphics
21:466  0:000  DeleteNvramVariable (IOHibernateRTCVariables, 7C436110-AB2A-4BBB-A880-FE41995C9F82):
21:466  0:000  DeleteNvramVariable (boot-image, 7C436110-AB2A-4BBB-A880-FE41995C9F82):
21:466  0:000  Kernel quirks
21:466  0:000  ACPCL 1 AXCL 1 AXEM 0 AXFB 0 CSG 0 DIM 1 DLJ 1 DRC 0 DPM 0 EBTFF 0 EDI 0 IPBS 0 LKP 0 PNKD 1 PTKP 0 TPD 1 XPL 0 PCC 0
21:466  0:000  Closing log
21:466  0:000  OCABC: AllocPages 2 0xD6ABC000 (512) - Success
21:466  0:000  OCABC: AllocPages 2 0xDB9BA000 (1) - Success
21:466  0:000  OC: Supported boot capabilities 4
21:466  0:000  OCABC: AllocPages 1 0xDB208000 (1) - Success
21:466  0:000  OC: Opening file System\Library\Kernels\kernel with 1 mode gave - Not Found
21:466  0:000  OC: Opening file \973C73D1-A5D6-49DF-A0A1-88FECBEEAEC4 with 1 mode gave - Success
21:466  0:000  OC: Opening file \973C73D1-A5D6-49DF-A0A1-88FECBEEAEC4\System\Library\CoreServices\com.apple.Boot.plist with 1 mode gave - Not Found
21:466  0:000  OC: Opening file Library\Preferences\SystemConfiguration\com.apple.Boot.plist with 1 mode gave - Success
21:468  0:001  OC: Opening file \973C73D1-A5D6-49DF-A0A1-88FECBEEAEC4\System\Library\CoreServices\PlatformSupport.plist with 1 mode gave - Success
21:469  0:000  RestoreConfig called Param1=2
31:471  10:002  OCB: InternalEfiExit DA1D0218 - Aborted / Unsupported
31:471  0:000  StartImage failed : Aborted

 

Edited by oSxFr33k
  • Sad 1
On 6/12/2023 at 11:36 PM, oSxFr33k said:

Hoping for some help, I keep getting the Prohibitory Sign even with the Clover Boot set to Verbose.   The Preboot Log at the end says abort here are the last few lines in the log but is this because it can't find the kernel?  My System is Asus G51JX with first generation I7, i7-640M and Nvidia GTX 360M no Intel Graphics, almost exactly the same as the MacPro6,2.  Trying to launch Ventura and plan on patching with OCLP after I boot into Ventura.  Ventura already installed from another Mac.

 

Edited:

 

Ok I changed the SMBIOs to MacBookPro14,2 seem to get past the prohibitory sign but now it gets stuck at the last [EB] messages does not continue booting.

 

Is there a boot flag like in OC for example -No_Compat_Check or -amfi_get_out_of_my_way=1 not sure if this applies for Legacy Bios boot?

key><dict><key>UUID</key><string>09BCBDB5-AE3B-41A6-911B-EA9C1C4A3ED1</string></dict></dict></dict></array>
21:466  0:000  SetNvramVariable (efi-boot-device, 7C436110-AB2A-4BBB-A880-FE41995C9F82, 0x6, 216): -> writing new (Success)
21:466  0:000  Custom boot screen not used because entry has unset use graphics
21:466  0:000  DeleteNvramVariable (IOHibernateRTCVariables, 7C436110-AB2A-4BBB-A880-FE41995C9F82):
21:466  0:000  DeleteNvramVariable (boot-image, 7C436110-AB2A-4BBB-A880-FE41995C9F82):
21:466  0:000  Kernel quirks
21:466  0:000  ACPCL 1 AXCL 1 AXEM 0 AXFB 0 CSG 0 DIM 1 DLJ 1 DRC 0 DPM 0 EBTFF 0 EDI 0 IPBS 0 LKP 0 PNKD 1 PTKP 0 TPD 1 XPL 0 PCC 0
21:466  0:000  Closing log
21:466  0:000  OCABC: AllocPages 2 0xD6ABC000 (512) - Success
21:466  0:000  OCABC: AllocPages 2 0xDB9BA000 (1) - Success
21:466  0:000  OC: Supported boot capabilities 4
21:466  0:000  OCABC: AllocPages 1 0xDB208000 (1) - Success
21:466  0:000  OC: Opening file System\Library\Kernels\kernel with 1 mode gave - Not Found
21:466  0:000  OC: Opening file \973C73D1-A5D6-49DF-A0A1-88FECBEEAEC4 with 1 mode gave - Success
21:466  0:000  OC: Opening file \973C73D1-A5D6-49DF-A0A1-88FECBEEAEC4\System\Library\CoreServices\com.apple.Boot.plist with 1 mode gave - Not Found
21:466  0:000  OC: Opening file Library\Preferences\SystemConfiguration\com.apple.Boot.plist with 1 mode gave - Success
21:468  0:001  OC: Opening file \973C73D1-A5D6-49DF-A0A1-88FECBEEAEC4\System\Library\CoreServices\PlatformSupport.plist with 1 mode gave - Success
21:469  0:000  RestoreConfig called Param1=2
31:471  10:002  OCB: InternalEfiExit DA1D0218 - Aborted / Unsupported
31:471  0:000  StartImage failed : Aborted

 

 

@oSxFr33k

Try to remove -No_Compat_Check -amfi_get_out_of_my_way=1

set boot args: amfi=0x80

csr-active-config: 0x803

Reset NVRAM from Clover

 

You need also CryptexFixup.kext for this system, verry old system:angel: Arandale CPU

Good luck

CryptexFixup.kext.zip

 

  • Like 2
1 hour ago, chris1111 said:

 

Try to remove -No_Compat_Check -amfi_get_out_of_my_way=1

set boot args: amfi=0x80

csr-active-config: 03080000 

 

Reset NVRAM from Clover

 

You need also CryptexFixup.kext for this system, verry old system:angel: Arandale CPU

Good luck

CryptexFixup.kext.zip 9.09 kB · 0 downloads

 

 

Hi my friend @chris1111
 

 If I  don't mistaken:  car-active-config 0308000 is for Opencore.


Clover

<key>CsrActiveConfig</key>
<string>0x803</string>

 

2 hours ago, Matgen84 said:

 

Hi my friend @chris1111
 

 If I  don't mistaken:  car-active-config 0308000 is for Opencore.


Clover

<key>CsrActiveConfig</key>
<string>0x803</string>

 

Yes right post edited thanks @Matgen84

  • Like 1
20 minutes ago, chris1111 said:

Yes right post edited thanks @Matgen84

Since few month, a message can't be delete. So I can't remove my comment about csr-active-config for Clover. Sorry @chris1111

Edited by Matgen84
  • Thanks 1

Hi @Slice

When you will have anytime, could you explain chage in last commits about SMBIOS, into clover ex section. please. I don't understand if the actual section SMBIOS without underscore+os in my actual config.plist, will continue to work !

In the new sample config.plist, these entries (below) are not present:

<key>ExtendedFirmwareFeatures</key>
<string>0x00000008FDAFF066</string>
<key>ExtendedFirmwareFeaturesMask</key>
<string>0x00000008FFFFFF7F</string>

Thanks.

Edited by Matgen84
  • Like 2

@chris1111 amfi=0x80 and -amfi_get_out_of_my_way=1 have the same functionality, just a different wayof displaying it.

 

@oSxFr33k Instead of disabling AMFI, add AMFIPass.kext: https://github.com/5T33Z0/OC-Little-Translated/blob/main/14_OCLP_Wintel/AMFIPass.md

 

 -No_Compat_Check needs to stay enabled when trying to boot unsupported macOS with Clover. Only in OpenCore you can use a differnt strategy for that using Booter and Kernel Patches!

 

https://github.com/5T33Z0/Clover-Crate/blob/main/SMBIOS/README.md#workaround-macos-113-only

Edited by cankiulascmnfye
  • Like 3

Hi @chris1111

I can't build last commit 5f9ab55 🥲 (Monterey, XCODE 14,2)

 

Spoiler

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

* Clover build process took  3m36s  to complete...
undef: _OldChosenSmbios
undef: _SmbiosList
Undefined symbols for architecture x86_64:
  "_OldChosenSmbios", referenced from:
      ConfigPlistClass::getSMBIOS() const in CloverConfigPlistValidator_lto.o
  "_SmbiosList", referenced from:
      ConfigPlistClass::getSMBIOS() const in CloverConfigPlistValidator_lto.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
warning: Stale file '/Users/mathieu/src/tools/Validator/CloverConfigPlistValidator' is located outside of the allowed root paths.

warning: Stale file '/Users/mathieu/src/tools/Validator/CloverConfigPlistValidator.dSYM/Contents/Resources/DWARF/CloverConfigPlistValidator' is located outside of the allowed root paths.

/Users/mathieu/src/Cloverbootloader/Xcode/CloverConfigPlistValidator/CloverConfigPlistValidator.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.9, but the range of supported deployment target versions is 10.13 to 13.1.99. (in target 'CloverConfigPlistValidator' from project 'CloverConfigPlistValidator')
** BUILD FAILED **

 

29 minutes ago, Matgen84 said:

Hi @chris1111

I can't build last commit 5f9ab55 🥲 (Monterey, XCODE 14,2)

 

  Reveal hidden contents

 

Last commit as nothing to do  with CloverConfigPlistValidator'

 

It is the previous commit, See commit

 

But me No issue build Updating

Iam use Xcode Version 14.3.1 (14E300c) with SDK Xcode 14.2 (14C18)

  • Like 1
×
×
  • Create New...