|
发表于 2006-5-19 00:19:00
|
显示全部楼层
- cd /usr/src
- wget -c http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.16.tar.bz2
- tar jxvf linux-2.6.16.16.tar.bz2
- chown -R root.root linux-2.6.16.16
- find . -perm 777 -exec chmod 755 {} \;
- find . -perm 666 -exec chmod 644 {} \;
- cd linux-2.6.16.16
- make menuconfig
- make modules
- make modules_install
- make bzImage
- cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.16.16
- cp .config /boot/config-2.6.16.16
- echo 'image = /boot/vmlinuz-2.6.16.16' >> /etc/lilo.conf
- echo ' root = /dev/hda1' >> /etc/lilo.conf
- echo ' label = Linux-2.6' >> /etc/lilo.conf
- echo ' read-only' >> /etc/lilo.conf
- /sbin/lilo
- reboot
- mkdir /tmp/kernel-2.6.16.16
- cd /tmp/kernel-2.6.16.16
- mkdir boot
- cp /boot/*2.6.16.16* boot
- mkdir -p lib/modules
- cp -rv /lib/modules/2.6.16.16 lib/modules
- chown -R root.root .
- makepkg -l y -c n kernel-2.6.16.16-custom.tgz
复制代码 不要照抄,执行之前先检查,我可能有写错的地方。 |
|