
Build Your Kernel
Before you begin
This chapter assumes you wish to compile your own Linux kernel for the JavaStation. It assumes you already
know how to compile Linux kernels in general, perhaps on PC, a SPARC server running Linux, or any of the
other Linux ports. If not, read the Kernel−HOWTO and the README file of your kernel source.
Compiling a kernel for a JavaStation is not much different than compiling a Linux kernel elsewhere. You just
need to know the right options to pick. In general, you're compiling for a Sun4M class architecture, and
enabling JavaStation−specific options. The following sections in this chapter will take you through the steps.
While it may be possible to compile the JavaStation −enabled kernel on alternate platforms, this HOWTO
assumes you do it on a Linux/Sparc based server running in 32−bit mode.
Make sure you use 32−bit mode
When compiling your own JavaStation−capable kernel, you need to make sure the Sun server you are
working on is set to 32−bit mode. So, if you're on an Ultra−class machine, be sure you first switch to 32−bit
mode before you begin compiling.
To check what mode you're in, do a uname −a. If it says "sparc", you're in 32−bit mode and don't have to
do anything. If it reports "sparc64", then you should perform a sparc32 bash first to switch to 32−bit
mode. A subsequent uname −a should reflect the change.
Supported Linux Kernel Versions
The kernel source revision you should use depends on which model of JavaStation you have.
Mr. Coffee support has worked since about kernel version 2.2.5, and definitely works out of the box with the
RedHat 6.0+/SPARC distribution kernels.
Krups support did not work well out of the box until the latter 2.3.x kernel cycle. Pete Zaitcev
<
[email protected]>
added Krups support in the early 2.3.x sequence, but the MMU changes tothe 32−bit SPARC kernel kept it from compiling cleanly until later on. The kernel is known to compile
cleanly with the Mar. 17 CVS kernel, and should compile cleanly with any 2.3.99pre3+ version kernel.
Krups support has been backported by Varol Kapton
<[email protected]>, and it is fully
supported in the 2.2.15−prepatch versions.
By the time this document gets widespread exposure, it is hoped that the 2.4.x stable kernel cycle will be
ready, at which time any 2.4.x kernel should compile cleanly with support for the entire JavaStation line.
If you can not get a kernel to compile, you should try the samples pointed to by this document.
Build Your Kernel 21
Comments to this Manuals