Getting Started

Babylon kernel development requires some pieces of software you may not have on your system. In addition to your normal development tools you will need:

MIPS Utilities

The babylon kernel runs on top of the VMIPS R3000 simulator, which eliminates the need for any special hardware. To build VMIPS (and the babylon kernel) you will need a version of GCC that generates mips code. If you are running Linux, FreeBSD with Linux binary emulation, or Mac OS X you can download cross utilities here. If you want to use vmips on another platform you will need to download and compile your own cross-utilities. You can download the latest version of GNU binutils here and GCC 3.0.2 here.

CVS

Once you have a working vmips distribution you need to check out the babylon project from CVS. If you are unfamiliar with CVS you might want to read Open Source Development with CVS. The CVS home page also has a nice reference. If you are a CSUA member with an office account then you can checkout the babylon source as follows:


src > setenv CVS_RSH ssh
src > setenv CVSROOT screwdriver.csua.berkeley.edu:/mnt/tda/babylon/cvsroot
src > cvs checkout babylon

If you don't have an office account you will need to check the source out of anonymous cvs. With anonymous cvs you have read only access to the repository. You will need to use the diff program to mail your changes to babylon@csua.berkeley.edu. To use the anonymous cvs server do the following at the shell:


> cvs -d :pserver:anonymous@screwdriver.csua.berkeley.edu:/mnt/tda/babylon/cvsroot login
> cvs -z 9 -d :pserver:anonymous@screwdriver.csua.berkeley.edu:/mnt/tda/babylon/cvsroot checkout babylon

When prompted for a password just hit return.

Building

To build the kernel you will need to have vmips and the mips cross compiler in you path. On office machines type the following:


src > setenv PATH /mnt/tda/babylon/tools2/bin:${PATH}

To build the kernel:


src > cd babylon/
babylon > mkdir build
babylon > cd source
source > make

To run the kernel:


source > cp ../configuration/babylon.vmipsrc ~/.vmipsrc
source > vmips ../build/kernel/kernel.rom

Questions

If you have questions or comments please email babylon@csua.berkeley.edu


Last update $Date: 2004/06/26 04:00:01 $