USB WiFi свисток

Ребят прошу помогите разобраться с исчадием китая RT5370, не хочет компилироватся драйвер
лог: make -C tools
make[1]: Entering directory '/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
cp -f os/linux/Makefile.6 /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile
make -C /lib/modules/4.15.0-45-generic/build SUBDIRS=/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-45-generic'
Makefile:975: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CC [M]  /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.o
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c: In function ‘RtmpPrepareHwNullFrame’:
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3142:34: error: passing argument 2 of ‘hex_dump’ from incompatible pointer type [-Werror=incompatible-pointer-types]
    hex_dump("null frame before", &longValue, 4);
                                  ^
In file included from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:66:0,
                 from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_os_util.h:679:6: note: expected ‘unsigned char *’ but argument is of type ‘UINT32 * {aka unsigned int *}’
void hex_dump(char *str, unsigned char *pSrcBufVA, unsigned int SrcBufLen);
      ^~~~~~~~
In file included from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0,
                 from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:33,
                 from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:787:29: warning: passing argument 2 of ‘RTUSBReadMACRegister’ makes integer from pointer without a cast [-Wint-conversion]
  RTUSBReadMACRegister((_A), (_R), (PUINT32) (_pV))
                             ^
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3150:4: note: in expansion of macro ‘RTMP_IO_READ32’
    RTMP_IO_READ32(pAd, pAd->NullBufOffset + TXWISize+ i, &longValue);
    ^~~~~~~~~~~~~~
In file included from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:61:0,
                 from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp.h:7214:10  note: expected ‘USHORT {aka short unsigned int}’ but argument is of type ‘USHORT * {aka short unsigned int *}’
NTSTATUS RTUSBReadMACRegister(
          ^~~~~~~~~~~~~~~~~~~~
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3151:33: error: passing argument 2 of ‘hex_dump’ from incompatible pointer type [-Werror=incompatible-pointer-types]
    hex_dump("null frame after", &longValue, 4);
                                 ^
In file included from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:66:0,
                 from /home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_os_util.h:679:6: note: expected ‘unsigned char *’ but argument is of type ‘UINT32 * {aka unsigned int *}’
void hex_dump(char *str, unsigned char *pSrcBufVA, unsigned int SrcBufLen);
      ^~~~~~~~
/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3021:8: warning: unused variable ‘MlmeRate’ [-Wunused-variable]
  UCHAR MlmeRate;
        ^~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.o' failed
make[2]: *** [/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.o] Error 1
Makefile:1551: recipe for target '_module_/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux' failed
make[1]: *** [_module_/home/elereman/wifi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-45-generic'
Makefile:388: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

0
lord_i - 16 Февраль, 2019 - 22:35
Изображение пользователя lord_i.

Покажите выхлоп lsusb после подключения адаптера.
Есть у меня подозрение что ничего компилировать не надо.

Ну а если очень хочется скомпилировать, в Вашем сообщении есть подсказка:

please install libelf-dev, libelf-devel or elfutils-libelf-devel

0
Elereman - 16 Февраль, 2019 - 22:54

Пакеты установил, тоже самое.
Вот lsusb: Bus 001 Device 003: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0e8f:0040 GreenAsia Inc.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

0
lord_i - 17 Февраль, 2019 - 14:28
Изображение пользователя lord_i.

Еще надо глянуть на выхлоп после подключения адаптера:
dmesg | tail -n 30
sudo lshw -C network
iwconfig

Отправить комментарий

CAPTCHA на основе изображений
Введите цифры