(solved)compiling a driver from his sources (from package iwp3945-source) to a recompiled kernel

Hello,

after one year under Ubuntu I want now to make a migration to Debian.
I'm using Etch with kernel 2.6.22 from backport. I've recompiled it in order to used suspend2 and to activate the coretemp fonction for my intel dual core processor. The compilation gave me several .deb especially headers, sources and image which I've all installed. The new image works perfectly except for my intel 3945 ABG which need a module called iwp3945. If I did well understand, I need to use the source of this module to build a new module which will match my new kernel. Although I've installed the package headers and source from my new kernel, module-assistant keep telling me that it can't find the binary package of my new kernel... And the compilation give me plenty errors... I don't understand what I've forgotten to do...

Any idea ?

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: compiling a driver from ... to a recompiled kernel

I am using testing. I also have 3945 card. I have installed the sources via synaptic, untarred, then did "m-a update", "m-a prepare ipw3945", "m-a build ipw3945", "m-a install ipw3945". Didn't have any compilation errors.

Re: compiling a driver from his sources (from package iwp3945-so

How did you install the headers? Did you package it using the Debian tools (make-kpkg) when you built it? If you didn't, then it's good to learn how to use those tools so that the Debian packaging system is fully aware of what you've installed.

Did you check your kernel 2.6.22 to see if the ipw driver was already included? There was a change in the wireless systems in kernel 2.6.21 I think, and many wireless drivers have to be converted. If I'm not mistaken, the ipw driver already used the newly adopted wireless stack anyway, but you need to check.

If the ipw module is in the kernel source already, all you need is the firmware binary image and the scripts to set it up on boot.

For the setup scripts:
apt-get install ipw3945d
For the firmware:
apt-get install firmware-ipw3945

The firmware package has a notice in its description stating that it is for the "old-style driver". I don't know what this means - does the new driver have another means of loading firmware?

Re: compiling a driver from his sources (from package iwp3945-so

Ok, first thanks to both of you!

So, yes I've did it with make-kpkg, and I'm sure that I need this modules because I need the .deb anyway with the 2.6.22 image from debian mirror. I've just recompiled the same kernel with just the patch from suspend2, configuration for my core dual and coretemp activated...

actually I've got some errors while compiling the kernel which I did not pay attention to for it had build my .debs anyway. So here is the thing:

dpkg-genchanges -b -mUnknown Kernel Package Maintainer

dpkg-genchanges : avertissement : paquet linux-xen0-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xenu-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xenu-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xenu-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xen0-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xenu-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xen0-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xenu-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xen0-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xen0-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xen0-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xen0-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xenu-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-uml-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xenu-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xenu-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges : avertissement : paquet linux-xen0-2.6.22-cts2 dans le fichier de contrôle mais pas dans le fichier des fichiers
dpkg-genchanges: envoi d'un binaire - aucune inclusion de code source
dpkg-buildpackage: binary only upload (no source included)
rm -f stamp-building
echo done > stamp-buildpackage

Well this is only of french but I would translate it so : "dpkg-genchanges : warning : package #packagename# in the control/checking's file but not in the file of files" for all the files which come first then the two last lines means the same one time in french, one time in english

For what I've found with google, I need some checkinstall package, but it is no more included in Etch for package policy reason. I've managed to find it anyway but it ask for a installwatch package that I can't found. I've also seen that some people's advice is to install the package from lenny but it don't like my libc6's version...arrrrg

new ideas ?

Debian Etch 2.6.22-686
Genuine Intel T2050 1.60GHz, 1GHz DDR2
, SATA 120 Go,
Mobile Intel 945GM, Realtek high definition Audio,
Intel PRO/Wireless 3945ABG Network Connection
, Realtek RTL8139/810x Fast Ethernet NIC

Re: compiling a driver from his sources (from package iwp3945-so

What exactly did you do to compile?

I can't understand why the tools are complaining about so many packages being listed in the 'control' file but are not present in the directory of files.

Re: compiling a driver from his sources (from package iwp3945-so

So no way to get rid of this just always the same errors. I've just tried again as root... but this is also the same...

help !!! :))

Debian Etch 2.6.22-3-686
Genuine Intel T2050 1.60GHz, 1GHz DDR2
SATA 120 Go, Mobile Intel 945GM, Realtek high definition Audio,
Intel PRO/Wireless 3945ABG Network Connection
Realtek RTL8139/810x Fast Ethernet NIC

Re: compiling a driver from his sources (from package iwp3945-so

Hey, the checkinstall can be found in the sarge depository and also in some recent version on this alternative depository that I've found :
deb http://boisson.homeip.net/debian etch divers

So I'm trying again to recompile and I'll tell you what!

Debian Etch 2.6.22-3-686
Genuine Intel T2050 1.60GHz, 1GHz DDR2
SATA 120 Go, Mobile Intel 945GM, Realtek high definition Audio,
Intel PRO/Wireless 3945ABG Network Connection
Realtek RTL8139/810x Fast Ethernet NIC

Re: compiling a driver from his sources (from package iwp3945-so

I've typed this :

$ make-kpkg --append-to-version "-cts2" --initrd --rootcmd fakeroot --added_modules ipw3945 --us --uc --config menuconfig buildpackage

Debian Etch 2.6.22-3-686
Genuine Intel T2050 1.60GHz, 1GHz DDR2
SATA 120 Go, Mobile Intel 945GM, Realtek high definition Audio,
Intel PRO/Wireless 3945ABG Network Connection
Realtek RTL8139/810x Fast Ethernet NIC

Re: compiling a driver from his sources (from package iwp3945-so

Did you do 'make-kpkg clean', 'make mrproper' and make sure the "-stamp" files were removed?

If you already have a configuration file you like, make a copy of it and use it to reconfigure; that way you're not always reconfiguring with the menu.

I have never used the 'buildpackage' option; I always specify:
kernel_image kernel_headers kernel_source

Perhaps 'buildpackage' does more and causes all these warnings?

It has been a long time since I have used the "--initrd" option; I don't think it is necessary anymore.

If you really need 'checkinstall', you can always get a source package from whatever Debian repository you want and compile it - this could take some time if there are other dependencies that need to be met.

Re: compiling a driver from his sources (from package iwp3945-so

Ok I've tried with :
make-kpkg --append-to-version "-cts2" --initrd --added_modules ipw3945 --uc --us --config menuconfig kernel_image kernel_headers kernel_source

there is no more errors during kernel's compilation but I can't either install the module iwp3945, the very same errors occurs...
I will now try without --initrd options.

It occurs me that I've used a suspend2 patch for 2.6.22 and not for 2.6.22-3 which I didn't managed to found. Could that be the reason ?

Debian Etch 2.6.22-3-686
Genuine Intel T2050 1.60GHz, 1GHz DDR2
SATA 120 Go, Mobile Intel 945GM, Realtek high definition Audio,
Intel PRO/Wireless 3945ABG Network Connection
Realtek RTL8139/810x Fast Ethernet NIC

Re: compiling a driver from his sources (from package iwp3945-so

oh oh....

Well, I'm afraid you will hate me. The problem comes from the modules ipw3945 which don't seems to support the 2.6.22 kernel in the his etch version. So if you get errors trying to compile this module, just install the ipw3945-sources package from sid depots, re-extract the content of ipw3945.tar.bz2 and try again. It works for me.

thanks very much for all your help anyway...

ps: Is it normal that this etch package don't support 2.6.22 ? Should I write anywhere to give news about this problem ?

Debian Etch 2.6.22-3-686
Genuine Intel T2050 1.60GHz, 1GHz DDR2
SATA 120 Go, Mobile Intel 945GM, Realtek high definition Audio,
Intel PRO/Wireless 3945ABG Network Connection
Realtek RTL8139/810x Fast Ethernet NIC

Re: compiling a driver from his sources (from package iwp3945-so

There were 2 big changes to wireless networking in the Linux kernel in the past few months; the etch version of ipw3945 will not be compatible with kernel version 2.6.21 and later. There is no bug - but the older driver is now obsolete.

Syndicate content