HIP:PMP:Kernel

From Earlham Cluster Department

(Difference between revisions)
Jump to: navigation, search
Line 34: Line 34:
=== Building Kernel ===
=== Building Kernel ===
-
 
+
First make a directory where modules will be copied into
 +
~$ cd /p0/hip/dev_local/usr/src/
 +
~$ sudo mkdir modules
 +
Then cd into /p0/hip/dev_local/usr/src/linux-2.4.23/
 +
* configuring kernel
 +
~$ sudo make menuconfig
 +
NB: most of the default settings for the TS-5600 would have been set by the patch, so configure the kernel the way you want and save it.
 +
* make dependables
 +
~$ sudo make dep
 +
* clean directories - remove files from previous builds
 +
~$ sudo make clean
 +
* make bzImage
 +
~$ sudo make bzImage
 +
* make modules
 +
~$ sudo make modules
 +
* install modules
 +
~$ sudo make modules_install INSTALL_MOD_PATH=/p0/hip/dev_local/usr/src/modules/
=== Config and Build Kernel ===
=== Config and Build Kernel ===
# cd to linux-2.4.23
# cd to linux-2.4.23

Revision as of 15:29, 10 July 2006

Contents

Making Directories

~$ cd /p0/hip/
~$ sudo mkdir archives  (to hold files required to build kernel)
~$ sudo mkdir dev_local (to hold a local copy of the image for building kernel)

Downloading Required Files

Developer CD/Image, Kernel & patch

Move all files to /p0/hip/archives

Preparing Files

Extract all downloaded files in /p0/hip/archives

~$ sudo mount -o loop /p0/hip/archives/ts-dev.img /p0/hip/mnt/
~$ sudo cp -dpr /p0/hip/mnt/* /p0/hip/dev_local/
~$ sudo umount /p0/hip/mnt/
~$ sudo cp -dpr /p0/hip/archives/linux-2.4.23 /p0/hip/dev_local/usr/src/
~$ sudo cp /p0/hip/archives/TS-2.5-2.4.23.patch /p0/hip/dev_local/usr/src/
~$ cd /p0/hip/dev_local/usr/src/
~$ sudo patch -p0 < TS-2.5-2.4.23.patch

If kernel is being patched correctly, you should see something like this...

patching file linux-2.4.23/.config
patching file linux-2.4.23/Documentation/Configure.help
patching file linux-2.4.23/Makefile
....
patching file linux-2.4.23/include/linux/blk.h
patching file linux-2.4.23/include/linux/major.h
patching file linux-2.4.23/include/linux/ts_sbc.h

Building Kernel

First make a directory where modules will be copied into

~$ cd /p0/hip/dev_local/usr/src/
~$ sudo mkdir modules

Then cd into /p0/hip/dev_local/usr/src/linux-2.4.23/

~$ sudo make menuconfig

NB: most of the default settings for the TS-5600 would have been set by the patch, so configure the kernel the way you want and save it.

~$ sudo make dep
~$ sudo make clean
~$ sudo make bzImage
~$ sudo make modules
~$ sudo make modules_install INSTALL_MOD_PATH=/p0/hip/dev_local/usr/src/modules/

Config and Build Kernel

  1. cd to linux-2.4.23
  2. run menuconfig
make menuconfig
  1. enable everything under General Setup > Power Management Support
  2. exit and save
  3. run make
make dep && make bzImage && make modules 
  1. make a modules directory, /usr/src/modules, and run make modules_install
make modules_install INSTALL_MOD_PATH=/usr/src/modules


External Links

Personal tools
Namespaces
Variants
Actions
websites
wiki
this semester
Toolbox