Kernel Upgrade

M.W. Chang mwchang
Mon May 17 11:55:58 PDT 2004


I had no problem following the old instructions to upgrade my COL 3.1
kernel to 2.4.22. Just remember to update your lilo/grub file after
building a new kernel. The script I adapted:



Alma J Wetzker wrote:

> I am still using a Caldera OL WS 3.1.1 as my main system.  (I like it.)  I am 
> thinking it is time to update from the 2.4.13 kernel and hoping it will solve 
> the stalls when I watch DVD's.  I ran through the SxS for updating kernels and 
> it seems a bit dated.  It refers to 'xconfig' and 'make xconfig' and other 
> stuff that doesn't work as root from a prompt.  I expect this to be a FOG 
> (Fscking Opportunity for Growth) but I didn't expect it to start so early.
> 
> Can some kind soul gently point me to some recent documentation or an entry 
> point into this process?  (I remember hearing that some of the config files 
> are in weird places or have different names with the Caldera distro.)
> 
> I have 2.4.22
> Athalon XP 2000
> 1.5 GB RAM
> GA-7ZXE Mainboard (KT133A with AGP)
> 
> TIA
> 
>      -- Alma
> 
> _______________________________________________
> Linux-users mailing list
> Linux-users at smtp.linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users
> 

-- 
  .~.    Might, Courage, Vision. In Linux We Trust.
 / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
  ^ ^    1:28am up 6 days, 6:23, 1 user, load average: 1.00, 1.00, 1.00
-------------- next part --------------
#!/bin/bash
# nm vmlinux | grep -v ... | sort > System.map

# apply any patches if needed
# cd /usr/src/linux
# cat /samba/linux/kernel/preempt-kernel-rml-2.4.18-4.patch | patch -Np1

# the config that made a kernel could always be salvage
# from /usr/src/linux/arch/i386/defconfig
# in the rpm linux-source-i386-2.4.2-11D.i386.rpm
# 
# the current config files is 
# cp /usr/src/linux/.config
#
# make mrproper to clean up (will delete .config)
#
# notes: block device LOOP must be compiled into the kernel
# make menuconfig

# security pathes for kernel
# http://www.openwall.com/linux/linux-2.4.18-ow0.tar.gz

ver="2.4.22"
ln -s /usr/src/linux-$ver /usr/src/linux
cd /usr/src/linux-$ver
ls
if make -j3 dep &&\
   make -j3 clean &&\
   make -j3 bzImage &&\
   make -j3 modules &&\
   make -j3 modules_install
then
  cp -f /usr/src/linux-$ver/arch/i386/boot/bzImage /boot/vmlinuz-$ver-xfs
  cp -f /usr/src/linux-$ver/System.map /boot/System.map-$ver-xfs
  cp -f /usr/src/linux-$ver/.config /boot/config-$ver-xfs
  cp -f /usr/src/linux-$ver/.config /home/scripts/config-$ver-xfs
  cd /lib/modules/$ver-xfs
  depmod -a
fi

# adjust /boot/grub/menu.lst, or /etc/lilo.conf
# to update grub : grep -v ^# /etc/grub.conf | grub --batch


More information about the Linux-users mailing list