On Tue, 26 Jun 2001, noel seq wrote:
I've got a kernel linux-2.4.1.tar.bz2 from pcq Mar 01. Is it a reliable version. How do i untar it.
It is reliable in most cases, except with some hard drives, dma settings may cause data corruption and loss. You should get the patch to atleat 2.4.2:
% cd /usr/src % [ -L linux ] && rm -f linux % tar Ixvf linux-2.4.1.tar.bz2 (or if you have a newer version of tar, that would be jxvf)
That will untar and uncompress it for you. If you want to know how to patch and compile as well, keep reading.
% mv linux linux-2.4.2 (name it 2.4.2 since we are going to patch it anyway) % ln -s linux-2.4.2 linux
Next, download patch for 2.4.2:
% wget http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.2.bz2 % cd linux % bzcat ../patch-2.4.2.bz2 | patch -p1
This will patch the kernel sources
now you're ready to configure and make:
% make menuconfig % make dep % make bzImage % make modules % make modules_install % depmod -ae 2.4.2 % cp arch/i386/boot/bzImage /boot/bzImage-2.4.2 % cp System.map /boot/System.map-2.4.2 % vi /etc/lilo.conf add new kernel entry % /sbin/lilo % reboot
That should do it for you.