Jump to content

Build_Clover.command, another Script to build standard Clover (or customized)

Bootloader Clover UEFI Build_Clover.command

  • Please log in to reply
859 replies to this topic

#841
pico joe

pico joe

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 256 posts
  • Gender:Male

Thanks Micky1979 and all's

back to normal again

 

Attached File  Screen Shot 2017-02-13 at 9.36.37 PM.png   111.35KB   2 downloads

 

 

 



#842
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 5,779 posts
  • Gender:Male
  • Location:Moscow

not problem with the script, but  Slice deprecated the old way of patching dsdt in r4006, so clovergen-config need to be adjusted by commenting the line 604:

  // addBoolean(fixDict, CFSTR("NewWay_80000000"),    !!(s->FixDsdt & FIX_NEW_WAY)); //deprecated in r4006

 

path is ~/src/edk2/Clover/CloverPackage/utils/clover-genconfig/clover-genconfig.c  :wink_anim: 

Thanks, I think genconfig should be more revised.



#843
tluck

tluck

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,596 posts
  • Gender:Male
  • Location:NC, USA

yeah seem to be missing the definition for this in 4006/4007 in clover-genconfig.c

 

addBoolean(fixDict, CFSTR("NewWay_80000000"),    !!(s->FixDsdt & FIX_NEW_WAY));

 

undeclared FIX_NEW_WAY



#844
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 4,760 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe

Yep, is no longer in Clover


Thanks, I think genconfig should be more revised.

 
I made code to convert a TagPtr back to a propertylist_v1, may you can publish a config.plist already filled directly under IODeviceTree:/efi/platform:Settings?

(I've done it to to create kexts injector on the fly by reading two entries in a plist)



#845
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 5,779 posts
  • Gender:Male
  • Location:Moscow

Yep, is no longer in Clover


 
I made code to convert a TagPtr back to a propertylist_v1, may you can publish a config.plist already filled directly under IODeviceTree:/efi/platform:Settings?

(I've done it to to create kexts injector on the fly by reading two entries in a plist)

clover-genconfig (4009) does this or I don't understand what do you mean.



#846
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 4,760 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe

clover-genconfig (4009) does this or I don't understand what do you mean.

I mean that if all the Clover settings are stored in a TagPtr you can covert it in a XML directly in Clover and append a property list where you want in the IO registry, so that clover-genconfig become obsolete (if that can apply).
Anyway project attached, build it and pass him a path to a kext. It will store the Info.plist to a tagptr and convert back to a XML representation. + will create a kext Injector (printing its new Info.plist) using the IOKitPresonalities of the given kext. The Info.plist is ready to be loaded by the bootloader. (what I'm attemting to do is to read the IOKitPresonalities dictionary from the o.c.b.p ... or maybe from the config.plist ), creating an injector instead of patching the info.plist under KextsToPatch or similar for Enoch. The real purpose.

Create a propertylist_v1 from TagPtr:
char * XMLConvertTagPtrToPropertyList_v1(TagPtr aDict);

Crete a kext injector from TagPtr
char * XMLGenerateKextInjectorFromTag(TagPtr aDict, char *personalityName, char *OSBundleRequired);


#847
Slice

Slice

    InsanelyMac V.I.P.

  • Local Moderators
  • 5,779 posts
  • Gender:Male
  • Location:Moscow

There is no problem to save original config.plist inXML format.

There is a problem with GUI setting stored in C-language structures and arrays.



#848
badruzeus

badruzeus

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
  • Gender:Male
  • Location:INDONESIA
  • Interests:"What The Hack".

So, I'm running Build_Clover.command v4.2.8 on El Capitan 10.11.6 (15G1217), with XCode 8.2 Build 8C38. But, got "svn: invalid option: --trust-server-cert" issue, then can not continue to later steps except by removing "--trust-server-cert" from the script. << my idiotic method however; causes build *.pkg finished w/o rev number and just "r" letter (with another svn upgrade issue), though it then installed successfully and my 10.11.6 just boots as expected. How can I solve this issue? Thanks  :)

Attached Files



#849
philip_petev

philip_petev

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 167 posts
  • Gender:Male
  • Location:Haskovo, Bulgaria

@badruzeus Those shots don't help much. Please, post the full script log from Terminal.



#850
badruzeus

badruzeus

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
  • Gender:Male
  • Location:INDONESIA
  • Interests:"What The Hack".

@badruzeus Those shots don't help much. Please, post the full script log from Terminal.

Last login: Fri Feb 17 18:25:25 on console
Badruzeus-MacBook-Pro:~ badruzeus$ /Users/badruzeus/Build_Clover.command 

===============================================================================
Build_Clover script v4.2.8  is the latest version avaiable
                          <----------------------------------------------------
===============================================================================
By Micky1979 based on Slice, Zenith432, STLVNUB, JrCs, cecekpawon, Needy,
cvad, Rehabman, philip_petev, ErmaC

Supported OSes: macOS X, Ubuntu (16.04/16.10), Debian Jessie (8.4/8.5/8.6)
                          <----------------------------------------------------
Remote revision: 4012 Local revision: 0
                          <----------------------------------------------------
===============================================================================
Running from: 10.11.6
                          <----------------------------------------------------
===============================================================================
Xcode 8.2
Build version 8C38
                          <----------------------------------------------------
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
===============================================================================

                          <----------------------------------------------------

===============================================================================
Downloading edk2
                          <----------------------------------------------------
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   592  100   592    0     0    116      0  0:00:05  0:00:05 --:--:--   167
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.

edksetup.sh:
checking..available, continuing..
svn: 'tf' is not a valid --accept value
MdePkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
MdeModulePkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
CryptoPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
DuetPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
EdkCompatibilityPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
IntelFrameworkModulePkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
IntelFrameworkPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
OvmfPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
OptionRomPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
PcAtChipsetPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
ShellPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
UefiCpuPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
FatPkg:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.
BaseTools:
checking..available, continuing..
svn: invalid option: --trust-server-cert
Type 'svn help' for usage.

BaseTools before update was: r
now is: r
checking..

Sorry for my bad @philip_petev, I mean this.. after removing ~/src folder to the Trash (build from scratch).. but after "BaseTools before update was: .." message appears, it will repeat the process from the very beginning again & again. Thx.  :)



#851
philip_petev

philip_petev

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 167 posts
  • Gender:Male
  • Location:Haskovo, Bulgaria

Seems like svn-related problem. May I see the output of the following commands:

svn --version

and

which svn


#852
badruzeus

badruzeus

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
  • Gender:Male
  • Location:INDONESIA
  • Interests:"What The Hack".

 

Seems like svn-related problem. May I see the output of the following commands:

svn --version

and

which svn

 

Sure @philip_petev  :yes: 

Last login: Fri Feb 17 21:25:33 on ttys000
Badruzeus-MacBook-Pro:~ badruzeus$ svn --version
svn, version 1.5.5 (r34862)
   compiled Jan 16 2009, 22:06:07

Copyright (C) 2000-2008 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

Badruzeus-MacBook-Pro:~ badruzeus$ which svn
/usr/bin/svn
Badruzeus-MacBook-Pro:~ badruzeus$ 



#853
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 4,760 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe
svn, version 1.5.5 (r34862)
   compiled Jan 16 2009, 22:06:07 

v1.5.5 2009? Bro, something is really wrong with your system we are in 2017 and El Capitan is >= 2015, reinstall OS X!

PS surely this does not comes from Apple



#854
badruzeus

badruzeus

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
  • Gender:Male
  • Location:INDONESIA
  • Interests:"What The Hack".
svn, version 1.5.5 (r34862)
   compiled Jan 16 2009, 22:06:07 

v1.5.5 2009? Bro, something is really wrong with your system we are in 2017 and El Capitan is >= 2015, reinstall OS X!

PS surely this does not comes from Apple

 

@Micky1979: reinstall the whole OS? Seriously..  :rofl: uhmmb, not a bad idea, but.. since this is on my daily mach I'll do it later on another partition. Du no what's wrong, but I'll check it later after a clean install. Fyi, this issue also occurs while running the script on Ubuntu 16.04 as well  :) Thanks anyway  :thumbsup_anim:



#855
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 4,760 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe

Du no what's wrong, but I'll check it later after a clean install. Fyi, this issue also occurs while running the script on Ubuntu 16.04 as well  :) Thanks anyway  :thumbsup_anim:

Sorry @badruzues, a 8 year old command line cannot be finished to your system by itself. And Ubuntu 16.04 (Xenial Xerus) installed on my system does not come with svn installed  ^_^

For Ubuntu check for Updates using apt, but for OSX you should have done something wrong like install some deprecated packages, or may you have used some bad tool? (if you know which, you should have a back-up of the original stuff?)



#856
badruzeus

badruzeus

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
  • Gender:Male
  • Location:INDONESIA
  • Interests:"What The Hack".

Sorry @badruzues, a 8 year old command line cannot be finished to your system by itself. And Ubuntu 16.04 (Xenial Xerus) installed on my system does not come with svn installed  ^_^

Oops, my bad.. @Micky1979.. never got this issue caused by svn while using 10.12.x last month, unfortunately my new mach with gt520m has graphics problem on Sierra (Ah, OOT.. another thread). Uhmmb, but anyway.. thanks for figured out.  :)



#857
philip_petev

philip_petev

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 167 posts
  • Gender:Male
  • Location:Haskovo, Bulgaria

@badruzeus: Micky1979 is right:

Last login: Thu Feb 16 21:40:04 on ttys001
philip@iHack:~$ svn --version
svn, version 1.9.4 (r1740329)
   compiled Nov 15 2016, 20:35:27 on x86_64-apple-darwin15.0.0

Copyright (C) 2016 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.8 (compiled with 1.3.8)
  - handles 'http' scheme
  - handles 'https' scheme

The following authentication credential caches are available:

* Plaintext cache in /Users/philip/.subversion
* GPG-Agent
* Mac OS X Keychain

philip@iHack:~$ which svn
/usr/bin/svn
philip@iHack:~$

something is defintely wrong with your OS X installation. The result above is also from OS X 10.11.6. Maybe that can be fixed with (re)installing the Xcode command line tools:

xcode-select --install


#858
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 4,760 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe

The bad is that installed at:

Badruzeus-MacBook-Pro:~ badruzeus$ which svn
/usr/bin/svn
Badruzeus-MacBook-Pro:~ badruzeus$ 

just hope only this one, why I suggested (perhaps too hasty) to reinstalling. Definitely He can do what He likes with his System, sorry @badruzeus!!  :P

What I mean to say is that in 2008/2009 some https protocols, anyway required by the actual systems, not even existed..



#859
philip_petev

philip_petev

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 167 posts
  • Gender:Male
  • Location:Haskovo, Bulgaria

The bad is that installed at:

Badruzeus-MacBook-Pro:~ badruzeus$ which svn
/usr/bin/svn
Badruzeus-MacBook-Pro:~ badruzeus$ 
just hope only this one, why I suggested (perhaps too hasty) to reinstalling. Definitely He can do what He likes with his System  :P

 


Actually, the binary, located at /usr/bin is just a shortcut to the binary, located at /Applications/Xcode.app/Contents/Developer/usr/bin, so maybe if he reinstall the Command line tools the xcode-select --install way, he won't have to reinstall the whole OS.

 

Edit: or maybe just reinstall the whole Xcode app...



#860
badruzeus

badruzeus

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
  • Gender:Male
  • Location:INDONESIA
  • Interests:"What The Hack".

Actually, the binary, located at /usr/bin is just a shortcut to the binary, located at /Applications/Xcode.app/Contents/Developer/usr/bin, so maybe if he reinstall the Command line tools the xcode-select --install way, he won't have to reinstall the whole OS.

 

Edit: or maybe just reinstall the whole Xcode app...

 

Yap, many thanks @philip_petev && @Micky1979; after rolling back svn binary from Installer then re-install Command Line Tools I was able to build latest Clover rev as expected... I remember that recently some bad update / upgrade commands on terminal made svn on /usr/bin replaced with old version from somewhere.. Back to normal now, have a nice day everyone.   :)

Attached Files







Also tagged with one or more of these keywords: Bootloader, Clover, UEFI, Build_Clover.command


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users

© 2016 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy