NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
kernel source 2.4.27I am trying to get a 3.1 install fixed so that I can compile ndiswrapper. I thought I had installed the kernel source which ended up creating /usr/src/kernel-source-2.4.27 but 3 areas of concern 1. There is no 'build' directory which everyone in the world uses. 2. I have not been able to find the source code. 3. ndiswrapper is looking in lib/modules.xxxx and it isn't there either Hours of surfing produce all the suggestions of apt-get install but no help on how to establish Any help, suggetions or pointers will be greatly appreciated. Thanks Ted in Atlanta |
usually ...
Installing the source code, for example:
apt-get install kernel-source-2.4.27
will simply download the source code as a .tar.gz or else a .tar.bz2 file.
Now where it downloads to is anyone's guess - at one time it downloaded to whatever directory you happened to be in when you ran apt-get - later it seems to be consistently put in /usr/src. So:
cd /usr/src
Then unpack the archive - if it's a *gz:
tar zxvf packagename.gz
If it's bz2:
tar jxvf packagename.gz
After unpacking, configure the kernel any way you want, just make sure you take that configuration file and save it in a different directory where it will be safe.
Next step is to run "make mrproper" again. Then:
copy your configuration file to the top directory of the linux tree and rename it as ".config"
make-kpkg --revision 2.1 --append-to-version myversion
In this case the "2.1" would be the kernel's "extra version info" and will appear in the actual kernel name like this:
2.4.27-2.1
The "myversion" is the Debian package identifier and only appears in the package name, not in the actual kernel name.
This takes the existing .config file and reconfigures the kernel. (Yes, there is a lot of needless reconfiguring here)
Next:
make-kpkg kernel_headers kernel_image
This will build the kernel and create two debian files in the parent directory (something like ../kernel-image-2.4.27-2.1-myversion-i386.deb)
One file should be a "kernel-image" file and the other should be a "kernel-headers" file. You can then install those using 'dpkg':
dpkg -i thekernelimage.deb
dpkg -i thekernelheaders.deb
Let us know if you have any more problems Ted.
kernel source 2.4.27
Thanks for your quick response to my query...
I have gone through the steps to install the kernel source up to and including tar jxvf packagename.gz. Should I be able to compile ndiswrapper at this point... or is there some other step required ??? Remember... I am using 2.4.27 from Sarge.
BTW... this conversation is using my Fedora FC4 distro.
PS I would like to hear from anyone who is compiling ANYTHING with Debian SARGE and the 2.4.27 kernel.... especially ndiswrapper.
oh ok -
I thought you wanted to compile the 2.4.27 kernel for some reason. If you're already running that kernel and don't need to recompile then you should start with:
apt-get install kernel-headers-$(uname -r)
That should install the header files (and version files) for your running kernel. That should allow you to compile software which needs to talk to the kernel. You should be able to compile the ndiswrapper then; I can't tell you too much about that because I have never built ndiswrapper. Usually these packages have either a "configure" script or just a plain Makefile. Either way, if the installed headers aren't found you will have to find out how to tell the build system where those headers are. For example, if "configure" is used, it usually goes something like this:
./configure --with-kerneldir=/usr/src/kernel-header-2.4.27
Stumbled/fumbled my way
Stumbled/fumbled my way through this problem... I am writing via Mozilla from Debian Sarge. I did a clean install and very, very carefully installed the kernel headers, installed a later release of GCC and wireless tools. Started with ndiswrapper 1.5 ... suceeded with 11.0 All of this via the Synaptic Package Manager. I had tried to install the various pieces using DPKG and really got tangled up in my underwear chasing dependencies. Next hill is PERL...
Thanks for the help and suggestions
Ted in Atlanta
FWIW... I just save the working partition on another drive..