Installation clef Wifi TP-Link TL-WN823N raspbian

Bonjour à tous,

Je suis en train d’essayer d’installer une clef wifi TP-Link TL-WN823N sur mon raspberry (alors côté branchement, je m’en suis sorti, c’était pas trop compliqué… ^^).
Là où je bloque, c’est que quand je fais lsusb, il detecte bien quelque chose sur le port usb mais visiblement, il ne sait pas quoi… :
pi@Ecran_atelier:~/Downloads/Driver $ lsusb Bus 001 Device 006: ID 1a2c:0e24 China Resource Semico Co., Ltd Bus 001 Device 005: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse Bus 001 Device 007: ID 2357:0109 Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

La ligne qui m’intéresse, c’est la Bus 001 Device 007…
J’ai essayé de suivre la doc de TP-Link pour l’installation de leur driver sur linux mais j’ai une erreure aussi (en grois, et pour faire simple, il faut faire un sudo make dans leur dossier Driver) :
pi@Ecran_atelier:~/Downloads/Driver $ sudo make "******************************************" "NO SKRC,we will use default KSRC" "******************************************" make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/4.4.13+/build M=/home/pi/Downloads/Driver modules make[1]: *** /lib/modules/4.4.13+/build: No such file or directory. Stop. Makefile:1696: recipe for target 'modules' failed make: *** [modules] Error 2 pi@Ecran_atelier:~/Downloads/Driver $

Quelqu’un a-t-il déjà eu ce genre de souci ?
PS : un collègue a essayé sous linux (dernière version) et il se passe exactement la meme chose…
PS2 : la clef fonctionne très bien sous windows !

Merci !

Tu as les headers du noyau installés ? aptitude search linux-headers.

Etant donné que tu viens de me parler chinois, je vais simplement coller le résultat …

pi@> Ecran_atelier:~ $ apt search linux-headers
Sorting… Done
Full Text Search… Done
linux-headers-3.10-3-all/stable 3.10.11-1+rpi7 armhf
All header files for Linux 3.10 (meta-package)

linux-headers-3.10-3-all-armhf/stable 3.10.11-1+rpi7 armhf
All header files for Linux 3.10 (meta-package)

linux-headers-3.10-3-common/stable 3.10.11-1+rpi7 armhf
Common header files for Linux 3.10-3

linux-headers-3.10-3-rpi/stable 3.10.11-1+rpi7 armhf
Header files for Linux 3.10-3-rpi

linux-headers-3.12-1-all/stable 3.12.9-1+rpi3 armhf
All header files for Linux 3.12 (meta-package)

linux-headers-3.12-1-all-armhf/stable 3.12.9-1+rpi3 armhf
All header files for Linux 3.12 (meta-package)

linux-headers-3.12-1-common/stable 3.12.9-1+rpi3 armhf
Common header files for Linux 3.12-1

linux-headers-3.12-1-rpi/stable 3.12.9-1+rpi3 armhf
Header files for Linux 3.12-1-rpi

linux-headers-3.16.0-4-all/stable 3.16.7-ckt11-1+deb8u4+rpi1 armhf
All header files for Linux 3.16 (meta-package)

linux-headers-3.16.0-4-all-armhf/stable 3.16.7-ckt11-1+deb8u4+rpi1 armhf
All header files for Linux 3.16 (meta-package)

linux-headers-3.16.0-4-common/stable 3.16.7-ckt11-1+deb8u4+rpi1 armhf
Common header files for Linux 3.16.0-4

linux-headers-3.16.0-4-rpi/stable 3.16.7-ckt11-1+deb8u4+rpi1 armhf
Header files for Linux 3.16.0-4-rpi

linux-headers-3.18.0-trunk-all/stable 3.18.5-1~exp1+rpi19 armhf
All header files for Linux 3.18 (meta-package)

linux-headers-3.18.0-trunk-all-armhf/stable 3.18.5-1~exp1+rpi19 armhf
All header files for Linux 3.18 (meta-package)

linux-headers-3.18.0-trunk-common/stable 3.18.5-1~exp1+rpi19 armhf
Common header files for Linux 3.18.0-trunk

linux-headers-3.18.0-trunk-rpi/stable 3.18.5-1~exp1+rpi19 armhf
Header files for Linux 3.18.0-trunk-rpi

linux-headers-3.18.0-trunk-rpi2/stable 3.18.5-1~exp1+rpi19 armhf
Header files for Linux 3.18.0-trunk-rpi2

linux-headers-3.6-trunk-all/stable 3.6.9-1~experimental.1+rpi7 armhf
All header files for Linux 3.6 (meta-package)

linux-headers-3.6-trunk-all-armhf/stable 3.6.9-1~experimental.1+rpi7 armhf
All header files for Linux 3.6 (meta-package)

linux-headers-3.6-trunk-common/stable 3.6.9-1~experimental.1+rpi7 armhf
Common header files for Linux 3.6-trunk

linux-headers-3.6-trunk-rpi/stable 3.6.9-1~experimental.1+rpi7 armhf
Header files for Linux 3.6-trunk-rpi

linux-headers-4.4.0-1-all/stable 4.4.6-1+rpi14 armhf
All header files for Linux 4.4 (meta-package)

linux-headers-4.4.0-1-all-armhf/stable 4.4.6-1+rpi14 armhf
All header files for Linux 4.4 (meta-package)

linux-headers-4.4.0-1-common/stable 4.4.6-1+rpi14 armhf
Common header files for Linux 4.4.0-1

linux-headers-4.4.0-1-rpi/stable 4.4.6-1+rpi14 armhf
Header files for Linux 4.4.0-1-rpi

linux-headers-4.4.0-1-rpi2/stable 4.4.6-1+rpi14 armhf
Header files for Linux 4.4.0-1-rpi2

linux-headers-rpi/stable 3.16+63+rpi5 armhf
Header files for Linux rpi configuration (meta-package)

linux-headers-rpi-rpfv/stable 4.4+63+rpi5 armhf
This metapackage will pull in the headers for the raspbian kernel for the

linux-headers-rpi2-rpfv/stable 4.4+63+rpi5 armhf
This metapackage will pull in the headers for the raspbian kernel for the

Passe en root
Installe le nécessaire pour compiler :
# apt-get update
# apt-get install build-essential

Ensuite recommence ton installation.

je viens d’installer build-essentail mais le sudo make me donne la meme chose :confused:

Tu as fait un
$ ./configure
avant ?

je ne suis pas sûr qu’il y a i une configuration à faire, j’ai fait la commande mais :

pi@Ecran_atelier:~/Downloads/Driver $ ./configure
-bash: ./configure: No such file or directory

Dans le Makefile, il y a un tas de variable au début du fichier pour chopper les version et tout…

A priori ça viendrait d’une mauvaise appellation de l’architecture, puisque qqun a résolu son problème comme ça :
# cd /usr/src/linux-rpi-3.6.y/arch/
# ln -s arm armv6l

ça vient du net alors, sans garantie ! :slight_smile:


Je n’ai pas de linux-rpi-3.6.y dans le dossier /usr/src/
je n’ai qu’un dossier sense-hat !

#pourquoiCsicompliquédinstalleruneclefwifisurlinux

Je viens de tester la même manip (sudo make) avec le driver de realtek directement, j’ai exactement la même erreur, excepté le numéro de ligne !

Bizarre qu’après build-essential tu n’ais rien dans /usr/src …
Regarde par ici : https://www.raspberrypi.org/forums/viewtopic.php?f=71&t=17666&p=179845
Il faut que tu ais les headers pour pouvoir compiler quoi que ce soit.

Je confirme : tu n’as pas installé les headers du noyau, tu ne pourras donc rien compiler de toute façon. Selon le noyau que tu as installé, tu dois installer les headers correspondants. Tu peux essayer directement avec apt-get install linux-headers-$(uname -r).

Bon alors voilà les nouvelles…
Je suis tombé sur internet sur ce topic


J’ai suivi les quelques lignes de commandes pour parvenir à installer le driver de realtek (RTL8192) je me suis dit que c’était bon… Ben non, je n’ai toujours pas ma clef wifi de reconnue dans le lsusb…
(et soit dit-en passant, vu que pour celui de realtek, ca a f onctionné, j’ai testé pour celui de TP-Link, mais j’ai eu une autre erreure :

pi@Ecran_atelier:~/Downloads/Driver $ sudo make
"******************************************"
“NO SKRC,we will use default KSRC”
"******************************************“
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.13+/build M=/home/pi/Downloads/ Driver modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.4.13+’
”******************************************"
“NO SKRC,we will use default KSRC”
"******************************************"
CC [M] /home/pi/Downloads/Driver/core/rtw_cmd.o
In file included from /home/pi/Downloads/Driver/include/drv_types.h:95:0,
from /home/pi/Downloads/Driver/core/rtw_cmd.c:22:
/home/pi/Downloads/Driver/include/hal_com.h:413:13: error: ‘file_path’ redeclare d as different kind of symbol
extern char file_path[PATH_LENGTH_MAX];
^
In file included from include/linux/cgroup.h:16:0,
from include/net/netprio_cgroup.h:17,
from include/linux/netdevice.h:48,
from /home/pi/Downloads/Driver/include/osdep_service_linux.h:35 ,
from /home/pi/Downloads/Driver/include/osdep_service.h:41,
from /home/pi/Downloads/Driver/include/drv_types.h:32,
from /home/pi/Downloads/Driver/core/rtw_cmd.c:22:
include/linux/fs.h:2548:14: note: previous declaration of ‘file_path’ was here
extern char *file_path(struct file *, char *, int);
^
In file included from /home/pi/Downloads/Driver/include/drv_types.h:65:0,
from /home/pi/Downloads/Driver/core/rtw_cmd.c:22:
/home/pi/Downloads/Driver/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/home/pi/Downloads/Driver/include/rtw_debug.h:187:19: error: void value not igno red as it ought to be
#define _seqdump seq_printf
^
/home/pi/Downloads/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
/home/pi/Downloads/Driver/core/rtw_cmd.c:3293:2: note: in expansion of macro ‘DB G_871X_SEL_NL’
DBG_871X_SEL_NL(sel, “cid:0x%02x, len:%u\n”, info->cid, info->len);
^
/home/pi/Downloads/Driver/include/rtw_debug.h:187:19: error: void value not igno red as it ought to be
#define _seqdump seq_printf
^
/home/pi/Downloads/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
/home/pi/Downloads/Driver/core/rtw_cmd.c:3296:3: note: in expansion of macro ‘DB G_871X_SEL_NL’
DBG_871X_SEL_NL(sel, “byte2:%s%s%s%s%s%s%s%s\n”
^
/home/pi/Downloads/Driver/include/rtw_debug.h:187:19: error: void value not igno red as it ought to be
#define _seqdump seq_printf
^
/home/pi/Downloads/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
/home/pi/Downloads/Driver/core/rtw_cmd.c:3308:3: note: in expansion of macro ‘DB G_871X_SEL_NL’
DBG_871X_SEL_NL(sel, “retry_cnt:%u\n”, info->retry_cnt);
^
/home/pi/Downloads/Driver/include/rtw_debug.h:187:19: error: void value not igno red as it ought to be
#define _seqdump seq_printf
^
/home/pi/Downloads/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
/home/pi/Downloads/Driver/core/rtw_cmd.c:3311:3: note: in expansion of macro ‘DB G_871X_SEL_NL’
DBG_871X_SEL_NL(sel, “rssi:%u\n”, info->rssi);
^
/home/pi/Downloads/Driver/include/rtw_debug.h:187:19: error: void value not igno red as it ought to be
#define _seqdump seq_printf
^
/home/pi/Downloads/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
/home/pi/Downloads/Driver/core/rtw_cmd.c:3314:3: note: in expansion of macro ‘DB G_871X_SEL_NL’
DBG_871X_SEL_NL(sel, “byte5:%s%s\n”
^
scripts/Makefile.build:258: recipe for target ‘/home/pi/Downloads/Driver/core/rt w_cmd.o’ failed
make[2]: *** [/home/pi/Downloads/Driver/core/rtw_cmd.o] Error 1
Makefile:1385: recipe for target ‘module/home/pi/Downloads/Driver’ failed
make[1]: *** [module/home/pi/Downloads/Driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.13+'
Makefile:1706: recipe for target ‘modules’ failed
make: *** [modules] Error 2

donc j’ai testé avec apt-get install linux-headers-$(uname -r), j’ai même testé avec apt-get install linux-headers-4.4.13+ (vu que c’est ma version) mais j’obtiens :

pi@Ecran_atelier:~/Downloads/Driver $ sudo apt-get install linux-headers-$(uname -r)
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux-headers-4.4.13
E: Couldn’t find any package by regex ‘linux-headers-4.4.13’

Je commence à désespérer de pouvoir un jour utiliser le wifi sur le raspi…
C’est possible de donner un accès distant ssh par internet ? ca irait plus vite !

PS : Je précise que avec tout ce que j’ai fait, j’ai maintenant des dossier dans /usr/src :

pi@Ecran_atelier:/usr/src $ ls
4.4.13+ linux linux-headers-4.4.13+ linux-headers-4.4.13-v7+ sense-hat

Personne ne voit d’où peut venir le souci ?

Non ?