|
|
发表于 2005-7-24 14:53:16
|
显示全部楼层
You can do a search in the Debian page for hints in compiling kernel in Debian.
Actually, you can use the following command as root to build your own kernel package:
#tar jxf linux-2.6.xxx
#cd linux-2.6.xxx
#make mrproper
#make menuconfig
#make-kpkg --append-to-version -custom kernel-image
Once finish, you will have a kernel-image-2.6.xxx-custom-*.deb in your parent directory. So:
#cd ..
Install this newly built kernel with dpkg -i,
#dpkg -i kernel-image-2.6.xxx-custom-*.deb
It should automatically update your menu.lst.
If you want to create a initrd, you should make sure you have installed the initrd-tools package.
The following steps are optional:
1. edit /etc/mkinitrd/modules to add the modules you want to load in the initrd
2. edit /etc/mkinitrd/mkinitrd.conf to make changes that suit your need.
If no changes are needed or you finish making changes, then you may create the initrd by:
#mkinitrd -o initrd.img kernel-version
Copy this initrd.img to /boot and make change to your menu.lst. |
|