A question from a newbie to compiling kernels for ubuntu/debian.
First off, my goal is to create a nearly identical kernel to the feisty generic kernel or 2.6.20-15-generic. I am wanting to compile a single addition kernel module (a kernel module that debian and therefore ubuntu dont compile by default), and get this kernel and module onto a router that doesnt have enough room for me to compile a kernel on it. So I want to create a deb file that I can copy to the router and install the kernel that way.
I am using the directions found here:
To get the kernel source, I am using the commands to get the Ubuntu kernel source or:
apt-get source linux-image-2.6.20-15-generic
apt-get build-dep linux-image-2.6.20-15-generic
At this point I have a new linux kernel directory (linux-source-2.6.20-2.6.20) with everything unpacked in it and diffs applied. I am compiling for the 386 arch, so I am editing the config file found in debian/config/i386.
Question here, how do the arch config files found in debian/config/i386 relate to .config found in the kernel source root? For example, when I read about copying the config file from /boot/config-2.6.20-15-generic to [sourceroot]/.config, how does this .config relate to the configs in i386?
For now I have edited the config in the i386 directory.
I then run
One complaint here, the above command fails, unless I go into debian/bin and make the scripts there executable. Why arent these made executable when the source is installed?
After running the above command, I then run:
AUTOBUILD=1 fakeroot debian/rules binary-debs
Upon completion of this step, I would assume that I have deb files for each of the flavors in the 386 arch.. However I am having a hard time getting the compile to go to completion.
My compile is failing some time after the modules are made into kernel objects and at
====== making target build [new prereqs: stamp-build]======
make: Leaving directory `/usr/src/linux-source-2.6.20-2.6.20/debian/build/build-386'
Checking module listings...
Modules have gone missing:
Will not continue!
make: *** [build] Error 1
I have no clue how a module would go missing, AND the last compile I even tried compiling dccp-probe into the kernel and not as a module, and I still get the same error.
Where do I go from here given the goal I stated at the top?