GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Ubuntu - Adattatore Wi-Fi Realtek Rtl8811au funzionante su Xubuntu?

Chiuso. Questa domanda è fuori tema. Attualmente non accetta risposte.

Vuoi migliorare questa domanda? Aggiorna la domanda in modo che sia in argomento per Unix e Linux Stack Exchange.

Chiuso 3 anni fa.


Migliora questa domanda

Sto configurando un PC con XUbuntu e finora sta andando abbastanza bene. Sto avendo problemi a far funzionare il wifi.

Inizialmente ho provato con il mio Netgear A6200 esistente ma mi è stato detto che fondamentalmente i driver non esistono e che avrei dovuto usare i driver di Windows, cosa che non mi piaceva, quindi ho acquistato uno di questi:

https://www.amazon.co.uk/gp/product/B06XZ1DBPZ/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

che elenca Linux come sistema operativo supportato.

Non ho avuto molta fortuna a farlo funzionare. Speravo di collegarlo e ottenere i driver magicamente, ma non ho avuto tanta fortuna.

Il chipset è apparentemente realtek RTL8811AU (L'ho ottenuto collegandolo al mio PC Windows).

Ho trovato questo post:
https://ubuntuforums.org/showthread.php?t=2306417

ma make fails* – Inoltre non mi piace l'idea di doverlo rifare ogni volta che linux si aggiorna...

Ho esaminato i driver forniti con il dongle e c'è un install.sh per compilare e installare i driver (presumo che questo stia facendo una cosa simile al repository github a cui si fa riferimento nel post precedente). Anche questo script di installazione non riesce**…

C'è anche un tar di codice sorgente incluso nel disco...

Speravo davvero in un comando apt-get per farlo in modo da tracciare e aggiornare i driver man mano che uscivano nuovi aggiornamenti.

Se riesco a farmi funzionare, dovrò davvero rifarlo ogni volta che ricevo un aggiornamento?

Sentendomi un po' incazzato per questo, fino ad ora è andato tutto molto bene!
Grazie

* 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$

** installa l'output dello script dai driver inclusi:

[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
##################################################

Risposta accettata:

Per far funzionare il wifi dovresti installare il rtl8812au-dkms dal repository ufficiale di Ubuntu.

sudo apt-get install rtl8812au-dkms
sudo modprobe 8812au

Oppure creando il driver utilizzando dkms da diederikdehaas/rtl8812AU git repo (supporto aggiunto per la versione del kernel>=4.7), come root eseguito:

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

Ubuntu
  1. Come installare Nagios su Ubuntu 14.04

  2. L'adattatore Wi-Fi (chipset Realtek 8821ce) non viene trovato dopo l'aggiornamento a Ubuntu 18.04?

  3. Ubuntu 16.04 Nessun Wifi dopo la sospensione?

  4. Come installare in modo permanente il driver Wi-Fi Realtek 8723de in Ubuntu 18.04?

  5. Il Bluetooth non funziona su Ubuntu 13.10?

Come creare un server Minecraft su Ubuntu 20.04

Come installare Nagios 4.4.3 su Ubuntu 18.04 e Ubuntu 16.04

Accesso automatico non funzionante in Ubuntu 17.10

Come installare Make su Ubuntu 20.04

Come installare driver aggiuntivi in ​​Ubuntu

Hp Pavilion Dv4 Ubuntu 18.04 Modalità aereo abilitata Wi-Fi e Bluetooth non funzionanti?