[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gentoojp-users 969] 初めてのkernel upgrade



竹島です。

おかげさまでどうやらできたようです。

bash-2.05b$ uname -r
2.4.20-gentoo-r8
になれました。

以下は HDDから立ち上げた2.4.20-gentoo-r7で行ってます。

gentoo root # mount /dev/hda1 /mnt/
gentoo root # cd /mnt/boot/
gentoo boot # cp bzImage bzImage-r7
と今動いているカーネルを保存しておいて、

gentoo boot # cat /mnt/grub/grub.conf
# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 0
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=my gentoo
root   (hd0,0)
kernel (hd0,0)/boot/bzImage  root=/dev/hda3 hdb=ide-scsi

title=2.4.20-gentoo-r7
root   (hd0,0)
kernel (hd0,0)/boot/bzImage-r7  root=/dev/hda3 hdb=ide-scsi

と bzImageが駄目な場合 bzImage-r7 でたちあげられるように
保険をかけておきます


それから
gentoo root # cd /usr/src/

> >gentoo src # ls
> >  linux  linux-2.4.20-gentoo-r7  linux-2.4.20-gentoo-r8
> > となっていて 
> >  gentoo src # ls -l linux
> >  lrwxrwxrwx    1 root     root           22 Oct  1 16:41 linux -> linux-2.4.20-gentoo-r7
> > とリンクがかかってます。 
> >  gentoo src # ls linux/.config
> >  linux/.config
> >  なので
  
cd /usr/src
rm -f  linux
ln -s  linux-2.4.20-gentoo-r8  linux
cd  linux
/usr/bin/cp  /usr/src/linux-2.4.20-gentoo-r7/.config  ./
make  oldconfig
make  menuconfig

make dep && make clean bzImage modules modules_install
cp /usr/src/linux/arch/i386/boot/bzImage /mnt/boot

でいったようですが、 何様gentooでは kernel upgrade
は 初めてなので 傷があればどうかご指摘下さい。

_/_/_/_/_/
http://nakajin.dyndns.org/gentoo.htmlにgentooでopenoffice印刷書きました。;
HP     nakajin.dyndns.org
Mail   nakazintuyosi@xxxxxxxxxxxxxxxxxx