1. 安裝SRPM, kernel-.sec.rpm以及產生kernel source
# yum install fedora-rpmdevtools # fedora-buildrpmtree # yum install yum-utils # yumdownloader --source kernel # rpm -ivh kernel-.src.rpm # cd/rpmbuild # rpmbuild -bp --target $(uname -m) kernel-2.6.spec
2. 更改kernel的版本
# cd/rpmbuild/BUILD/kernel- # vi Makefile ... EXTRAVERSION = XXX (改成自己能識別的名稱) .../linux-
3. 清除config file以及用預設的config file
# make mrproper # cp /boot/config-.config # make oldconfig # make clean
4. 建立新的kernel與安裝kernel
# make bzImage modules modules_install # make install
5. 將新的kernel設為預設的開機kernel
# vi /boot/grub/grub.conf ... default=0 ...
6. 重新開機並確認版本
# reboot # uname -a
沒有留言:
張貼留言