Faire reconnaitre un driver!

Fermé
seb - 19 avril 2007 à 09:24
 Arthur - 20 mars 2008 à 13:19
quelqu'un connait t'il une solution s'il vous plaît pour compiler un drivers (carte WIFI) avec le noyau linux 2.6.12. Le problème c'est que ce drivers n'est pas disponible dans le noyau linux (même le dernier!) j'ai donc télecharger les sources du driver et j'aimerai donc les inclure avec le noyau pour qu'ils soit chargés en DUR.

Je ne sais pas si il faut l'inclure dans le noyau, ou faire une compilation spéciale. Ce que je veux c'est que le driver soit pris en compte.

R.q: Je veux le compiler avec le noyau pour pouvoir l'embarquer sur un ARM9 et je veux que le driver soit chargés en DUR comme les drivers qu'on cohe dans le menuconfig. ça fait une semaine que je cherche un solution mais personne n'a pu m'aider.

a l'aiiiiiiiiiiiide!

Merci pour votre aide
A voir également:

5 réponses

kilian Messages postés 8731 Date d'inscription vendredi 19 septembre 2003 Statut Modérateur Dernière intervention 20 août 2016 1 527
19 avril 2007 à 13:39
j'ai donc télecharger les sources du driver et j'aimerai donc les inclure avec le noyau pour qu'ils soit chargés en DUR.

Salut,

Pourquoi en dur alors que les sources de drivers à télécharger sont souvent prévues pour être compilées en module?
0
Salut,

Les sources que j'ai télechargé ne se sompilent pas en module, ya un Makefile, des dossiers avec des fichiers.c mais aucun fichier.o ou .ko pouvant être inséré (insmod...). C'est bizarre! J'ai pourtant essayer de compiler le Makefile et trop d'erreur. et encore j'ai coupé car ça remonte encore!

/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:631: error: `GPIO23_SCLK_md' undeclared (first use in this function)
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:637: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:638: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:642: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:649: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:651: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:653: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:654: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:655: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c: In function `gspihost_init':
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:668: error: invalid application of `sizeof' to incomplete type `/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.h'
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:673: error: invalid application of `sizeof' to incomplete type `/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.h'
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:674: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:675: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c: In function `gspihost_module_init':
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:700: error: invalid application of `sizeof' to incomplete type `/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.h'
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:706: error: invalid application of `sizeof' to incomplete type `/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.h'
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:707: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:709: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:710: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:712: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:713: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c: In function `gspihost_exit':
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:733: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:734: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:734: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:736: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:736: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:738: error: `pxa_dma_desc' undeclared (first use in this function)
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:738: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:738: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:740: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:740: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:743: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:743: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:749: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:750: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:752: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:753: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:755: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:756: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:761: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:762: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:763: error: invalid lvalue in assignment
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:767: error: dereferencing pointer to incomplete type
/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.c:768: error: dereferencing pointer to incomplete type
make[2]: *** [/root/Desktop/uc/marvel/src_gspi8686/io/gspi/pxa270/gspi_io.o] Erreur 1
make[1]: *** [_module_/root/Desktop/uc/marvel/src_gspi8686] Erreur 2
make[1]: quittant le répertoire « /usr/src/arm/linux-2.6.12 »
make: *** [default] Erreur 2
0
kilian Messages postés 8731 Date d'inscription vendredi 19 septembre 2003 Statut Modérateur Dernière intervention 20 août 2016 1 527
19 avril 2007 à 16:30
Tu pourrais me filer l'adresse vers les sources de ce driver?
0
Salut,

En faite les sources ne sont pas sur le net, je peux te les filer si tu veux pour m'aider. Merci!
0
burrin Messages postés 202 Date d'inscription vendredi 16 mars 2007 Statut Membre Dernière intervention 23 décembre 2008 69
23 avril 2007 à 14:28
La plupart du temps tu n'as pas le module avant d'avoir compilé le driver.
Essai avec un make, make isntall si tu n'obtient pas de .ko

Comment tu a eu les drivers s'il ne sont pas sur le net?
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Hi Seb,

hope you speak also English? If not I have to ask a colleauge to translate. I also would like access the Marvell 8686 via SPI but I do not have the sources that you have. It would be nice if you send me the driver source you have to the address Arthur dot Mielimonka at noit dot de. I will integrate them into my board (arm 7 based evaluation board) and send you my solution.

Regards,
Arthur
0