compiling a 2.6.x kernel
Collins Richey
erichey2
Mon Aug 16 14:09:14 PDT 2004
On Sun, 15 Aug 2004 16:56:02 +0800 "M.W. Chang" <mwchang at i-cable.com> wrote:
> Finally got sendmail working happily under under Novell SuSe 9.1 (which
> is using glibc-2.3.3 and linux-2.6.4).
>
> Wanting to try compiling a 2.6.8 kernel.
>
> How will it differ from my experiences with 2.4.26 kernel?
>
> # a script I copied from the list:
Script modifeid for 2.6.x
# I recommend you get this version - 2.6.8 has an NFS oops that is fixed
ver="2.6.8.1"
# you need this line to eliminate the old symlink
rm /usr/src/linux
ln -s /usr/src/linux-$ver /usr/src/linux
cd /usr/src/linux-$ver
ls
# use another make xxxconfig if you prefer
# if you prefer, copy in your 2.4 .config, then do make oldconfig first
# use the load existing configuration option in make config, then
# check every configuration option thoroughly
make menuconfig
# I presume you have an SMP system; if not, make -j2 ...
# make dep is no longer required
# make by itself or make all compiles everything, modules included
if make -j3 all modules_install
then
# don't really need the absolute path since you cd'd above
cp -f arch/i386/boot/bzImage /boot/vmlinuz-$ver
cp -f System.map /boot/System.map-$ver
cp -f .config /boot/config-$ver
cp -f .config /home/scripts/config-$ver
# note - kernel make procedure already does depmod
date
fi
HTH
/\/\
( CR ) Collins Richey
\/\/ Grant me the senility to forget the people I never liked anyway,
the good fortune to run into the ones I do, and the eyesight
to tell the difference.
More information about the Linux-users
mailing list