How to install and use your own kernel

First of all, talk with your supervisor. You probably don't have to install your own kernel and besides, he first has to set up a few things for you on the machines where you want to use your kernel.

  1. Install your kernel in your homedirectory in the subdirectory ~/src/linux/. Note that you can have multiple kernel-directories in ~/src/linux/, so you may create a softlink to the directory of the kernel you wish to install (e.g. ~/src/linux is a softlink to ~/src/linux-2.0.35-try1).
  2. Before compiling your kernel, make sure that there is a kernel with the same version installed in /usr/src/ (your supervisor usually does this for you). Prepare the right kernel with the prepkern command. It installs a link /usr/src/linux to the right kernel-source directory, e.g. /usr/src/linux-2.0.35/. Try prepkern -l to see the available kernels and then start prepkern kernel where kernel is the kernel you need.
  3. Now compile your own kernel with make bzImage. Don't forget that system header files are still included from /usr/src/linux/include/ and that you probably have to configure your kernel first.
  4. To install your kernel with lile on a machine, use the command inskern. It should install a kernel named "linux-username" (where username is your username) which can be booted from lilo. Your supervisor should make a correpsonding entry in the lilo-configurationfile.

CS-Department | Institut for Computer Systems | Research Group | Up ]
Last change: 20 July 1998
rauch@inf.ethz.ch