HIP:PMP:Kernel

From Earlham CS Department
Revision as of 10:40, 10 July 2006 by Madunnh (talk | contribs)
Jump to navigation Jump to search

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

Copy downloaded files

  1. Mount developer image and create a local copy.
  2. Copy kernel and patch to /usr/src to local developer image
sudo cp linux-2.4.32.tar.bz2 dev_local/usr/src

chroot, Patch Kernel

  1. cd to dev_local
  2. chroot
sudo /usr/sbin/chroot .
  1. cd to /usr/src
  2. untar kernel
  3. patch kernel
patch -p0 < TS-2.5-2.4.23.patch

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