13.07.2013 Views

The IBM eServer BladeCenter JS20 - IBM Redbooks

The IBM eServer BladeCenter JS20 - IBM Redbooks

The IBM eServer BladeCenter JS20 - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

To build your own zImage.initrd, follow these steps:<br />

1. Obtain the necessary kernel sources and development utilities for your<br />

distribution as appropriate. If the necessary packages are not installed, you<br />

may experience some errors, which cause your compilation to fail. Consult<br />

your distribution’s documentation to determine the names of these packages.<br />

2. With the packages installed, start by cleaning the source tree. This is a good<br />

procedure to ensure that there are no remnants of an old compile left hanging<br />

around. Here is an example of how to do this.<br />

# make mrproper<br />

3. With the source tree clean, configure your kernel as required. <strong>The</strong> preferred<br />

method to do this is to use either make menuconfig (text based) or make<br />

xconfig (graphical; requires an X server).<br />

Both Red Hat and SuSE have their default kernel options selected when<br />

menuconfig / xconfig is launched after having done a make mrproper. From<br />

either interface, select the desired options.<br />

4. After you configure the kernel, perform the compilation. Since RHEL 3 is<br />

based on the 2.4 kernel and SLES 9 is based on 2.6, the next steps are<br />

slightly different. Refer to Example 6-3 and Example 6-4 for each distribution.<br />

Example 6-3 Compiling a kernel in Red Hat<br />

# make dep<br />

# make clean<br />

# make zImage<br />

# make modules<br />

# make modules_install<br />

# make install<br />

Example 6-4 Compiling a kernel in SuSE<br />

# make<br />

# make modules_install<br />

# make install<br />

108 <strong>The</strong> <strong>IBM</strong> Eserver <strong>BladeCenter</strong> <strong>JS20</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!