[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to get the right source

On Thu, Aug 10, 2006 at 05:22:59PM +0100, A J Stiles wrote:
> The kernel-image or linux-image packages do contain the config file which was 
> used to build the kernel.  These are copied to /boot when the kernel image is 
> installed.
> If you can't find it there, don't panic.  As long as you have still got 
> the .deb file from which you installed the kernel  (take a look 
> in /var/cache/apt/archives/ in case it's still there),  you can retrieve it.
> Manually unpack the kernel-image .deb file:
> # ar x *.deb
> This will give you three files.  The one you are interested in is data.tar.gz.  
> Find any files with "config" in the name:
> # tar tvzf data.tar.gz |grep config
> You want the one which is in boot/:
> # tar xvzf data.tar.gz --wildcards ./boot/config*
> Note, this will create a directory "boot" and put the file in there.
> Now get the 2.6.12 kernel sources from ftp.kernel.org and unpack as normal.  
> Copy your config file  (from /boot if you were lucky, or from where you 
> unpacked your .deb)  to the directory where you unpacked the kernel sources.  
> Do `make menuconfig`.  Change all "M"s to "Y"s, and make whatever other 
> changes you need.  Start building your kernel, and go and put the kettle 
> on  :-)

Debian's 2.6.12 kernel and ftp.kernel.org's 2.6.12 kernel are not the
same.  Debian has a lot of patches to add some features and fix some

You should certainly be able to make a working kernel using the
kernel.org sources, but don't pretend it is the same kernel as debian
provides, or you will only be fooling yourself.

Len Sorensen

Reply to: