Compiling Ubuntu kernel

I am trying to  compile the ubuntu kernel following https://help.ubuntu.com/community/Kernel/CompileAnd it works but I have some  problems:

1) How to reconfigure the config with make menuconfig or make xconfig etc. when the config files are split ? I try this:

  • cat debian/config/i386/config debian/config/i386/config.generic >.config (Also tried using /boot/config-2.6.24-21-generic identical to above)
  • make menuconfig
  • cp .config debian/config/i386/config.generic
  • chmod u+x debian/scripts/misc/splitconfig.pl
  • chmod u+x debian/scripts/misc/oldconfig
  • debian/scripts/misc/oldconfig i386
  • CONCURRENCY_LEVEL=4 AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules binary-generic

Then it says it is not clean and I have to do make mrproper Doing that however removes the debian directory!! Modifying config.generic by hand and then building works, but it would be nice to have an interface  not to miss any dependencies.

2) After making a package linux-image-debug-2.6.24-21-generic_2.6.24-21.43_i386.deb

  • When I do: sudo dpkg -i linux-image-debug-2.6.24-21-generic_2.6.24-21.43_i386.deb

Will it overwrite the generic kernel i already have? and how can i prevent this ?
And why does it say debug ?

3) Website also say that i should do the same to compile modules as compiling the kernel..so I do:

  • cd linux-ubuntu-modules-2.6.24-2.6.24
  • CONCURRENCY_LEVEL=4 AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules binary-generic

    
But how can this know about the modified config.generic that were used to build the kernel ?     I thought about copying it to  linux-ubuntu-modules-2.6.24-2.6.24/debian/config/i386     But i386 is not a directory any more !???

arghh my previous post is unreadable!!

I try add formatting to it! but it does not work?Added many returns to get line break but I do not see any?Added code tag but it comes out as text??

arghh my previous post is unreadable!!

Figured out formatting, how do i delete comments?

No one compiling the ubuntu way ?

No one is answering my previous post, does it mean no one compiles the kernel the ubuntu way? Or is it because no one compiles the kernel at all?
I could compile the kernel the old fashioned way..
But I wanted to learn how to do it as it is supposed to be done in Ubuntu!

So can anyone write how it is supposed to be done, the description at https://help.ubuntu.com/community/Kernel/Compile

Is good but not complete...