Le Mardi 18 Novembre 2003 13:41, Stephen Liu a écrit :
> Hi all folks,
>
> I am running kernel
> (/usr/src/linux/Makefile)
>
> VERSION = 2
> PATCHLEVEL = 4
> SUBLEVEL = 20
> EXTRAVERSION = -gentoo-r7
>
> and prepared upgrading it to r8
>
> Kindly advise what will be the correct command line to upgrade kernel
> from Gentoo website to retain old kernel.  So there will be 2 kernels at
> boot for selection.  I use Grub.

1. emerge the new kernel, configure and build:
# emerge gentoo-sources
# cd /usr/src
# rm -f linux
# ln -s linux-2.4.20-gentoo-r8 linux
# cp linux-2.4.20-gentoo-r7/.config linux
# cd linux
# make oldconfig
... answer questions if any ...
# make clean dep
# make bzImage modules
# make modules_install
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.20-gentoo-r8

2. optinal: if you use alsa-driver
# cd /lib/modules
# touch 2.4.20-gentoo-r7/kernel/sound
(should be enough to protect r7's alsa modules, but it would be better to 
backup them)
# emerge alsa-driver

3. optional: if you use nvidia-kernel
# cd /lib/modules
# touch 2.4.20-gentoo-r7/video/nvidia.o
(should be enough to protect r7's nvidia modules, but it would be better to
# emerge nvidia-kernel

4. adda menu in grub.conf to handle the new kernel: copy and paste the lines 
for your other kernel and change whatever is needed.

hth

-- 
mathieu perrenoud

--
[EMAIL PROTECTED] mailing list

Reply via email to