ProjectOSX

Welcome Guest!

Returning User? Login here.

Want membership privileges? Register here.

67 Pages V  « < 46 47 48 49 50 > »   
Start a new topic Add Reply
> How To Make Efi Bootloader
STLVNUB
post Mar 19 2012, 04:23 AM
Post #941
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.




Azrock Z77 Pro3, G1610 AMD HD7750 Clover/Ozmosis
Toshiba A660-0MR00R I7-7740QM GT330M 8 Gig Clover

STLVNUB
post Mar 19 2012, 04:30 AM
Post #942
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.

Azrock Z77 Pro3, G1610 AMD HD7750 Clover/Ozmosis
Toshiba A660-0MR00R I7-7740QM GT330M 8 Gig Clover

STLVNUB
post Mar 19 2012, 05:26 AM
Post #943
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
Azrock Z77 Pro3, G1610 AMD HD7750 Clover/Ozmosis
Toshiba A660-0MR00R I7-7740QM GT330M 8 Gig Clover

zhell
post Mar 19 2012, 09:39 AM
Post #944
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.
Attached File  CloverBreweryTool.command.zip ( 3.5K ) Number of downloads: 3

QUOTE (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
zhell
post Mar 19 2012, 11:20 AM
Post #945
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"…

Attached File  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
blackosx
post Mar 20 2012, 04:17 PM
Post #946
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.
Attached File  terminal_output.txt ( 72.33K ) Number of downloads: 13
10.9.4 | Asus Maximus IV Gene-Z (PMpatched BIOS 3603) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 4GB DDR3
Booting with either Clover 2716 | Chameleon r2375 | RevoBoot v1.5.40 | Ozmosis 0894M
blackosx
post Mar 20 2012, 04:59 PM
Post #947
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 ~/src
cd ~
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 folder
cp ~/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/edk2
make -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.9.4 | Asus Maximus IV Gene-Z (PMpatched BIOS 3603) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 4GB DDR3
Booting with either Clover 2716 | Chameleon r2375 | RevoBoot v1.5.40 | Ozmosis 0894M
dmazar
post Mar 20 2012, 06:21 PM
Post #948
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
jadran
post Mar 21 2012, 12:01 AM
Post #949
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:Attached File  buildgcc.sh.zip ( 3.11K ) Number of downloads: 6


Thx for reply.
Slice
post Mar 21 2012, 04:30 AM
Post #950
Thanks, jadran.
I updated svn.
Пожалуйста, прочитайте ЧаВо!
i3-2120 GA-H61M-S1, Radeon HD6670, ALC887(VoodooHDA 2.8.4), OS⌘10.9.2, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
STLVNUB
post Mar 21 2012, 04:31 AM
Post #951
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.
Attached File  terminal_output.txt ( 72.33K ) Number of downloads: 13

Hi 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.





Azrock Z77 Pro3, G1610 AMD HD7750 Clover/Ozmosis
Toshiba A660-0MR00R I7-7740QM GT330M 8 Gig Clover

blackosx
post Mar 21 2012, 12:11 PM
Post #952
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.9.4 | Asus Maximus IV Gene-Z (PMpatched BIOS 3603) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 4GB DDR3
Booting with either Clover 2716 | Chameleon r2375 | RevoBoot v1.5.40 | Ozmosis 0894M
Slice
post Mar 21 2012, 01:48 PM
Post #953
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.
Пожалуйста, прочитайте ЧаВо!
i3-2120 GA-H61M-S1, Radeon HD6670, ALC887(VoodooHDA 2.8.4), OS⌘10.9.2, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
blackosx
post Mar 21 2012, 02:01 PM
Post #954
QUOTE (Slice @ Mar 21 2012, 01:48 PM) *
It was rEFIt_UEFI forever.

Ooops.. Sorry. My bad. Thanks for correcting me Slice.
10.9.4 | Asus Maximus IV Gene-Z (PMpatched BIOS 3603) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 4GB DDR3
Booting with either Clover 2716 | Chameleon r2375 | RevoBoot v1.5.40 | Ozmosis 0894M
jadran
post Mar 21 2012, 02:08 PM
Post #955
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.
blackosx
post Mar 22 2012, 08:25 AM
Post #956
@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.9.4 | Asus Maximus IV Gene-Z (PMpatched BIOS 3603) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 4GB DDR3
Booting with either Clover 2716 | Chameleon r2375 | RevoBoot v1.5.40 | Ozmosis 0894M
jadran
post Mar 22 2012, 01:29 PM
Post #957
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?
blackosx
post Mar 22 2012, 01:51 PM
Post #958
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
Attached File  gcc.zip ( 14.32K ) Number of downloads: 3
10.9.4 | Asus Maximus IV Gene-Z (PMpatched BIOS 3603) | i7-2600 3.40GHz | SSDT from Sam's ssdtPRGen.sh | Radeon 5770 1GB | 4GB DDR3
Booting with either Clover 2716 | Chameleon r2375 | RevoBoot v1.5.40 | Ozmosis 0894M
jadran
post Mar 22 2012, 01:58 PM
Post #959
QUOTE (blackosx @ Mar 22 2012, 02:51 PM) *
Hi jadran

Here's the ~/src/tools/gcc folder without the download
Attached File  gcc.zip ( 14.32K ) Number of downloads: 3

hihihihi, 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!
jadran
post Mar 22 2012, 02:40 PM
Post #960
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)
Attached File  buildgcc.sh.zip ( 3.21K ) Number of downloads: 17

67 Pages V  « < 46 47 48 49 50 > » 
Add Reply Start a new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members: