Installing Kernel 2.4.18 On Slackware 8.0
Synopsis:
I wanted to see if this would work in the first place. So far so good. Now maybe
I can run ext3 on my ext2 partitions and get a little more file system integrity.
Directions:
1) Download the complete source for
kernel 2.4.18 from http://www.kernel.org
Notes:
- Download the complete source by clicking the 'F' that appears to the
right of the listing for 2.4.18
- The download will take a while since it's about 35Meg.
2) Copy the source file to /usr/src
3) On my machine, I had
to remove a soft link with the command rm linux (I recreate this below
using the 'ln' command)
4) Untar the contents of the new linux kernel by typing: tar -xvzf linux-2.4.18.tar.gz
Note:
This uncompresses the source
files into the directory /usr/src/linux. Since this was previously a soft link
that
pointed to my current kernel source files (/usr/src/linux-2.4.5), I had to copy
the contents created in this
step into the directory /usr/src/linux-2.4.18 (which are completed in the steps
below)
5) Make a new directory within the /usr/src directory by typing mkdir linux-2.4.18
6) Enter that directory
and copy the files using these two commands:
cd linux-2.4.18
cp -ar /usr/src/linux/* . (don't forget the dot at the end)
7) Remove the linux directory
with these commands:
cd ..
rm linux -r (-r removes the files from any subdirectories).
8) Re-create the softlink
to the new kernel source directory:
ln /usr/src/linux-2.4.18 /usr/src/linux
9) Create a directory to
contain the list of modules by typing:
mkdir /lib/modules/2.4.18
Now, you should be able
to enter the linked directory and build a new kernel using the new source files
(starting with make mrproper and make menuconfig and so on).
For your reference...
make mrproper
make menuconfig
make dep
make clean
make bzImage
make modules
cat arch/i386/boot/bzImage
> /vmlinuz_[new]
mv /boot/System.map /boot/System.map.old
cp System.map /boot/System.map
I usually run the first
two steps and then let the build process run all at once by typing:
make dep;make clean;make bzImage;make modules