You are not logged in.

#1 2013-05-04 13:23:00

jabster
Member
Registered: 2013-05-04
Posts: 7

[SOLVED] Problems compiling ralink drivers

Hi.

So I seem to have the usual problem with the kernel drivers vs the ralink drivers, and I'm trying to compile and install the ralink drivers and am getting errors.

I've got two RT2800USB wifi keys:
1) A D-link DWA-160, HW Rev B1
2) Rosewill RNX-N100

Both "just work," but only at in the b/g band, and I'd like to get them working as N devices.

I've got a fully updated, brand new installation, running KDE, kernel 3.8.11, headers are installed.

Re the drivers, I've changed the two options in config.mk for WPA supplicant to "y".

When I "make" I get this output:

make -C tools
make[1]: Entering directory `/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/tools'
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/tools/bin2h
cp -f os/linux/Makefile.6 /home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/Makefile
make -C /lib/modules/3.8.11-1-ARCH/build SUBDIRS=/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux modules
make[1]: Entering directory `/usr/src/linux-3.8.11-1-ARCH'
  CC [M]  /home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.o
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPAllocUsbBulkBufStruct’:
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:52:2: error: implicit declaration of function ‘usb_buffer_alloc’ [-Werror=implicit-function-declaration]
  *ppXBuffer = RTUSB_URB_ALLOC_BUFFER(pObj->pUsb_Dev, bufLen, pDmaAddr);
  ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:52:13: warning: assignment makes pointer from integer without a cast [enabled by default]
  *ppXBuffer = RTUSB_URB_ALLOC_BUFFER(pObj->pUsb_Dev, bufLen, pDmaAddr);
             ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPFreeUsbBulkBufStruct’:
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:78:3: error: implicit declaration of function ‘usb_buffer_free’ [-Werror=implicit-function-declaration]
   RTUSB_URB_FREE_BUFFER(pObj->pUsb_Dev, bufLen, *ppXBuffer, data_dma);
   ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPFreeTxRxRingMemory’:
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:234:9: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type [enabled by default]
         pPsPollContext->data_dma);
         ^                                                                                                                                                                                                
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
 static NDIS_STATUS RTMPFreeUsbBulkBufStruct(
                    ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:241:9: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type [enabled by default]
         pNullContext->data_dma);
         ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
 static NDIS_STATUS RTMPFreeUsbBulkBufStruct(
                    ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:278:11: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type [enabled by default]
           pHTTXContext->data_dma);
           ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ‘UCHAR **’ but argument is of type ‘struct __HTTX_BUFFER **’
 static NDIS_STATUS RTMPFreeUsbBulkBufStruct(
                    ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘NICInitTransmit’:
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:507:12: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type [enabled by default]
            pMLMEContext->data_dma);
            ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
 static NDIS_STATUS RTMPFreeUsbBulkBufStruct(
                    ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPAllocTxRxRingMemory’:
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:566:13: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type [enabled by default]
             "HTTxContext");
             ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ‘VOID **’ but argument is of type ‘struct __HTTX_BUFFER **’
 static NDIS_STATUS RTMPAllocUsbBulkBufStruct(
                    ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:596:12: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type [enabled by default]
            "TxNullContext");
            ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ‘VOID **’ but argument is of type ‘struct __TX_BUFFER **’
 static NDIS_STATUS RTMPAllocUsbBulkBufStruct(
                    ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:610:12: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type [enabled by default]
            "TxPsPollContext");
            ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ‘VOID **’ but argument is of type ‘struct __TX_BUFFER **’
 static NDIS_STATUS RTMPAllocUsbBulkBufStruct(
                    ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:628:13: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type [enabled by default]
             "RxContext");
             ^
/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ‘VOID **’ but argument is of type ‘UCHAR **’
 static NDIS_STATUS RTMPAllocUsbBulkBufStruct(
                    ^
cc1: some warnings being treated as errors
make[2]: *** [/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../common/cmm_mac_usb.o] Error 1
make[1]: *** [_module_/home/lucas/Downloads/DLink-2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-3.8.11-1-ARCH'
make: *** [LINUX] Error 2

Can someone help me with that error?

The driver I'm trying to install is: RT2870_Linux_STA_v2.4.0.1

Once I get the driver built I pretty much know what to do (blacklist rt2800usb, etc).

Thanks,
john

Last edited by jabster (2013-05-06 00:51:27)

Offline

#2 2013-05-06 00:50:57

jabster
Member
Registered: 2013-05-04
Posts: 7

Re: [SOLVED] Problems compiling ralink drivers

After much more searching and tweaking of google search terms, I found this:
http://bernaerts.dyndns.org/linux/229-u … a160-revb2

Seems this one requires more than just the WPA supplicant changes.

All maked and make installed now.

-john

Offline

Board footer

Powered by FluxBB