How to build OpenBIOS on Mac OS X: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<P><BR> | <P><BR> | ||
Apple | Apple's GCC on Mac OS X does not support the elf binary format. So compiling OpenBIOS on Mac OS X is not easy. Thankfully someone has already made a PowerPC cross compiler for Mac OS X that can compile OpenBIOS. Note: this tutorial was made with Mac OS 10.6. I suggest you use Mac OS 10.5 or higher when trying to build OpenBIOS. <BR> | ||
<BR> | <BR> | ||
<BR> | <BR> | ||
Line 15: | Line 13: | ||
4) Open the image file. <BR> | 4) Open the image file. <BR> | ||
<BR> | <BR> | ||
5) Open the | 5) Open the "AWOS Cross-Compiler for OS X" file on the newly mounted disk.<BR> | ||
<BR> | <BR> | ||
6) Select the | 6) Select the "PowerPC Support" check box only when given the option. | ||
<BR> | <BR> | ||
<BR> | <BR> | ||
Line 29: | Line 27: | ||
<BR> | <BR> | ||
<BR> | <BR> | ||
<FONT COLOR="#AA0000"><B><U>Part 2: Building OpenBIOS from source code</U><BR> | |||
Part 2: | |||
</B></FONT><BR> | </B></FONT><BR> | ||
1) Open the Terminal application.<BR> | 1) Open the Terminal application.<BR> | ||
Line 37: | Line 33: | ||
2) Change the current directory to the inside of the openbios-devel folder. <BR> | 2) Change the current directory to the inside of the openbios-devel folder. <BR> | ||
<BR> | <BR> | ||
3) | 3) Type this command in the terminal and watch the show: <BR> | ||
<BR> | <BR> | ||
./config/scripts/switch-arch cross-pcc && make build-verbose<BR> | ./config/scripts/switch-arch cross-pcc && make build-verbose<BR> | ||
Line 95: | Line 40: | ||
qemu-system-ppc -bios <path to binary>/openbios-qemu.elf.nostrip<BR> | qemu-system-ppc -bios <path to binary>/openbios-qemu.elf.nostrip<BR> | ||
<BR> | <BR> | ||
This tutorial was made using information available on 12/21/2017. If you encounter any problems, please report it to the openbios developer list: openbios@openbios.org. </P> | |||
This tutorial was made using information available on |
Revision as of 23:39, 21 December 2017
Apple's GCC on Mac OS X does not support the elf binary format. So compiling OpenBIOS on Mac OS X is not easy. Thankfully someone has already made a PowerPC cross compiler for Mac OS X that can compile OpenBIOS. Note: this tutorial was made with Mac OS 10.6. I suggest you use Mac OS 10.5 or higher when trying to build OpenBIOS.
Part 1: Installing the cross compiler on Mac OS X
1). Download the AWOS cross compiler: http://awos.wilcox-tech.com/downloads/AWOS-CC.bz2
2) Expand this bz2 file by double clicking on it.
3) Rename the file AWOS-CC to AWOS-CC.img.
4) Open the image file.
5) Open the "AWOS Cross-Compiler for OS X" file on the newly mounted disk.
6) Select the "PowerPC Support" check box only when given the option.
7) Continue with the installation until it is finished.
8) Add the new compiler's folder to the PATH variable. This is the command you use if you are in the Bash shell: export PATH=:/usr/local/ppcelfgcc/bin.
- Note: the above step will probably need to be repeated with each new session of the shell you start. It can be made permanent by altering the .bashrc file for the Bash shell. Check your shell's documentation for more information.
This should conclude installing the compiler.
Part 2: Building OpenBIOS from source code
1) Open the Terminal application.
2) Change the current directory to the inside of the openbios-devel folder.
3) Type this command in the terminal and watch the show:
./config/scripts/switch-arch cross-pcc && make build-verbose
To test out your newly created binary in qemu, use the -bios option:
qemu-system-ppc -bios <path to binary>/openbios-qemu.elf.nostrip
This tutorial was made using information available on 12/21/2017. If you encounter any problems, please report it to the openbios developer list: openbios@openbios.org.