Sometimes, we need to configure our own kernel to fulfill our need. Below are step by step on rebuilding kernel on Ubuntu Breezy 5.10
(1) Make sure you have build-essential, bin86, and kernel-package package installed on your system. If no, please install with this command
apt-get install build-essential bin86 kernel-package
(2) Make sure you have development package libncurses-dev installed on your system. If no, please install with this command
apt-get install libncurses-dev
(3) Make sure you have package linux-tree installed on your system. If no, please install with this command
apt-get install linux-tree-2.6.8.1
(4) Go to the /usr/src directory
cd /usr/src
(5) Extract your linux source
tar jxf linux-source-2.6.8.1.tar.bz2
(6) Create soft link
ln -s linux-source-2.6.8.1 linux
(7) Go to /usr/src/linux directory
cd /usr/src/linux
(8) Copy config file
cp /boot/config-2.6.8.1-3-688 .config
(9) Make oldconfig with this command
make oldconfig
(10) Make kpkg clean with this command
make-kpkg clean
(11) Edit Makefile and suit with your needs
vi Makefile
(12) Make package installer with this command
make-kpkg --initrd --stem linux-revision=n3120 kernel_image
(13) Up one level directory with this command
cd ..
(14) Install a new package installer with this command
dpkg -i linux-image-2.6.8.1_n3120_i386.deb
(15) Ok. Now everything done. Reboot your machine and use your new configured kernel
No comments:
Post a Comment