Description

This page will contain the status and updates of the kernel for our version of LEON. The kernel is a version of uClinux that has been modified to work on our architecture.

Current Status

The kernel boots on Aqua. You can access the terminal through minicom on aqua2.arl.

4/13 The proc filesystem is up and running. Once the kernel starts, type "mount -t proc proc /proc" to activate it.

4/7: The serial port works! All console hacks are out.

3/24: Input can be given to command shell from file "/bin/cmds".

3/23: Forking processes and context switching has been tested.

3/22: Kernel boots(!) and sits at command shell prompt. Console output is read from address 0x40100000

Obtaining and Building Aquix

To obtain the kernel source, you must check it out of the CVS repository. To do this type:

setenv CVSROOT
cvs.doc.wustl.edu:/project/cvs-repository cvs co
liquid-repository/kernel

To build the kernel source, you must use the compilation toolkit provided. This can be accomplished by doing the following:

pkgadd leox

You may get a "MANPATH: Undefined variable." error, but you can ignore it.

To build the kernel, type:

make dep
make

Alternatively, if you don't need to build the entire kernel, but just want to make a new image from the romfs, type:

make image

This will create an images/ directory with the different kernel images. To change the romfs, just place your files into the romfs/ directory, and they will be included in the kernel image.

Testing under TSIM

To test your kernel image under the simulator before putting it on Aqua, make sure you have the leox package, then type:

tsim-leon images/image.elf
go 0x40000000

A ^C break will stop execution. You can get a list of commands by typing help.

Running on Aqua

Login to aqua2.arl and type "minicom" to connect to the serial port and bring up a terminal. Go to the Software Control Site and perform the Check Leon Status funciton. If you get a DONE response, you can then Reset Leon. Do a Load Program and select 0x40000000 as the memory address and "images/kernel.bin" as the program. Then execute the Start Leon function to start execution.

Building Programs for Aquix

Coming soon!