OpenBIOS: Difference between revisions

From OpenBIOS
Jump to navigation Jump to search
No edit summary
m (add /trunk to paths)
Line 44: Line 44:


You can check it out as follows:
You can check it out as follows:
   $ svn co svn://openbios.org/openbios/openbios-devel
   $ svn co svn://openbios.org/openbios/trunk/openbios-devel


if you want a specific revision: (see the Confirmed working svn revisions page)
if you want a specific revision:
   $ svn co svn://openbios.org/openbios/openbios-devel -r 4
   $ svn co svn://openbios.org/openbios/trunk/openbios-devel -r 463


or for checking out the source code for the OpenBIOS FCode Suite:
or for checking out the source code for the OpenBIOS FCode Suite:
   $ svn co svn://openbios.org/openbios/fcode-utils
   $ svn co svn://openbios.org/openbios/trunk/fcode-utils-devel


If your company installed a firewall that blocks the svn port (3690) you can also check out using the webdav frontend:
If your company installed a firewall that blocks the svn port (3690) you can also check out using the webdav frontend:


  $ svn co <nowiki>https://www.openbios.org/openbios-svn/openbios-devel</nowiki>
  $ svn co <nowiki>https://www.openbios.org/openbios-svn/trunk/openbios-devel</nowiki>


or
or


  $ svn co <nowiki>https://www.openbios.org/openbios-svn/fcode-utils</nowiki>
  $ svn co <nowiki>https://www.openbios.org/openbios-svn/trunk/fcode-utils</nowiki>


== Developer access ==
== Developer access ==


Access for developers is very similar to anonymous access. Just add your subversion username as follows when checking out the repository:
Access for developers is very similar to anonymous access. Just add your subversion username as follows when checking out the repository:
   $ svn co svn://username@openbios.org/openbios/openbios-devel
   $ svn co svn://username@openbios.org/openbios/trunk/openbios-devel


Subversion has commands very similar to CVS.
Subversion has commands very similar to CVS.
Line 69: Line 69:
= Source code browsing =
= Source code browsing =


You can also browse the [http://tracker.coreboot.org/trac/openbios/browser/openbios-devel OpenBIOS subversion repository] online.
You can also browse the [http://tracker.coreboot.org/trac/openbios/browser/trunk/openbios-devel OpenBIOS subversion repository] online.


= Snapshots =
= Snapshots =


There is currently no archive of snapshots available for OpenBIOS. You can use the [http://tracker.coreboot.org/trac/openbios/browser/openbios-devel source code browser] to download a ZIP archive of any revision.
There is currently no archive of snapshots available for OpenBIOS. You can use the [http://tracker.coreboot.org/trac/openbios/browser/trunk/openbios-devel source code browser] to download a ZIP archive of any revision.


Alternatively you can also download the [http://tracker.coreboot.org/trac/openbios/changeset/latest/openbios-devel?old_path=%2F&format=zip most current snapshot] directly.
Alternatively you can also download the [http://tracker.coreboot.org/trac/openbios/changeset/latest/trunk/openbios-devel?old_path=%2F&format=zip most current snapshot] directly.


= Building OpenBIOS =
= Building OpenBIOS =

Revision as of 08:07, 8 March 2009

OpenBIOS - Code Releases

Welcome to the OpenBIOS download page. Here you'll find releases of OpenBIOS components.

OpenBIOS v1.0 has been released. See the OpenBIOS issue tracker for milestones, tasks and open bugs.

OpenBIOS

Download the latest release of OpenBIOS including the Forth kernel and all of the IEEE 1275-1994 compliant Forth code for user interface, client interface and device interface.

Latest release version is: OpenBIOS 1.0 (2009-03-01)

NOTE: The FCODE utilities are no longer part of the main OpenBIOS distribution. Have a look at the FCODE suite if you are looking for toke and detok.

Status and use cases

OpenBIOS can be used directly as a boot ROM for QEMU system emulators for PPC, PPC64 and Sparc32. OpenBIOS/Sparc64 also exists but does not work very well yet. OpenBIOS/Sparc32 can boot Linux, NetBSD and OpenBSD. There have been attempts to get Solaris boot but so far this has not been successful. OpenBIOS/PPC can boot at least Linux. OpenBIOS/Sparc64 can load a kernel but it hangs or crashes early.

Coreboot can use OpenBIOS as a payload on x86.

Do not try to put OpenBIOS in a real boot ROM, it will not work and may damage your hardware!

Kernel

There is also an ancient stand-alone version of the OpenBIOS Forth kernel BeginAgain.

The last released stand-alone version is: BeginAgain 1.1 (2003-10-12).

NOTE: You should use the latest version of BeginAgain that is present in the complete OpenBIOS release above. It is much newer than BeginAgain 1.1 and it supports cross compiling and lots of other nifty features. BeginAgain 1.1 is here for educational purposes only: The core binary is only 6k on x86.

Development Environment

FCode Suite

To download the latest version of the FCode Suite, including an FCode detokenizer, an FCode tokenizer and the romheader utility, please go to the FCode Suite page.

Flashing

/dev/bios is obsolete and has been replaced by a new and better utility. Please download a coreboot snapshot and use the flashrom utility from coreboot-v2/util/flashrom.

Development Repository

OpenBIOS keeps its development tree in a Subversion repository. If you do not want to use Subversion, please have a look at the Snapshots below.

Anonymous access

You can check it out as follows:

 $ svn co svn://openbios.org/openbios/trunk/openbios-devel

if you want a specific revision:

 $ svn co svn://openbios.org/openbios/trunk/openbios-devel -r 463

or for checking out the source code for the OpenBIOS FCode Suite:

 $ svn co svn://openbios.org/openbios/trunk/fcode-utils-devel

If your company installed a firewall that blocks the svn port (3690) you can also check out using the webdav frontend:

$ svn co https://www.openbios.org/openbios-svn/trunk/openbios-devel

or

$ svn co https://www.openbios.org/openbios-svn/trunk/fcode-utils

Developer access

Access for developers is very similar to anonymous access. Just add your subversion username as follows when checking out the repository:

  $ svn co svn://username@openbios.org/openbios/trunk/openbios-devel

Subversion has commands very similar to CVS.

Source code browsing

You can also browse the OpenBIOS subversion repository online.

Snapshots

There is currently no archive of snapshots available for OpenBIOS. You can use the source code browser to download a ZIP archive of any revision.

Alternatively you can also download the most current snapshot directly.

Building OpenBIOS

First, select the build targets:

  $ ./config/scripts/switch-arch cross-sparc32 cross-sparc64 cross-x86 cross-ppc amd64

The cross- targets use cross compilers to build the images. In the above example, only amd64 target uses the native host compiler.

Finally the build command:

  $ make

or

  $ make build-verbose

OpenBIOS can even be cross-compiled on a host which is different type (big vs. little endian and 32 vs. 64 bits) from the target. At least Linux and OpenBSD hosts are known to work.

If your cross tools use different prefix from what the makefiles assume, the prefix can be overridden with:

  $ make build-verbose TARGET=powerpc-elf-

The OpenBIOS binaries (typically openbios-builtin.elf) can be found in obj- subdirectories. The Unix executable version (native only) is named openbios-unix.

More on Subversion