Tentando instalar o meu adaptador sem fio RTL8812AU

0

Estou recebendo um erro ao executar o install.sh (sudo ./install.sh) fornecido:

##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################

Eu removi alguns logs entre aqui que são sobre a descompactação do arquivo tar.

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-28-generic/build M=/home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505  modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-28-generic'
  CC [M]  /home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/core/rtw_cmd.o
In file included from /home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/include/drv_types.h:95:0,
                 from /home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/core/rtw_cmd.c:22:
/home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/include/hal_com.h:412:13: error: ‘file_path’ redeclared as different kind of symbol
 extern char file_path[PATH_LENGTH_MAX];
             ^
In file included from ./include/linux/seq_file.h:10:0,
                 from ./include/linux/pinctrl/consumer.h:17,
                 from ./include/linux/pinctrl/devinfo.h:21,
                 from ./include/linux/device.h:24,
                 from ./include/linux/dmaengine.h:20,
                 from ./include/linux/netdevice.h:38,
                 from /home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/include/osdep_service_linux.h:35,
                 from /home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/include/osdep_service.h:41,
                 from /home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/include/drv_types.h:32,
                 from /home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/core/rtw_cmd.c:22:
./include/linux/fs.h:2680:14: note: previous declaration of ‘file_path’ was here
 extern char *file_path(struct file *, char *, int);
              ^
scripts/Makefile.build:294: recipe for target '/home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/core/rtw_cmd.o' failed
make[2]: *** [/home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505/core/rtw_cmd.o] Error 1
Makefile:1524: recipe for target '_module_/home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505' failed
make[1]: *** [_module_/home/swift/Desktop/Linux/driver/rtl8812AU_linux_v4.3.13_14061.20150505] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-28-generic'
Makefile:1622: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################
    
por swiftmcpro 28.11.2017 / 12:01

2 respostas

0

Sugiro que você tente:

sudo apt-get update
sudo apt install git dkms
git clone https://github.com/gnab/rtl8812au.git
sudo cp -r rtl8812au  /usr/src/rtl8812au-4.2.2
sudo dkms add -m rtl8812au -v 4.2.2
sudo dkms build -m rtl8812au -v 4.2.2
sudo dkms install -m rtl8812au -v 4.2.2

Reinicie.

    
por chili555 28.11.2017 / 21:49
0

Eu encontrei este gord-rtl8812au-dkms_1.0-9_amd64.deb funcionando bem em 16.04.3-64. Sugiro que o Ubuntu verifique isso e substitua o 4.3.8.12175.20140902 + dfsg-0ubuntu2, que deixa a linha terrivelmente. link

    
por SKC 25.12.2017 / 05:13