LINUX.ORG.RU

Ошибка «Make» при установке драйвера Wlan rtl8812au

 ,


0

2

Люди добрые помогите с установкой дров для Alfa AWUS036ACH в kali

При установке столкнулся с следующей проблемой.

~/rtl8812au# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.14.0-kali3-amd64/build M=/root/rtl8812au  modules
make[1]: вход в каталог «/usr/src/linux-headers-4.14.0-kali3-amd64»
  CC [M]  /root/rtl8812au/os_dep/linux/ioctl_cfg80211.o
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:807:6: error: passing argument 2 of ‘cfg80211_roamed’ from incompatible pointer type [-Werror=incompatible-pointer-types]
    , notify_channel
      ^~~~~~~~~~~~~~
In file included from /root/rtl8812au/include/osdep_service_linux.h:91:0,
                 from /root/rtl8812au/include/osdep_service.h:41,
                 from /root/rtl8812au/include/drv_types.h:32,
                 from /root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-headers-4.14.0-kali3-common/include/net/cfg80211.h:5477:6: note: expected ‘struct cfg80211_roam_info *’ but argument is of type ‘struct ieee80211_channel *’
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:809:6: warning: passing argument 3 of ‘cfg80211_roamed’ makes integer from pointer without a cast [-Wint-conversion]
    , cur_network->network.MacAddress
      ^~~~~~~~~~~
In file included from /root/rtl8812au/include/osdep_service_linux.h:91:0,
                 from /root/rtl8812au/include/osdep_service.h:41,
                 from /root/rtl8812au/include/drv_types.h:32,
                 from /root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-headers-4.14.0-kali3-common/include/net/cfg80211.h:5477:6: note: expected ‘gfp_t {aka unsigned int}’ but argument is of type ‘unsigned char *’
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:805:3: error: too many arguments to function ‘cfg80211_roamed’
   cfg80211_roamed(padapter->pnetdev
   ^~~~~~~~~~~~~~~
In file included from /root/rtl8812au/include/osdep_service_linux.h:91:0,
                 from /root/rtl8812au/include/osdep_service.h:41,
                 from /root/rtl8812au/include/drv_types.h:32,
                 from /root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-headers-4.14.0-kali3-common/include/net/cfg80211.h:5477:6: note: declared here
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_add_monitor_if’:
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:3962:12: error: ‘struct net_device’ has no member named ‘destructor’; did you mean ‘priv_destructor’?
  mon_ndev->destructor = rtw_ndev_destructor;
            ^~~~~~~~~~
            priv_destructor
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_preinit_wiphy’:
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6618:18: error: ‘WIPHY_FLAG_SUPPORTS_SCHED_SCAN’ undeclared (first use in this function); did you mean ‘WIPHY_FLAG_SUPPORTS_TDLS’?
  wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  WIPHY_FLAG_SUPPORTS_TDLS
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6618:18: note: each undeclared identifier is reported only once for each function it appears in
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c: At top level:
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6651:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .change_virtual_intf = cfg80211_rtw_change_iface,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6651:25: note: (near initialization for ‘rtw_cfg80211_ops.change_virtual_intf’)
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6676:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .add_virtual_intf = cfg80211_rtw_add_virtual_intf,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6676:22: note: (near initialization for ‘rtw_cfg80211_ops.add_virtual_intf’)
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.14.0-kali3-common/scripts/Makefile.build:319: ошибка выполнения рецепта для цели «/root/rtl8812au/os_dep/linux/ioctl_cfg80211.o»
make[4]: *** [/root/rtl8812au/os_dep/linux/ioctl_cfg80211.o] Ошибка 1
/usr/src/linux-headers-4.14.0-kali3-common/Makefile:1525: ошибка выполнения рецепта для цели «_module_/root/rtl8812au»
make[3]: *** [_module_/root/rtl8812au] Ошибка 2
Makefile:146: ошибка выполнения рецепта для цели «sub-make»
make[2]: *** [sub-make] Ошибка 2
Makefile:8: ошибка выполнения рецепта для цели «all»
make[1]: *** [all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.14.0-kali3-amd64»
Makefile:1717: ошибка выполнения рецепта для цели «modules»
make: *** [modules] Ошибка 2
root@BWxzm:~/rtl8812au# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.14.0-kali3-amd64/build M=/root/rtl8812au  modules
make[1]: вход в каталог «/usr/src/linux-headers-4.14.0-kali3-amd64»
  CC [M]  /root/rtl8812au/os_dep/linux/ioctl_cfg80211.o
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:807:6: error: passing argument 2 of ‘cfg80211_roamed’ from incompatible pointer type [-Werror=incompatible-pointer-types]
    , notify_channel
      ^~~~~~~~~~~~~~
In file included from /root/rtl8812au/include/osdep_service_linux.h:91:0,
                 from /root/rtl8812au/include/osdep_service.h:41,
                 from /root/rtl8812au/include/drv_types.h:32,
                 from /root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-headers-4.14.0-kali3-common/include/net/cfg80211.h:5477:6: note: expected ‘struct cfg80211_roam_info *’ but argument is of type ‘struct ieee80211_channel *’
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:809:6: warning: passing argument 3 of ‘cfg80211_roamed’ makes integer from pointer without a cast [-Wint-conversion]
    , cur_network->network.MacAddress
      ^~~~~~~~~~~
In file included from /root/rtl8812au/include/osdep_service_linux.h:91:0,
                 from /root/rtl8812au/include/osdep_service.h:41,
                 from /root/rtl8812au/include/drv_types.h:32,
                 from /root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-headers-4.14.0-kali3-common/include/net/cfg80211.h:5477:6: note: expected ‘gfp_t {aka unsigned int}’ but argument is of type ‘unsigned char *’
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:805:3: error: too many arguments to function ‘cfg80211_roamed’
   cfg80211_roamed(padapter->pnetdev
   ^~~~~~~~~~~~~~~
In file included from /root/rtl8812au/include/osdep_service_linux.h:91:0,
                 from /root/rtl8812au/include/osdep_service.h:41,
                 from /root/rtl8812au/include/drv_types.h:32,
                 from /root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-headers-4.14.0-kali3-common/include/net/cfg80211.h:5477:6: note: declared here
 void cfg80211_roamed(struct net_device *dev, struct cfg80211_roam_info *info,
      ^~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_add_monitor_if’:
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:3962:12: error: ‘struct net_device’ has no member named ‘destructor’; did you mean ‘priv_destructor’?
  mon_ndev->destructor = rtw_ndev_destructor;
            ^~~~~~~~~~
            priv_destructor
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_preinit_wiphy’:
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6618:18: error: ‘WIPHY_FLAG_SUPPORTS_SCHED_SCAN’ undeclared (first use in this function); did you mean ‘WIPHY_FLAG_SUPPORTS_TDLS’?
  wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  WIPHY_FLAG_SUPPORTS_TDLS
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6618:18: note: each undeclared identifier is reported only once for each function it appears in
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c: At top level:
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6651:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .change_virtual_intf = cfg80211_rtw_change_iface,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6651:25: note: (near initialization for ‘rtw_cfg80211_ops.change_virtual_intf’)
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6676:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .add_virtual_intf = cfg80211_rtw_add_virtual_intf,
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rtl8812au/os_dep/linux/ioctl_cfg80211.c:6676:22: note: (near initialization for ‘rtw_cfg80211_ops.add_virtual_intf’)
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.14.0-kali3-common/scripts/Makefile.build:319: ошибка выполнения рецепта для цели «/root/rtl8812au/os_dep/linux/ioctl_cfg80211.o»
make[4]: *** [/root/rtl8812au/os_dep/linux/ioctl_cfg80211.o] Ошибка 1
/usr/src/linux-headers-4.14.0-kali3-common/Makefile:1525: ошибка выполнения рецепта для цели «_module_/root/rtl8812au»
make[3]: *** [_module_/root/rtl8812au] Ошибка 2
Makefile:146: ошибка выполнения рецепта для цели «sub-make»
make[2]: *** [sub-make] Ошибка 2
Makefile:8: ошибка выполнения рецепта для цели «all»
make[1]: *** [all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.14.0-kali3-amd64»
Makefile:1717: ошибка выполнения рецепта для цели «modules»
make: *** [modules] Ошибка 2

Исходники модуля не адаптированы под последнюю версию ядра, которую ты используешь.

В информации о релизе описана поддержка из коробки:

$ sudo apt-get update
$ sudo apt install realtek-rtl88xxau-dkms

Пробовал? После установки может понадобиться сделать

$ sudo modprobe 8812au
$ sudo systemctl restart network-manager
Deleted ()
Последнее исправление: Deleted (всего исправлений: 1)
Ответ на: комментарий от Sum41

Как это проявляется? Что в логах, в dmesg etc.

Прикладывай ссылки на pastebin только, не надо сюда целиком лог в сообщение.

Deleted ()
Ответ на: комментарий от Deleted

Получилось! пришлось выполнить

apt remove realtek-rtl88xxau-dkms && apt purge realtek-rtl88xxau-dkms apt autoremove && apt autoclean reboot now

Затем перезаписал драйвера из git clone https://github.com/kimocoder/rtl8812au

cd rtl8812au make && make install

ip link set wlan0 down iwconfig wlan0 mode monitor ip link set wlan0 up

Здесь уже разжевали проблему https://forums.kali.org/showthread.php?36814-How-to-install-AWUS036ACH-Driver... Извиняюсь за свое неумение гуглить. Большое спасибо за помощь.

Sum41 ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.