Instalar driver tplink AC600 T2U

Iniciado por helder84, 30 de Outubro de 2019, 19:55

tópico anterior - próximo tópico

helder84

Pessoal, estou tentando instalar esse adaptador wifi no Ubuntu.
Segui esse tutorial:

sudo apt install git dkms
git clone https://github.com/jeremyb31/rtl8812au-1.git
cd rtl8812au-1
sudo ./dkms-install.sh


Porém, obtive os seguintes erros:

DKMS make.log for rtl8812au-5.3.4 for kernel 5.3.0-19-generic (x86_64)
qua out 30 19:48:14 -03 2019
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.0-19-generic/build M=/var/lib/dkms/rtl8812au/5.3.4/build O="" modules
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-19-generic'
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/mesh/rtw_mesh.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_beamforming.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_rm.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_rm_fsm.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/usb_intf.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/usb_ops_linux.o
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.c:1415:22: error: initialization of 'u16 (*)(struct net_device *, struct sk_buff *, struct net_device *)' {aka 'short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *)'} from incompatible pointer type 'u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))' {aka 'short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))'} [-Werror=incompatible-pointer-types]
1415 |  .ndo_select_queue = rtw_select_queue,
      |                      ^~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.c:1415:22: note: (near initialization for 'rtw_netdev_ops.ndo_select_queue')
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_linux.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.o] Error 1
make[2]: ** Esperando que outros processos terminem.
make[1]: *** [Makefile:1653: _module_/var/lib/dkms/rtl8812au/5.3.4/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-19-generic'
make: *** [Makefile:1711: modules] Error 2


E não sei como resolver.
Agradeço desde já.

galactus

Instalou os pacotes para poder compilar?

O linux-source por exemplo?

Instalou esses pacotes abaixo antes de tentar compilar:

sudo apt-get install build-essential
sudo apt-get install bc
sudo apt-get install libelf-dev
sudo apt-get install linux-headers-`uname -r`

BigLinux no Notebook  / Várias Distros Virtualizadas no PC.