[Date Prev][Date Next][Date Index]
[linux] Kernel Compilation and installation
This section briefly outlines the procedure for generating a bootable kernel
image from source code.
a.. Unpack the source code: tar xIvf linux-2.4.16.tar.bz -C /usr/src.
b.. make config and answer the list of questions with "y" to build an
option into the kernel, "n" to leave it out and "m" to build it as a module.
"?" gets you help on most options.
c.. Review the .config file found in the top level source directory and
change as necessary.
d.. make bzImage modules
e.. Become root and make modules_install
f.. Copy System.map to /boot/System-2.4.14.map
g.. Copy ~/arch/i386/boot/bzImage to /boot/bzImage-2.4.14 (or whatever
kernel version you are using).
h.. Edit /etc/lilo.conf and add a new entry for your new image, using one
of the existing ones as a template. Keep at least one of the old entries in
case the new kernel does not boot.
i.. Run /sbin/lilo, as root.
j.. Shutdown and reboot, be sure to select your new kernel at the boot
loader prompt, if you did not set it up to boot by default.
k.. Enjoy the new kernel!
Note that you can set the default kernel for the next reboot only by
re-running lilo with the -R switch followed by the appropriate image label.