Jump to content
ErmaC

Clover General discussion

21,408 posts in this topic

Recommended Posts

3 hours ago, D-an-W said:

Not working here (Using a fresh install of the "standard" Build_Clover.command)...

Hi, not sure Build_Clover.command can build latest source, but if you want you can try the new Clover on github by using the attached wrapper

 

 

 

Clover.zip

Edited by vector sigma
corrected

Share this post


Link to post
Share on other sites
Advertisement

Thanks for the file, it didn't complete the build however...

Building ... /Users/dan/src/CloverBootloader/Library/OpensslLib/OpensslLibNull.inf [X64]
[CC] DivU64x32
[CC] SetMem
[CC] InternalGetSpinLockProperties
"/nasm" -I/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/X64/ -I/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/X64/ -I/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/ -I/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/DEBUG/ -I/Users/dan/src/CloverBootloader/MdePkg/ -I/Users/dan/src/CloverBootloader/MdePkg/Include/ -I/Users/dan/src/CloverBootloader/MdePkg/Include/X64/ -f macho64 -o /Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/OUTPUT/X64/IoFifo.obj /Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/OUTPUT/X64/IoFifo.iii
/bin/sh: /nasm: No such file or directory
make: *** [/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/OUTPUT/X64/IoFifo.obj] Error 127


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic]


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib]


build.py...
 : error F002: Failed to build module
	/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf [X64, XCODE8, RELEASE]

- Failed -
Build end time: 21:18:46, Sep.05 2019
Build total time: 00:00:13

Dans-Mac-mini:~ dan$ 

 

Share this post


Link to post
Share on other sites
2 hours ago, D-an-W said:

Thanks for the file, it didn't complete the build however...


Building ... /Users/dan/src/CloverBootloader/Library/OpensslLib/OpensslLibNull.inf [X64]
[CC] DivU64x32
[CC] SetMem
[CC] InternalGetSpinLockProperties
"/nasm" -I/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/X64/ -I/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/X64/ -I/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/ -I/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/DEBUG/ -I/Users/dan/src/CloverBootloader/MdePkg/ -I/Users/dan/src/CloverBootloader/MdePkg/Include/ -I/Users/dan/src/CloverBootloader/MdePkg/Include/X64/ -f macho64 -o /Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/OUTPUT/X64/IoFifo.obj /Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/OUTPUT/X64/IoFifo.iii
/bin/sh: /nasm: No such file or directory
make: *** [/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/OUTPUT/X64/IoFifo.obj] Error 127


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic]


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib]


build.py...
 : error F002: Failed to build module
	/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf [X64, XCODE8, RELEASE]

- Failed -
Build end time: 21:18:46, Sep.05 2019
Build total time: 00:00:13

Dans-Mac-mini:~ dan$ 

 

 

23 minutes ago, STLVNUB said:

Looks like it can't find nasm, is it installed?

More than likely not set properly in script.

Yes it is a bug, the last. I made the buildme script to find the first worthy nasm to build Clover, but in ebuild.sh there's something apparently weird because looks for hard coded paths. Not sure why, but /opt/local/bin/nasm for example is preferred. Ok, the one shipped with macOS is bad, so I can assume someone wanted this for convenience.

/bin/sh: /nasm: No such file or directory

yep, no nasm at "/", that's the problem. Tomorow I'll fix it.

Share this post


Link to post
Share on other sites
32 minutes ago, Slice said:

Up to now revision 5071 on sf.net is the same as latest on github.

There was talk y e a r s ago, glad to see you guys finally saw the light.

Now to top it off, how about getting rid of patches and adjusting Clover

Go with the flow.

Share this post


Link to post
Share on other sites
9 hours ago, vector sigma said:

Could you, kindly, try a fresh repository without even the opt directory to see if all is fine now?

Just open buildme and select:


4) build all

on the fresh souce. thanks in advance

 

I've got always some issue. I don't understand why. Terminal file in attachment

Thanks

Test on Terminal

Share this post


Link to post
Share on other sites
1 hour ago, ellaosx said:

is it still ok to use sf and compile for now?

Yes, but need to upgrade edk2 to latest stable edk2-stable201908.

 

1242717681_Cloverr5071SFBuild.thumb.png.dcd3b1a0f9b44905f2826ea9e654f4b4.png

 

For those still wanting to compile Clover from SourceForge via svn

1.  Delete old ~/src/edk2 folder (but keep existing ~/src/opt and ~/src/tools folders)
2.  Download latest stable edk2-stable201908.zip & extract into ~/src, renaming it edk2
3.  Open terminal and type the following lines, followed by <Enter> to prepare build tools

cd ~/src/edk2
svn co svn://svn.code.sf.net/p/cloverefiboot/code/ Clover
source edksetup.sh
cp -R Clover/Patches_for_EDK2/* ./
make -C BaseTools

4.  Open terminal and type the following lines, followed by <Enter> to build Clover

cd ~/edk2/Clover
ebuild.sh -fr -D NO_GRUB_DRIVERS_EMBEDDED                  //builds Clover with boot6
ebuild.sh -fr -mc --no-usb -D NO_GRUB_DRIVERS_EMBEDDED     //builds Clover with boot7

5.  Open terminal and type the following lines, followed by <Enter> to build Clover installer pkg and/or iso

cd CloverPackage
./makepkg
make iso

 

If you want to build from scratch from CloverHackyColor GIT

1.  Open terminal and type the following lines, followed by <Enter> to download Clover source files.  Note:  no need to download edk2 :)...

mkdir ~/src // if src folder does not already exist in user's home folder
cd ~/src
git clone https://github.com/CloverHackyColor/CloverBootloader.git

2.  Install/build nasm

cd CloverBootloader
./buildnasm.sh

3.  Run @vector sigma's buildme script...

./buildme // Select option 4 (build all)

1230012398_Cloverr5072fromGIT.png.826c57746d81f9e4ec1cef6d14f49327.png

Share this post


Link to post
Share on other sites
1 hour ago, fusion71au said:

2.  Install/build nasm


cd CloverBootloader
./buildnasm.sh

3.  Run @vector sigma's buildme script...


./buildme // Select option 4 (build all)

 

why the need of #2, vector's builme script wont do it automatically?

Share this post


Link to post
Share on other sites

Working with GitHub is simpler.

About sf.net I will propose the follow sequence

1. cd ~

2. mkdir src

3. cd src

4. git clone https://github.com/CloverHackyColor/edk2.git --depth 1

SIC! There is already patched EDK2. depth 1 make your download times smaller.

5. cd edk2

6. make -C BaseTools/Source/C

7. svn co svn://svn.code.sf.net/p/cloverefiboot/code/ Clover

8. source edksetup.sh

9. cd Clover

10. ./buildnasm.sh

11. ./buildgettext.sh

12. ./buildmtoc.sh

13. ./ebuild.sh -fr -mc --no-usb -D NO_GRUB_DRIVERS_EMBEDDED   if you want BIOS_BLOCK_IO legacy boot7
14. ./ebuild.sh -fr -D NO_GRUB_DRIVERS_EMBEDDED

15. cd CloverPackage

16 ./makepkg

17. ./makeiso if you want

 

 

Share this post


Link to post
Share on other sites
6 hours ago, vector sigma said:

 

Yes it is a bug, the last. I made the buildme script to find the first worthy nasm to build Clover, but in ebuild.sh there's something apparently weird because looks for hard coded paths. Not sure why, but /opt/local/bin/nasm for example is preferred. Ok, the one shipped with macOS is bad, so I can assume someone wanted this for convenience.


/bin/sh: /nasm: No such file or directory

yep, no nasm at "/", that's the problem. Tomorow I'll fix it.

 

18 minutes ago, ellaosx said:

why the need of #2, vector's builme script wont do it automatically?

 

As @vector sigma mentioned in the post above yours, there is a bug/incompatibility in the buildme script at the moment ---> nasm not present error thrown up.  This should be fixed soon.

 

I found in my situation that running the buildnasm script before the buildme script worked to compile Clover successfully :).

 

PS Anyone notice "invalid option 5" when selecting to update Clover (discard local changes)?

buildme Beta, Clover v2.5k r5072 (SHA: ac97cf5)
Remote SHA: ac97cf5

1) build Clover
2) make pkg
3) make iso
4) build all
5) update Clover (discard local changes)
6) update Clover (stash local changes)
7) status
8) show diff
9) quit
Please enter your choice: 5
invalid option 5

 

Share this post


Link to post
Share on other sites
7 hours ago, Matgen84 said:

 

I've got always some issue. I don't understand why. Terminal file in attachment

Thanks

Test on Terminal

 

4 hours ago, fusion71au said:

As @vector sigma mentioned in the post above yours, there is a bug/incompatibility in the buildme script at the moment ---> nasm not present error thrown up.  This should be fixed soon.

 

I found in my situation that running the buildnasm script before the buildme script worked to compile Clover successfully :).

 

14 hours ago, D-an-W said:

Thanks for the file, it didn't complete the build however...


Building ... /Users/dan/src/CloverBootloader/Library/OpensslLib/OpensslLibNull.inf [X64]
[CC] DivU64x32
[CC] SetMem
[CC] InternalGetSpinLockProperties
"/nasm" -I/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/X64/ -I/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/X64/ -I/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/ -I/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/DEBUG/ -I/Users/dan/src/CloverBootloader/MdePkg/ -I/Users/dan/src/CloverBootloader/MdePkg/Include/ -I/Users/dan/src/CloverBootloader/MdePkg/Include/X64/ -f macho64 -o /Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/OUTPUT/X64/IoFifo.obj /Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/OUTPUT/X64/IoFifo.iii
/bin/sh: /nasm: No such file or directory
make: *** [/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic/OUTPUT/X64/IoFifo.obj] Error 127


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic]


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/dan/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/BaseLib/BaseLib]


build.py...
 : error F002: Failed to build module
	/Users/dan/src/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf [X64, XCODE8, RELEASE]

- Failed -
Build end time: 21:18:46, Sep.05 2019
Build total time: 00:00:13

Dans-Mac-mini:~ dan$ 

 

fixed! (at github)

Share this post


Link to post
Share on other sites
5 hours ago, Slice said:

Working with GitHub is simpler.

About sf.net I will propose the follow sequence

1. cd ~

2. mkdir src

3. cd src

4. git clone https://github.com/CloverHackyColor/edk2.git --depth 1

SIC! There is already patched EDK2. depth 1 make your download times smaller.

5. cd edk2

6. make -C BaseTools/Source/C

7. svn co svn://svn.code.sf.net/p/cloverefiboot/code/ Clover

8. source edksetup.sh

9. cd Clover

10. ./buildnasm.sh

11. ./buildgettext.sh

12. ./buildmtoc.sh

13. ./ebuild.sh -fr -mc --no-usb -D NO_GRUB_DRIVERS_EMBEDDED   if you want BIOS_BLOCK_IO legacy boot7
14. ./ebuild.sh -fr -D NO_GRUB_DRIVERS_EMBEDDED

15. cd CloverPackage

16 ./makepkg

17. ./makeiso if you want

 

 

I can propose to leave Clover outside edk2?

1) is easy using PAKAGES_PATH, patched module will leave separately in the workspace

2) your edk2 repository will be always untouched

3) Clover from git and Clover from svn can coexist in the same src dir

Share this post


Link to post
Share on other sites
2 minutes ago, vector sigma said:

I can propose to leave Clover outside edk2?

1) is easy using PAKAGES_PATH, patched module will leave separately in the workspace

2) your edk2 repository will be always untouched

3) Clover from git and Clover from svn can coexist in the same src dir

Mostly all issues with git-Clover already resolved so I will leave it in the new state.

I may propose to include sf-Clover into folder https://github.com/CloverHackyColor/edk2

and make git-svn synchronization between sf and github. I just don't know how to do this.

Share this post


Link to post
Share on other sites
16 minutes ago, Slice said:

Mostly all issues with git-Clover already resolved so I will leave it in the new state.

I may propose to include sf-Clover into folder https://github.com/CloverHackyColor/edk2

and make git-svn synchronization between sf and github. I just don't know how to do this.

 

10 minutes ago, vector sigma said:

no idea, never done...

 

Hi @Slice @vector sigma

 

Thanks for your great job.

 

I found this: http://manpages.ubuntu.com/manpages/cosmic/man1/svn2git.1.html  But I don't know if is interesting or a solution.

svn2git  -  is  a tiny utility for migrating projects from Subversion to Git while keeping
       the trunk, branches and tags where they should  be.  It  uses  git-svn  to  clone  an  svn
       repository  and  does  some  clean-up  to  make  sure  branches and tags are imported in a
       meaningful way, and that the code checked into master ends up being  what's  currently  in
       your svn trunk rather than whichever svn branch your last commit was in.

...

As of svn2git 2.0 there is a new feature to pull in the latest changes from SVN
          into your git repository created with svn2git.  This is a one way sync, but
          allows you to use svn2git as a mirroring tool for your SVN repositories.

 

Share this post


Link to post
Share on other sites
1 hour ago, D-an-W said:

@vector sigma thanks, compiled ok this time.

 

As I have to uncomment a line before compiling can I confirm I should use Option 7 so I don't loose the change?

It should, but it is not guaranteed your change will not generate conflicts with the incoming update ...which you will then have to solve.

Edited by vector sigma

Share this post


Link to post
Share on other sites
5 hours ago, vector sigma said:

Guys, I've updated the buildme wrapper at sourceforge to use CloverHackyColor/edk2.

You guys are going in reverse

Work with stock standard EDK2 and ADJUST Clover to work with it.

I compile Clover with NO patches and stock EDK2

You guys one step forward, ten steps back 

Its a joke.

Share this post


Link to post
Share on other sites

Eh wait, why my username changed to `sergey`, who is he? (Hah haa..) :lol: Oh my bad..

Screen Shot 2019-09-07 at 08.19.18.jpg

 

#EDIT: was bad prev. BuildEnv.sh, sorry.. solved already.

Screen Shot 2019-09-07 at 08.40.28.jpg

Edited by Badruzeus

Share this post


Link to post
Share on other sites
16 minutes ago, Badruzeus said:

Eh wait, why my username changed to `sergey`, who is he? (Hah haa..) :lol: Oh my bad..

Screen Shot 2019-09-07 at 08.19.18.jpg

because of https://github.com/CloverHackyColor/CloverBootloader/blob/master/Conf/BuildEnv.sh

I've added again to .gitignore but wont to be ignored Lol. Clean BaseTools, will go away

Share this post


Link to post
Share on other sites
5 minutes ago, vector sigma said:

because of https://github.com/CloverHackyColor/CloverBootloader/blob/master/Conf/BuildEnv.sh

I've added again to .gitignore but wont to be ignored Lol. Clean BaseTools, will go away

Nevermind, I just did `rm -rf Build && make -C BaseTools/Source/C clean` from WORKSPACE.

(or manually `nano ../Conf/BuildEnv.sh` to adapt my custom Path). Thanks anyway.

Share this post


Link to post
Share on other sites
1 minute ago, Badruzeus said:

Nevermind, I just did `rm -rf Build && make -C BaseTools/Source/C clean` from WORKSPACE.

(or manually `nano ../Conf/BuildEnv.sh` to adapt my custom Path). Thanks anyway.

Ok, was tracked in the cache and so not ignored,  anyway finally is removed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By STLVNUB
      Script file to clone Clover, Opencore (official and unofficial) repos
      Script will create link to itself in /usr/local/bin/bob
      Wouldn't hurt to check there are no "Bob"'s there, i "Hope" there isn't.
      Then you only need to type bob. and a parameter
      "n" for NDK repo, unofficial
      "a" for ACID repo, official
      "c" for CLOVER
      It also takes "all" for ALL, if your game
       
      Easier typing bob than.....usual stuff
      Enjoy
       
    • By TimothyF
      My PROBLEM: I followed the Plain Vanilla guide (https://hackintosh.gitbook.io/-r-hackintosh-vanilla-desktop-guide/) to a T in creating the OS X Catalina installer USB. I'm totally new to Hackintosh, and just want an Apple environment to Time Machine migrate my files and system from my ageing MacBook Pro. When I start to use the USB on the target PC (Dell Inspiron 3847 desktop), I ONLY see the Microsoft (which is the original OS, and on a SEPARATE Hard drive from where I want to install Mac OS), ZERO option for installing the OSX Catalina! Please SEE PICTURE link: https://imgur.com/a/FnLB2Q9   I'm a beginner, but I tried to google my problem. The answers were either incomplete, hard for me to understand and put into action, or were outdated and applied to older OSXs. I appreciate any help in diagnosing and solving this problem!   Clover USB specs OS installer used: Catalina (10.15) Clover revision: 5103 Kexts included: ATH9KFixup.kext AppleALC.kext Lilu.kext RealtekRTL8111.kext USBInjectAll.kext VirtualSMC.kext WhateverGreen.kext config.plist: see attached ------------------------------------------ Target Desktop specs: Dell Inspiron 3847 (64 bit) CPU: Intel Core i5-4460, 3.2 GHz, 4 cores Architecture: Haswell GPU: Intel HD 4600 Motherboard: Dell 088DT1 (version A01) Chipset: Intel H81 Install method: with USB, configured with Clover, 100% following Plain Vanilla guide for Desktops RAM: 12 GB, 2 slots Hard drive for installation: SATA HDD 4TB, by HGST LAN: RTL8111/8168/8411 WLAN: AR9565 (atheros) Audio: Realtek ALC661 (not 100% sure this is correct)   ------------------------------------ Attached:
      Screenshot of Clover installer not showing the Mac OSX option
      config.plist of my installer USB
      Clover_Install_Log.txt (not sure if this is relevant)   THANK YOU VERY MUCH!     config.plist
      Clover_Install_Log.txt
    • By Simon's InsaneMac
      Hi, I'm kind of lost when scrolling to Clover Configurator, so I decided to use an EFI from the web and just configure the most basic stuff. But that sadly didn't work, im always getting the attached screen IMG_0054.HEIC (and I don't know whether all the errors are listed, as I can't scroll). 
      Anyways I thought it'd be better to do a custom setup. Can anyone give me some help with what to choose in the settings? Here's my rig:
      i7 8700k
      Asus z370-G (Rog Strix)
      gtx 1060 6gb
      samsung ssd (SATA)
      WD hard drive
       
      Your help would be much appreciated!
    • By kylon
      A big thanks to wegface for teaching me a lot of things.
       
       
      Tested on Catalina 10.15.4 and Clover EFI 5104 (Catalina Patcher)
       
      Not Working:
      - realtek sd card reader (pm me if you have a fix)
       
      Notes:
      **CPU patches are disabled, if you are using a locked BIOS you must enable them**
       
      Clover EFI:
      - Install it in UEFI Mode and change your hdd partition table to GPT.
      - You will be able to install ANY OS in EFI mode, even if this pc does not support EFI at all! (No guide available for this)
       
      You will need:
      My unlocked BIOS (OPTIONAL) (here) Latest Clover config from CCE Bank (here) (asus k53sj-kylon) Rehabman Voodoo PS2 Controller (here) acidanthera AppleALC (here) acidanthera Lilu (here) acidanthera VirtualSMC (here) acidanthera SMCBatteryManager (here) acidanthera SMCLightSensor (here) acidanthera WhateverGreen (here) Mieze Realtek RTL8111 (here)
    • By Rohan20
      Opencore is running really really slow on Catalina 10.15.4. So It was running perfectly before I put the ssdt-pnlf for enabling Brightness control. it is running really slow and I verified my config with the sanity checker and its all correct. can someone please help. I am attaching my oc folder.

       
      https://www.dropbox.com/s/drkek0eaz19ina5/OC.zip?dl=0
       
×