View Single Post
Old 05-06-2008, 07:23 PM   #21 (permalink)
praka123
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile How to custom kernel .deb

you are doing the wrong way boy!.that method is good for distros like fedora/suse.
remember 2.6.25 kernel faces problem with nvidia driver though latest driver 173.x does support .25 but without xen support.

I dont like "sudo" .so for the next steps ,I assume you are on a root terminal with "#" prompt generally.

In ubuntu, you do this to get root terminal :
Code:
sudo su -
I will brief my tutorial here:
1.
Code:
 apt-get update && apt-get upgrade
with internet ON

2.
Code:
apt-get install build-essential kernel-package libc6-i686  initramfs-tools libncurses5-dev
3.extract kernel source in .tar.bz2 format into /usr/src/ directory (in terminal use "tar -jxvf linux.tar.bz2)

4.change into /usr/src/linux-2.6.25 from terminal using :
Code:
cd /usr/src/linux-2.6.25
5.now,
Code:
make clean && make mrproper
6.
Code:
cp /boot/config-`uname -r` /usr/src/.config
7. now we have to customize :-
Code:
make menuconfig
8.press exit once you finishes.

9.now
Code:
make-kpkg clean
10. run :
Code:
make-kpkg --initrd --append-to-version=-gary-kernel kernel_headers kernel_image
Once the compilation is successfully finished ,the kernel .deb will be available in /usr/src directory.

there are some optimization using gcc for saving time like giving makeopts=-j3 for a normal SMP processor.that you can google I suppose.
best of Luck.

regarding kernel compile.this is the link with pictures:
http://www.howtoforge.com/kernel_compilation_debian_p2

but you may not like to follow it as it is!
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline