Mediatek RT5372 Wifi driver sıkıntısı

Başlatan LollerMann, 29 Nisan 2017 - 11:13:57

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

LollerMann

Ubuntuya bir yazılım kullanmak için geri döndüm, Şu an windows ile Dual-Boot yapıyorum.
Sıkıntı, donanımın CD'si ile gelen yazılımda compile hatası alıyorum.
İnternetten indirdiğim kaynaklar da sıkıntı yaratıyor. Yazılımın en fazla 2012 sürümü var. Driver Cd'sinde olan da 2012.
Dark'ın kendi sitesinde 2009 yılından kalma yazılımlar geliyor. Desktekledikleri kernel 2.6.x.x .
Kali linux'da çalışıyor wifi'ya girebiliyordum. Şu anki ubuntudaki yazılım rt2800'da, wifileri görebiliyorum fakat onlara bağlanamıyorum.
lsusb, compile hatalarını birazdan boot edip ekleyeceğim.
lsusb:

lollermann@lollermannAndroid:~/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022$ lsusb
Bus 001 Device 002: ID 148f:5372 Ralink Technology, Corp. RT5372 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 003: ID 09da:0260 A4Tech Co., Ltd. KV-300H Isolation Keyboard
Bus 005 Device 002: ID 09da:000a A4Tech Co., Ltd. Optical Mouse Opto 510D / OP-620D
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
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


make (root yetkileriyle)

lollermann@lollermannAndroid:~/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022$ sudo make
[sudo] password for lollermann:
make -C tools
make[1]: Entering directory '/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
cp -f os/linux/Makefile.6 /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile
make -C /lib/modules/4.10.0-19-generic/build SUBDIRS=/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-19-generic'
  CC [M]  /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_md5.o
  CC [M]  /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.o
In file included from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:33,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/crypt_aes.h:31,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c:28:
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c: In function 'AES_Key_Wrap':
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c:1459:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
      DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Wrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainTextLength));
                                ^
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:666:16: note: in definition of macro 'DBGPRINT_RAW'
         printk Fmt;               \
                ^~~
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c:1459:6: note: in expansion of macro 'DBGPRINT'
      DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Wrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainTextLength));
      ^~~~~~~~
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c: In function 'AES_Key_Unwrap':
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c:1554:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
      DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Unwrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainLength));
                                ^
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:666:16: note: in definition of macro 'DBGPRINT_RAW'
         printk Fmt;               \
                ^~~
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c:1554:6: note: in expansion of macro 'DBGPRINT'
      DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Unwrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainLength));
      ^~~~~~~~
  CC [M]  /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_arc4.o
  CC [M]  /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.o
In file included from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:33,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.c:28:
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.c: In function 'MlmeResetRalinkCounters':
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.c:568:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       (UINT32)&pAd->RalinkCounters.OneSecEnd -
       ^
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:468:76: note: in definition of macro 'NdisZeroMemory'
fine NdisZeroMemory(Destination, Length)         memset(Destination, 0, Length)
                                                                         ^~~~~~
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.c:569:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       (UINT32)&pAd->RalinkCounters.OneSecStart);
       ^
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:468:76: note: in definition of macro 'NdisZeroMemory'
fine NdisZeroMemory(Destination, Length)         memset(Destination, 0, Length)
                                                                         ^~~~~~
  CC [M]  /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_wep.o
  CC [M]  /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/action.o
  CC [M]  /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.o
/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c: In function 'RtmpPrepareHwNullFrame':
/home/lollermann/Desktop/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/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:66:0,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/lollermann/Desktop/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/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:33,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/lollermann/Desktop/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/lollermann/Desktop/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/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:61:0,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/lollermann/Desktop/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/lollermann/Desktop/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/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:66:0,
                 from /home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/lollermann/Desktop/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/lollermann/Desktop/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:294: recipe for target '/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.o' failed
make[2]: *** [/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.o] Error 1
Makefile:1524: recipe for target '_module_/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux' failed
make[1]: *** [_module_/home/lollermann/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-19-generic'
Makefile:388: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
lollermann@lollermannAndroid:~/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022


Buraya göre donanımım listede:https://wiki.debian.org/rt2800usb