How To Make Efi Bootloader |
|
|

Mar 19 2012, 04:23 AM




- Advanced Member
- Group: Developer
- Posts: 828
QUOTE (blackosx @ Mar 18 2012, 06:40 PM)

Hi STLVNUB
I thought I'd try your CloverBreweryTool on a fresh installation of 10.8 DP2.
So to report back to you, the first issue is /usr/local doesn't exist.
Man thats one big bug, not checking for /usr/local, my bad.
I use 'brew' a fair bit and just let it do its own thing.
Will have a look at it and anyone is welcome to enhance, improve on it.

and NO I don't have 24gig, It's only 16gig

Mar 19 2012, 04:30 AM




- Advanced Member
- Group: Developer
- Posts: 828
QUOTE (zhell @ Mar 19 2012, 03:41 AM)

Thanks STLVNUB.
I suppose that you have GCC installed in /opt/local/ia32 and /opt/local/x64 from a manual installation following Slice's instructions, whereas your script does not seem to install anything to this location.
I have also made some changes to give the user the option to install Homebrew into the current directory instead of /usr/local. I think this is very useful because some people don't want anything in /usr/local because it typically conflicts with binary installations.
It would be great if you could enhance your script such that it builds everything in the current directory.
I let brew install Gcc wherever it goes, but your idea has merit. will check out your script and see what I can come up with.

and NO I don't have 24gig, It's only 16gig

Mar 19 2012, 05:26 AM




- Advanced Member
- Group: Developer
- Posts: 828
Here's script with bug fix if brew was already installed.
Version bump to 0.2
[attachment=4192:CloverBr....command.zip]
edit: Now to try it myself on Clean system and go bug hunting...
This post has been edited by STLVNUB: Mar 19 2012, 05:27 AM

and NO I don't have 24gig, It's only 16gig

Mar 19 2012, 09:39 AM



- Member
- Group: Comrade
- Posts: 50
Thanks for the feedback, blackosx.
QUOTE (blackosx @ Mar 18 2012, 10:55 PM)

Thanks zhell, though I had to made a couple of tweaks to overcome a couple of problems:
- Add the CopyToClover folder from STLVNUB's CloverBreweryTool folder.
Oh yes, right; I have only modified the script. I apologize for not pointing this out.
QUOTE (blackosx @ Mar 18 2012, 10:55 PM)

- Add the following after the
else in function main() because I was getting an $BREW_PREFIX unbound variable error.
CODE
export BREW_PREFIX="/usr/local"
export PATH="$BREW_PREFIX/bin:$BREW_PREFIX/sbin:$PATH"
My bad. I have fixed this one issue and attached a new version, but I think it's better to follow STLVNUB's development efforts now.
CloverBreweryTool.command.zip ( 3.5K )
Number of downloads: 3QUOTE (blackosx @ Mar 18 2012, 10:55 PM)

I think this applies here too as I see this:
CODE
Building ... /Users/blackosx/Desktop/Clover_Scripts/Zhell/src/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [X64]
/bin/sh: /opt/local/x64/gcc: No such file or directory
Yep, I did not go further at this point.
GA-Z68MX-UD2H-B3-U1c | Core i7 2600 | 16GB DDR3-1600
Intel SSD 520 240GB + WDC WD-20EARX 2TB Fusion drive
Sapphire Radeon HD 6850 1024MB PEG | Atheros AR9380 Mini PCIe | Intel 82574L PCIe
OS X 10.8.2 | Chameleon 2.1svn | Clover EFI r897

Mar 19 2012, 11:20 AM



- Member
- Group: Comrade
- Posts: 50
QUOTE (STLVNUB @ Mar 19 2012, 06:26 AM)

Here's script with bug fix if brew was already installed.
Version bump to 0.2
[attachment=4192:CloverBr....command.zip]
edit: Now to try it myself on Clean system and go bug hunting...
Thanks, STLVNUB.
I have made a small correction (missing quotation mark) and fixed a bug that I had introduced.
New version attached.
It still stops at the point where it expected GCC in "/opt/local/x64"…
CloverBreweryTool_0.2.command.zip ( 3.52K )
Number of downloads: 7
GA-Z68MX-UD2H-B3-U1c | Core i7 2600 | 16GB DDR3-1600
Intel SSD 520 240GB + WDC WD-20EARX 2TB Fusion drive
Sapphire Radeon HD 6850 1024MB PEG | Atheros AR9380 Mini PCIe | Intel 82574L PCIe
OS X 10.8.2 | Chameleon 2.1svn | Clover EFI r897

Mar 20 2012, 04:17 PM




- Advanced Member
- Group: Developer
- Posts: 604
QUOTE (zhell @ Mar 19 2012, 09:39 AM)

but I think it's better to follow STLVNUB's development efforts now.
Yep I agree.
@STLVNUB, just to give another update from using your latest v0.2 script (with Zhell's correction). This time on a fresh installation of 10.7.3 with Xcode 4.3.1.
The process still stops at:
CODE
/bin/sh: /opt/local/x64/gcc: No such file or directory
For reference, here's a dump of the terminal from running the script.
terminal_output.txt ( 72.33K )
Number of downloads: 12
10.8.3 | Asus Maximus IV Gene-Z (BiosRepo PM patched BIOS 3402) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 8GB DDR3
Booting with either Clover UEFI r1707 | Chameleon r2189 | RevoBoot v1.5.39 | XPC 0.90.41

Mar 20 2012, 04:59 PM




- Advanced Member
- Group: Developer
- Posts: 604
Hi jadran
For ref, I'm still using the environment that I built using the instructions that Slice listed in
post #883 as this works great for me.
I'm not sure if your build steps from your
post #908 are more up to date, though I see the bottom of the post reads that slice added your scripts to the clover svn so I guess maybe I no longer need to try this? If that's the case then please ignore this post.
But I thought I'd try to follow them while I have a fresh installation of 10.7.3 and Xcode 4.3.1
Sorry if it's taken me a while to get round to test it.
Anyway, this is what happened.
QUOTE (jadran @ Mar 10 2012, 11:53 AM)

HOW TO COMPILE ia32/x64 CLOVER FROM ZERO:Get EDKII and Clover in ~/srccd ~
mkdir src
cd src
svn co
https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2 edk2
cd edk2
svn co
https://cloverefiboot.svn.sourceforge.net/s...t/cloverefiboot Clover
Copy configuration files from ~/src/edk2/Clover foldercp ~/src/edk2/Clover/build_rule.txt ~/src/edk2/Conf/
cp ~/src/edk2/Clover/tools_def_2.txt ~/src/edk2/Conf/tools_def.txt
cp ~/src/edk2/Clover/MdeModulePkg.dec ~/src/edk2/MdeModulePkg/MdeModulePkg.dec
Make BaseTools in ~/src/edk2make -C BaseTools/Source/C
Everything fine so far.
QUOTE
Make linux-cross-gcc ia32/x64 compiler for EDKII
cd Clover
./buildgcc.sh -x64 -all
./buildgcc.sh -ia32 -all
But here it stopped with the following:
CODE
- Building GCC chainload for x86_64-linux-gnu -
- gmp-5.0.2 extracted
- gmp-5.0.2 configure...
- gmp-5.0.2 make...
Error: gmp-5.0.2 not installed, check logs
That's as far as I got.
As I said, if this is now irrelevant then please ignore.
But while I'm happy to still use the setup I've got from Slice's instructions I'm also happy to help test yours and STLVNUB other build script suggestions.
10.8.3 | Asus Maximus IV Gene-Z (BiosRepo PM patched BIOS 3402) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 8GB DDR3
Booting with either Clover UEFI r1707 | Chameleon r2189 | RevoBoot v1.5.39 | XPC 0.90.41

Mar 20 2012, 06:21 PM



- Advanced Member
- Group: Developer
- Posts: 1,213
QUOTE (blackosx @ Mar 20 2012, 05:59 PM)

CODE
- Building GCC chainload for x86_64-linux-gnu -
- gmp-5.0.2 extracted
- gmp-5.0.2 configure...
- gmp-5.0.2 make...
Error: gmp-5.0.2 not installed, check logs
That's as far as I got.
I had the same error. Just running the buildgcc again - and the thing was working.
HW: Asus P8P67-M, Intel Core i5-2300, 4GB, XFX HD-567X-ZHH3 SW: SL, L, ML: Clover UEFI boot

Mar 21 2012, 12:01 AM




- Advanced Member
- Group: Comrade
- Posts: 159
QUOTE (dmazar @ Mar 20 2012, 07:21 PM)

I had the same error. Just running the buildgcc again - and the thing was working.
Yes blackosx, it works from second one, checks where in wrong position.
this one should work from first.
Will update and main proposal post:
buildgcc.sh.zip ( 3.11K )
Number of downloads: 6Thx for reply.

Mar 21 2012, 04:30 AM




- Advanced Member
- Group: Developer
- Posts: 5,579
Thanks, jadran.
I updated svn.

Mar 21 2012, 04:31 AM




- Advanced Member
- Group: Developer
- Posts: 828
QUOTE (blackosx @ Mar 21 2012, 02:17 AM)

Yep I agree.
@STLVNUB, just to give another update from using your latest v0.2 script (with Zhell's correction). This time on a fresh installation of 10.7.3 with Xcode 4.3.1.
The process still stops at:
CODE
/bin/sh: /opt/local/x64/gcc: No such file or directory
For reference, here's a dump of the terminal from running the script.
terminal_output.txt ( 72.33K )
Number of downloads: 12Hi blackosx, thanks for your input.
I'll have to setup a clean system myself and see whats going on, looks like bugs galore from here.
Won't be able to do that till weekend.
Hopefully will get it sorted out if time permits.

and NO I don't have 24gig, It's only 16gig

Mar 21 2012, 12:11 PM




- Advanced Member
- Group: Developer
- Posts: 604
QUOTE (jadran @ Mar 21 2012, 12:01 AM)

this one should work from first.
Hi jadran
Thanks for the revised script.
I had to rename your posted HFSPlus64.efi file to HFSPlus.efi and drop it in ~/src/edk2/Clover/HFSPlus/X64 to allow the
CODE
./cbuild.sh -gcc46 -x64 -release
command to complete.
Also, the
CODE
cd ~/src/edk2/Clover/rEFIt
command is no longer valid as Slice has changed the source code directory name to rEFIT_UEFI
Could you updating your steps to reflect these?
But with the above two tweaks I can confirm a successful compilation. (This time done on 10.6.8 with Xcode 3.2.3).
Thanks
10.8.3 | Asus Maximus IV Gene-Z (BiosRepo PM patched BIOS 3402) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 8GB DDR3
Booting with either Clover UEFI r1707 | Chameleon r2189 | RevoBoot v1.5.39 | XPC 0.90.41

Mar 21 2012, 01:48 PM




- Advanced Member
- Group: Developer
- Posts: 5,579
QUOTE (blackosx @ Mar 21 2012, 04:11 PM)

Also, the
CODE
cd ~/src/edk2/Clover/rEFIt
command is no longer valid as Slice has changed the source code directory name to rEFIT_UEFI
It was rEFIt_UEFI forever.

Mar 21 2012, 02:01 PM




- Advanced Member
- Group: Developer
- Posts: 604
QUOTE (Slice @ Mar 21 2012, 01:48 PM)

It was rEFIt_UEFI forever.
Ooops.. Sorry. My bad. Thanks for correcting me Slice.
10.8.3 | Asus Maximus IV Gene-Z (BiosRepo PM patched BIOS 3402) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 8GB DDR3
Booting with either Clover UEFI r1707 | Chameleon r2189 | RevoBoot v1.5.39 | XPC 0.90.41

Mar 21 2012, 02:08 PM




- Advanced Member
- Group: Comrade
- Posts: 159
QUOTE (blackosx @ Mar 21 2012, 01:11 PM)

Hi jadran
Thanks for the revised script.
I had to rename your posted HFSPlus64.efi file to HFSPlus.efi and drop it in ~/src/edk2/Clover/HFSPlus/X64 to allow the
CODE
./cbuild.sh -gcc46 -x64 -release
command to complete.
Also, the
CODE
cd ~/src/edk2/Clover/rEFIt
command is no longer valid as Slice has changed the source code directory name to rEFIT_UEFI
Could you updating your steps to reflect these?
But with the above two tweaks I can confirm a successful compilation. (This time done on 10.6.8 with Xcode 3.2.3).
Thanks
Will do, and will add extra step for hfsplus as you mentioned.

Mar 22 2012, 08:25 AM




- Advanced Member
- Group: Developer
- Posts: 604
@jadran
Yesterday when I tested your latest build steps using 10.6.8 with Xcode 3.2.3, I was successful in compiling Clover.
However, today I am following the exact same steps using 10.7.3 with Xcode 4.3.1 and the script stops at:
CODE
Error: gmp-5.0.4 not installed, check logs
Looking at ~/src I don't see the opt folder?
CODE
$ ls -al ~/src
total 64
drwxr-xr-x 6 blackosx staff 204 22 Mar 08:14 .
drwxr-xr-x+ 17 blackosx staff 578 22 Mar 08:08 ..
-rw-r--r--@ 1 blackosx staff 6148 22 Mar 08:21 .DS_Store
-rw-r--r--@ 1 blackosx staff 23616 10 Mar 11:29 HFSPlus64.efi
drwxr-xr-x 41 blackosx staff 1394 22 Mar 08:17 edk2
drwxr-xr-x 4 blackosx staff 136 22 Mar 08:16 tools
Running the
./buildgcc.sh -x64 -all command again, as dmazar suggested previously, doesn't change anything.
I've attached the terminal output for you to see.
[attachment=4210:Terminal...de_4.3.1.txt]Reason for edit: to remove TerminalOutput txt file to save attachment space This post has been edited by blackosx: Jul 22 2012, 09:19 AM
10.8.3 | Asus Maximus IV Gene-Z (BiosRepo PM patched BIOS 3402) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 8GB DDR3
Booting with either Clover UEFI r1707 | Chameleon r2189 | RevoBoot v1.5.39 | XPC 0.90.41

Mar 22 2012, 01:29 PM




- Advanced Member
- Group: Comrade
- Posts: 159
QUOTE (blackosx @ Mar 22 2012, 09:25 AM)

@jadran
I've attached the terminal output for you to see.
[attachment=4210:Terminal...de_4.3.1.txt]
hi blackosx, I don't have Xcode 4.3.1 please if U can paste this to terminal, and give me the output:
gcc -v
ls /usr/bin/gcc*
and U have logs from gmp/mpfr/mpc what does it tells?

Mar 22 2012, 01:51 PM




- Advanced Member
- Group: Developer
- Posts: 604
Hi jadran
CODE
$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
$ ls /usr/bin/gcc*
/usr/bin/gcc
QUOTE (jadran @ Mar 22 2012, 01:29 PM)

and U have logs from gmp/mpfr/mpc what does it tells?
Here's the ~/src/tools/gcc folder without the download
gcc.zip ( 14.32K )
Number of downloads: 3
10.8.3 | Asus Maximus IV Gene-Z (BiosRepo PM patched BIOS 3402) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 8GB DDR3
Booting with either Clover UEFI r1707 | Chameleon r2189 | RevoBoot v1.5.39 | XPC 0.90.41

Mar 22 2012, 01:58 PM




- Advanced Member
- Group: Comrade
- Posts: 159
QUOTE (blackosx @ Mar 22 2012, 02:51 PM)

Hi jadran
Here's the ~/src/tools/gcc folder without the download
gcc.zip ( 14.32K )
Number of downloads: 3hihihihi, there is no gnu gcc in Xcode 4.3 good. now I need to make proper check for Xcode 4.1
Check logs and you will see there is no gcc-4.2 any more. easy fix, but good find!

Mar 22 2012, 02:40 PM




- Advanced Member
- Group: Comrade
- Posts: 159
QUOTE (blackosx @ Mar 22 2012, 02:51 PM)

gcc
to blackosx, Slice: this one has a proper way for fixing Xcode 4.1 gcc paths (it should be done this way in beggining)
buildgcc.sh.zip ( 3.21K )
Number of downloads: 15