Compaq ProLiant 1000 Installation and Configuration Guide for Linux and Apache - Page 27

Building an SMP kernel

Page 27 highlights

,QVWDOODWLRQ DQG &RQILJXUDWLRQ *XLGH IRU /LQX[ DQG $SDFKH :HE 6HUYHU RQ &RPSDT 3URVLJQLD DQG 3UR/LDQW 6HUYHUV 5: There were 256 colors chosen at a pixel resolution of 1024x768, and the video card was autoprobed. If another monitor is used, you should check the documentation included with the particular monitor. For particulars on XF86Setup or xf86config, please consult the authoritative documentation put together by the Xfree86 Project, at www.xfree86.org/3.3.3.1/QuickStart.html. Building an SMP kernel These instructions apply only to the 2.0.x series of Linux kernels. To build an SMP 2.2.x Linux kernel, it is necessary only to check off the SMP box when building the kernel configuration with 'make config', 'make menuconfig' or 'make xconfig' inside the /usr/src/linux directory. Note that, Compaq System Configuration parameters must be properly set. See the "APIC Settings (SMP)" section under "Compaq Hardware Basics", above. This guide is not intended to cover the specifics of building a Linux kernel. For background information on how to build a new Linux kernel, Caldera Systems (www.calderasystems.com/support/techguide/COL12-Kernel-Rebuild.html) provides excellent documentation. The /usr/src/linux/README file, distributed with all Linux kernel sources, also provides good background for kernel compilation. There are two basic stages to building an SMP kernel and getting it to run on a Compaq ProLiant or Prosignia server . The first stage is to build the kernel itself. You should refer to www.phy.duke.edu/brahma/smp-faq/smp-faq-3.html, which is the source for the documentation on building an SMP kernel. The information discussed here is derived from the referenced document, with some commentary and additions for clarification. To build an SMP kernel, it is necessary to install the sources for the Linux kernel. All of the distributions covered in this document include the kernel sources as an install package. A good place to install the kernel sources is in /usr/src/ where is a directory name which identifies the source, e.g. linux-2.0.36 or linux-2.1.121. Once the kernel sources are installed, it is necessary to create a soft link from /usr/src/linux to /usr/src/. This allows /usr/src/linux to indirectly refer to the particular source distribution you choose to use. Assuming that kernel Version 2.0.36 is used, do the following: [chstewart@tlaloc ~]# su # switches user context to root Password: [root@tlaloc chstewart]# cd /usr/src [root@tlaloc src]# rm -f linux # removes any old soft links from linux [root@tlaloc chstewart]# ln -s linux-2.0.36 linux # creates /usr/src/linux soft link to point to /usr/src/linux-2.0.36 [chstewart@tlaloc ~]# exit These steps are useful since they allow you to always compile from /usr/src/linux, and are necessary since compilation scripts refer to /usr/src/linux explicitly. Once this is done, change directories to /usr/src/linux, and edit the Makefile present there. There are two lines that can be changed, one of which is mandatory. First, a line reads: # SMP=1 It is necessary to remove the "#" indicator so that it is no longer commented out. Some Linux SMP documents also recommend that the comment indicator be removed from this line: # SMP_PROF=1 ECG513/0399

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40

,QVWDOODWLRQ DQG &RQILJXUDWLRQ *XLGH IRU /LQX[ DQG $SDFKH :HE 6HUYHU RQ &RPSDT 3URVLJQLD DQG 3UR/LDQW 6HUYHUV
5:
ECG513/0399
There were 256 colors chosen at a pixel resolution of 1024x768, and the video card was
autoprobed. If another monitor is used, you should check the documentation included with the
particular monitor. For particulars on XF86Setup or xf86config, please consult the authoritative
documentation put together by the Xfree86 Project, at
www.xfree86.org/3.3.3.1/QuickStart.html
.
Building an SMP kernel
These instructions apply only to the 2.0.x series of Linux kernels.
To build an SMP 2.2.x Linux
kernel, it is necessary only to check off the SMP box when building the kernel configuration with
‘make config’, ‘make menuconfig’ or ‘make xconfig’ inside the /usr/src/linux directory.
Note
that, Compaq System Configuration parameters must be properly set.
See the “APIC Settings
(SMP)” section under “Compaq Hardware Basics”, above.
This guide is not intended to cover the specifics of building a Linux kernel. For background
information on how to build a new Linux kernel, Caldera Systems
(
www.calderasystems.com/support/techguide/COL12-Kernel-Rebuild.html
) provides excellent
documentation. The /usr/src/linux/README file, distributed with all Linux kernel sources, also
provides good background for kernel compilation.
There are two basic stages to building an SMP kernel and getting it to run on a Compaq ProLiant
or Prosignia server . The first stage is to build the kernel itself. You should refer to
www.phy.duke.edu/brahma/smp-faq/smp-faq-3.html
, which is the source for the documentation
on building an SMP kernel. The information discussed here is derived from the referenced
document, with some commentary and additions for clarification.
To build an SMP kernel, it is necessary to install the sources for the Linux kernel. All of the
distributions covered in this document include the kernel sources as an install package. A good
place to install the kernel sources is in /usr/src/<kernel-source-identifier> where <kernel-source-
identifier> is a directory name which identifies the source, e.g. linux-2.0.36 or linux-2.1.121.
Once the kernel sources are installed, it is necessary to create a soft link from /usr/src/linux to
/usr/src/<kernel-source-identifier>. This allows /usr/src/linux to indirectly refer to the particular
source distribution you choose to use. Assuming that kernel Version 2.0.36 is used, do the
following:
[chstewart@tlaloc ~]# su # switches user context to root
Password:
[root@tlaloc chstewart]# cd /usr/src
[root@tlaloc src]# rm –f linux
# removes any old soft links
from linux
[root@tlaloc chstewart]# ln –s linux-2.0.36 linux
# creates
/usr/src/linux soft link to point to /usr/src/linux-2.0.36
[chstewart@tlaloc ~]# exit
These steps are useful since they allow you to always compile from /usr/src/linux, and are
necessary since compilation scripts refer to /usr/src/linux explicitly.
Once this is done, change directories to /usr/src/linux, and edit the
Makefile
present there. There
are two lines that can be changed, one of which is mandatory. First, a line reads:
# SMP=1
It is necessary to remove the “#” indicator so that it is no longer commented out. Some Linux
SMP documents also recommend that the comment indicator be removed from this line:
# SMP_PROF=1