Vous voulez améliorer cette question ? Mettez à jour la question afin qu'elle soit sur le sujet pour Unix et Linux Stack Exchange.
Fermé il y a 3 ans.
Améliorer cette question
Je suis en train de configurer un PC sous XUbuntu et jusqu'à présent, tout se passe plutôt bien. J'ai cependant des problèmes pour faire fonctionner le Wi-Fi.
Au départ, j'ai essayé avec mon Netgear A6200 existant, mais on m'a dit que les pilotes n'existaient pas et que je devrais utiliser des pilotes Windows - ce que je n'aimais pas, alors j'en ai acheté un :
https://www.amazon.co.uk/gp/product/B06XZ1DBPZ/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
qui répertorie Linux comme système d'exploitation pris en charge.
Je n'ai pas eu beaucoup de chance de le faire fonctionner. J'espérais le brancher et obtenir les pilotes comme par magie, mais pas de chance.
Le chipset est apparemment realtek RTL8811AU
(Je l'ai obtenu en le branchant sur mon PC Windows).
J'ai trouvé ce message :
https://ubuntuforums.org/showthread.php?t=2306417
mais make échoue* - Je n'aime pas non plus l'idée de devoir refaire cela à chaque mise à jour de Linux…
J'ai regardé les pilotes fournis avec le dongle et il y a un install.sh
pour compiler et installer les pilotes (je suppose que cela fait une chose similaire au référentiel github référencé dans le post ci-dessus). Ce script d'installation échoue également**…
Il y a aussi un tar du code source inclus sur le disque…
J'espérais vraiment qu'une commande apt-get suive et mette à jour les pilotes au fur et à mesure que de nouvelles mises à jour sont publiées.
Si j'arrive à faire fonctionner, est-ce que je vais vraiment devoir refaire ça à chaque fois que je reçois une mise à jour ?
Je me sens un peu énervé à ce sujet, tout allait très bien jusqu'à présent !
Merci
* make failure output
[email protected]:~/git/rtl8811AU_rtl8821A-linux$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-33-generic/build M=/home/andy/git/rtl8811AU_rtl8821A-linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-33-generic'
CC [M] /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_cmd.o
CC [M] /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_security.o
CC [M] /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.o
In file included from /home/andy/git/rtl8811AU_rtl8821A-linux/include/drv_types.h:64:0,
from /home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:22:
/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/andy/git/rtl8811AU_rtl8821A-linux/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/andy/git/rtl8811AU_rtl8821A-linux/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^
/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:65:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "%s %sn", DRV_NAME, DRIVERVERSION);
^
/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:66:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
DBG_871X_SEL_NL(sel, "build time: %s %sn", __DATE__, __TIME__);
^
//snip LOADS of errors
/home/andy/git/rtl8811AU_rtl8821A-linux/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^
/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.c:1221:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(m, "best_channel_24G = %dn", best_channel_24G);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.o' failed
make[2]: *** [/home/andy/git/rtl8811AU_rtl8821A-linux/core/rtw_debug.o] Error 1
Makefile:1524: recipe for target '_module_/home/andy/git/rtl8811AU_rtl8821A-linux' failed
make[1]: *** [_module_/home/andy/git/rtl8811AU_rtl8821A-linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-33-generic'
Makefile:1323: recipe for target 'modules' failed
make: *** [modules] Error 2
[email protected]:~/git/rtl8811AU_rtl8821A-linux$
** sortie du script d'installation à partir des pilotes inclus :
[email protected]:~/Downloads/wifi dongle$ sudo ./install.sh
##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51.tar.gz
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/
//snip - loads of files listed
rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51
Authentication requested [root] for make clean:
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
Authentication requested [root] for make driver:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-33-generic/build M=/home/andy/Downloads/wifi dongle/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51 modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-33-generic'
arch/x86/Makefile:140: CONFIG_X86_X32 enabled but no binutils support
make[1]: *** No rule to make target 'dongle/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-33-generic'
Makefile:1551: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
Réponse acceptée :
Pour que le wifi fonctionne, vous devez installer le rtl8812au-dkms
depuis le dépôt officiel d'Ubuntu.
sudo apt-get install rtl8812au-dkms
sudo modprobe 8812au
Ou en construisant le pilote en utilisant dkms
à partir de diederikdehaas/rtl8812AU git repo (prise en charge ajoutée pour la version du noyau>=4.7), en tant que root run :
apt install dkms
git clone https://github.com/diederikdehaas/rtl8812AU.git
cd rtl8812AU
DRV_NAME=rtl8812AU
DRV_VERSION=4.3.14
mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
git archive driver-${DRV_VERSION} | tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
dkms install -m ${DRV_NAME} -v ${DRV_VERSION}
modprobe -v 8812au