OVH Cloud OVH Cloud

module pwc

9 réponses
Avatar
Debian User
Bonjour,

j'ai récupere les sources d'un module:

J'ai fait ce qui est indiqué

a) Goto http://www.saillard.org/pwc/
b) Click on README - you will read (and this is true, I verified it) that you may really have a big resolution of 640x480 !
c) Save/download the tar-ball pwc-10.0.6a.tar.bz2 to any directory
and enter the following commands:
d) tar -jxvf pwc-10.0.6a.tar.bz2
e) cd pwc-10.0.6a
f) make (ignore the two error-messages)
g) cp -p /lib/modules/2.6.7-1-686/kernel/drivers/usb/media/pwc.ko /lib/modules/2.6.7-1-686/kernel/drivers/usb/media/pwc.ko_orig
h) cp -p pwc.ko /lib/modules/2.6.7-1-686/kernel/drivers/usb/media/pwc.ko
!! Should the command 'uname -r' on your system not result in '2.6.7-1-686',
then you should use your own output of the command 'uname -r' instead
of '2.6.7-1-686' in the two commands above !!
i) depmod -a
j) rmmod pwc
k) modprobe pwc

Mais modprobe me donne:
FATAL: Error inserting pwc (/lib/modules/2.6.8ppp-patch-mppe/kernel/drivers/usb/media/pwc.ko): Invalid module format

Je suis allé voir: dmesg
pwc: version magic '2.6.8.dell050702 preempt PENTIUMIII gcc-3.3' should be '2.6.8ppp-patch-mppe preempt K7 4KSTACKS gcc-3.3'

'2.6.8ppp-patch-mppe preempt K7 4KSTACKS gcc-3.3' correspond bien à la version de mon kernel et K7 à mon AThlon

Qu'est ce que je dois faire?

Merci










--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

9 réponses

Avatar
Jean-Damien Durand
--nextPart1562516.2yZnvQad0N
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

- Tu passes a 2.6.12 (plus besoin, c'est dans le source officiel)
- ou

+ Tu rajoutes:

deb-src http://mentors.debian.net/debian unstable

dans /etc/apt/sources.list

+ tu fais un update.
+ tu prepare le module:

cd /usr/src
apt-get -t unstable source pwc-source
cd pwc-10.0.7
dpkg-buildpackage -uc -b
dpkg -i ../pwc-source_10.0.7-2_all.deb
cd ..
tar -zxvf /usr/src/pwc-source.tar.gz

+ Maintenant tu as pwc dans /usr/src/modules/pwc
+ tu utilise make-kpkg avec les memes options eventuelles que
ton noyau, a priori (teste!):

make-kpkg --append_to_version ppp-patch-mppe --added_modules pwc modules_im age

J'espere que ca marchera, j'ai pas fais ca depuis plusieurs mois.

A+, JD.

On Thursday 04 August 2005 19:45, Debian User wrote:
DU > Bonjour,
DU >
DU > j'ai récupere les sources d'un module:
DU >
DU > J'ai fait ce qui est indiqué
DU >
DU > a) Goto http://www.saillard.org/pwc/
DU > b) Click on README - you will read (and this is true, I verified it) t hat you may really have a big resolution of 640x480 !
DU > c) Save/download the tar-ball pwc-10.0.6a.tar.bz2 to any directory
DU > and enter the following commands:
DU > d) tar -jxvf pwc-10.0.6a.tar.bz2
DU > e) cd pwc-10.0.6a
DU > f) make (ignore the two error-messages)
DU > g) cp -p /lib/modules/2.6.7-1-686/kernel/drivers/usb/media/pwc.ko /lib /modules/2.6.7-1-686/kernel/drivers/usb/media/pwc.ko_orig
DU > h) cp -p pwc.ko /lib/modules/2.6.7-1-686/kernel/drivers/usb/media/pwc. ko
DU > !! Should the command 'uname -r' on your system not result in '2.6. 7-1-686',
DU > then you should use your own output of the command 'uname -r' in stead
DU > of '2.6.7-1-686' in the two commands above !!
DU > i) depmod -a
DU > j) rmmod pwc
DU > k) modprobe pwc
DU >
DU > Mais modprobe me donne:
DU > FATAL: Error inserting pwc (/lib/modules/2.6.8ppp-patch-mppe/kernel/dr ivers/usb/media/pwc.ko): Invalid module format
DU >
DU > Je suis allé voir: dmesg
DU > pwc: version magic '2.6.8.dell050702 preempt PENTIUMIII gcc-3.3' shoul d be '2.6.8ppp-patch-mppe preempt K7 4KSTACKS gcc-3.3'
DU >
DU > '2.6.8ppp-patch-mppe preempt K7 4KSTACKS gcc-3.3' correspond bien à la version de mon kernel et K7 à mon AThlon
DU >
DU > Qu'est ce que je dois faire?
DU >
DU > Merci
DU >
DU >
DU >
DU >
DU >
DU >
DU >
DU >
DU >
DU >

--
Jean-Damien Durand CERN/IT/FIO/DS - Geneva, Switzerland
PGP: http://home.cern.ch/~jdurand/public_key.asc
CERN CA: http://cern.ch/service-grid-ca/crt/root_crt.html
WWW: http://home.cern.ch/~jdurand

--nextPart1562516.2yZnvQad0N
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIID+TCCA/Uw
ggLdoAMCAQICAgLyMA0GCSqGSIb3DQEBBAUAMD0xCzAJBgNVBAYTAkNIMQ0wCwYDVQQKEwRDRVJO
MQ0wCwYDVQQLEwRHUklEMRAwDgYDVQQDEwdDRVJOIENBMB4XDTA0MTAwODEwMjYzMloXDTA1MTAw
ODEwMjYzMlowTTELMAkGA1UEBhMCQ0gxDTALBgNVBAoTBENFUk4xDTALBgNVBAsTBEdSSUQxIDAe
BgNVBAMTF0plYW4tRGFtaWVuIER1cmFuZCAzNTYyMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
gQCls+44hmgGNSZxdXATjoSB95SvCv/rymtSafWH6FXykvB5ddMDefjhxAcGr85/fC6oaw2MRYFM
5EhZ0dC9l/J534ICET87SU9JGF9jlNuf0sC3pGUYeSykD9FhTkgYdznX5NqI9TAX57psxGMYl2lI
GERmKVKcKK1wHbUyRjTWWQIDAQABo4IBcTCCAW0wDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUyz7n
tOuZ6Yk2wfdVu93Q4zoJFaowHwYDVR0jBBgwFoAU8kruin3jqnkHi9bdO92hpXIyfmowDgYDVR0P
AQH/BAQDAgP4MFIGA1UdHwRLM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9w0B
AQEEgYBAYAxEL8EA3FaHWLWJliW6Ht4uCIMPUxkhwz0uXADLUsw/+Pq28ZVWJk2NSJ+vFmY8hCCA
2PRJbTNO2+SV5HyhZ9p08C1dTfZ/psa1WpfZulNyz7AHF5WtSprTrzs/Pev/FH2WReT8x0fDkY8T
2YHM2dQlouYy2Y3cicnup/JmBQAAAAAAAA=
--nextPart1562516.2yZnvQad0N--


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Debian User
Il faut faire un make-kpkg -clean
avant


# make-kpkg --append-to-version ppp-patch-mppe --added_modules pwc modules_image

[....]

make[2]: « arch/i386/kernel/asm-offsets.s » est à jour.
make[1]: Leaving directory `/home/lof/src/kernel-source-2.6.8'
echo done > stamp-kernel-configure
echo done > stamp-configure
The changelog says we are creating 2.6.8.dell050702, but I thought the version is 2.6.8ppp-patch-mppe
make: *** [modules_image] Erreur 1

Donc ça marche pas !!!!






--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Debian User
> + Maintenant tu as pwc dans /usr/src/modules/pwc
+ tu utilise make-kpkg avec les memes options eventuelles que
ton noyau, a priori (teste!):

make-kpkg --append_to_version ppp-patch-mppe --added_modules pwc modules_image





J'espere que ca marchera, j'ai pas fais ca depuis plusieurs mois.



# make-kpkg --append-to-version ppp-patch-mppe --added_modules pwc modules_image

[....]

make[2]: « arch/i386/kernel/asm-offsets.s » est à jour.
make[1]: Leaving directory `/home/lof/src/kernel-source-2.6.8'
echo done > stamp-kernel-configure
echo done > stamp-configure
The changelog says we are creating 2.6.8.dell050702, but I thought the version is 2.6.8ppp-patch-mppe
make: *** [modules_image] Erreur 1

Donc ça marche pas !!!!


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Debian User
En résumé voici ce que j'ai fait:

vi /etc/apt/sources.list
J'ajoute: deb-src http://mentors.debian.net/debian unstable main

cd /usr/src
apt-get -t unstable source pwc-source
# dpkg-buildpackage -uc -b
# cd ..
#dpkg -i pwc-source_10.0.7-2_all.deb
# tar xvzf pwc-source.tar.gz

#make-kpkg -clean
#make-kpkg --append_to_version ppp-patch-mppe --added_modules pwc
modules_image
#cd /usr/src/modules/pwc
#make
Ca cree un pwc.ko

# cp pwc.ko /lib/modules/2.6.8ppp-patch-mppe/kernel/drivers/usb/media/
#rmmod pwc.ko
#depmod -a
#modprobe pwc
Et là :
FATAL: Error inserting pwc
(/lib/modules/2.6.8ppp-patch-mppe/kernel/drivers/usb/media/pwc.ko):
Invalid module format


#dmesg
pwc: version magic '2.6.8ppp-patch-mppe preempt PENTIUMIII gcc-3.3'
should be '2.6.8ppp-patch-mppe preempt K7 4KSTACKS gcc-3.3'

On avance, reste plus que le probleme du preempt


Y a quelqu'un qui sait comment arranger ça???

MErci


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Debian User
> Attends - le make-kpkg il te fait pas deja un pwc.ko !? Tu es bien dans le
source exact du kernel sur lequel tu souhaites faire ton module (?). Si tu as
changé la config du noyau tu es bon pour tout recompiler.
Troublant... Tu peux confirmer que tu est bien dans un espace kernel-source ou
header (je sais plus - j'utilise jamais ces paquets) strictement exact au kernel
sur lequel tu es en ce moment (puisque tu teste directement dans la meme session
apparemment), sans modification?





Je comprends pas tres bien ta question, Je ne sais pas si ma réponse
sera donc celle que tu attends.

mais:

uname -r
2.6.8ppp-patch-mppe

Donc l'--append-to-version est ppp-patch-mppe

Par contre ce qui est différent c'est le repertoire dans lequel se
trouve mes sources du noyaux
Il est sous /home/lof/src/linux et pas /usr/src.

Mais c'est pas ca le probleme je pense....







Merci, JD.

DU > Ca cree un pwc.ko





--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Debian User
Je re-précise ce que j'ai fait

vi /etc/apt/sources.list
J'ajoute: deb-src http://mentors.debian.net/debian unstable main

cd /usr/src
apt-get -t unstable source pwc-source
# dpkg-buildpackage -uc -b
# cd ..
#dpkg -i pwc-source_10.0.7-2_all.deb
# tar xvzf pwc-source.tar.gz

#cd /home/lof/src/linux
#make-kpkg -clean
#make-kpkg --append_to_version ppp-patch-mppe --added_modules pwc
modules_image
#cd /usr/src/modules/pwc
#make
Ca cree un pwc.ko

# cp pwc.ko /lib/modules/2.6.8ppp-patch-mppe/kernel/drivers/usb/media/
#rmmod pwc.ko
#depmod -a
#modprobe pwc
Et là :
FATAL: Error inserting pwc
(/lib/modules/2.6.8ppp-patch-mppe/kernel/drivers/usb/media/pwc.ko):
Invalid module format


#dmesg
pwc: version magic '2.6.8ppp-patch-mppe preempt PENTIUMIII gcc-3.3'
should be '2.6.8ppp-patch-mppe preempt K7 4KSTACKS gcc-3.3'



> Merci, JD.
>
> DU > Ca cree un pwc.ko
>






--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Debian User
>
Attends - le make-kpkg il te fait pas deja un pwc.ko !?



Il semble que non
Tu es bien dans le
source exact du kernel sur lequel tu souhaites faire ton module (?).



Bah je comprends pas trop la question mais je fais le make-kpkg dans
kernel-source-2.6.8


Si tu as
changé la config du noyau tu es bon pour tout recompiler.



si faire un make menuconfig, make-kpkg --append-to-version
ppp-patch-mppe kernel_image et dpkg -i le .deb-crée alors oui j'ai
modifié mon kernel

Troublant... Tu peux confirmer que tu est bien dans un espace kernel-source ou
header (je sais plus - j'utilise jamais ces paquets) strictement exact au kernel
sur lequel tu es en ce moment (puisque tu teste directement dans la meme session
apparemment), sans modification?



Ca je peux pas confirmer. Mais pourrais-tu m'expliquer si je modifie le
kernel-source-2.6.8 qd je recompile un noyau?

Merci


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Debian User
>
fakeroot make-kpkg clean
fakeroot make-kpkg --initrd --append_to_version ppp-patch-mppe --revision `date "+%s"` kernel_source kernel_headers kernel_image modules_clean modules_image


J'ai jamais recuperer les paquets kernel-header je peux me passer de la
cible kernel_header non? et kernel_source aussi non?

Je dois dire que j'ai jamais compris quand est-ce qu'on doit utiliser
tout cela

PS je ferais ça demain. Car demain matin j'ai piscine Merci et à
bientot.....


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Luc Saillard
On Thu, Aug 04, 2005 at 11:16:30PM +0200, Debian User wrote:

> fakeroot make-kpkg clean
> fakeroot make-kpkg --initrd --append_to_version ppp-patch-mppe --revision `date "+%s"` kernel_source kernel_headers kernel_image modules_clean modules_image
J'ai jamais recuperer les paquets kernel-header je peux me passer de la
cible kernel_header non? et kernel_source aussi non?



Parfois c'est quand même plus simple de faire un simple make install dans les
sources du driver pwc ...
Vouloir faire trop de paquets, nuis à la simplicité du système (idem pour
initrd). Personnelement, je fais mon kernel avec make-kpkg, et pour les
modules que je rajoute à la main, un make install suffit.

Luc


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact