[Solved] How to install Ralink RT2870?

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
johnywhy

[Solved] How to install Ralink RT2870?

Post by johnywhy »

Hi, just got this wifi adaptor:
http://www.ebay.com/itm/161736768464

the old built-in adapter in my laptop is rt5390
product: RT5390, driver=rt2800pci, driverversion=3.16.0-46-generic, firmware=0.34
ip=192.168.1.128

The ReadMe on the CD accompanying the new RT2870 says:
This is a linux device driver for Ralink RT2870 USB ABGN WLAN Card.
Ralink 802.11n Wireless LAN Card.
RT2870 Wireless Lan Linux Driver: rt2870.o/rt2870.ko
Supporting Kernel: linux kernel 2.4 and 2.6 series. Tested in Redhat 7.3 or later.

lsusb finds it, but lshw does not seem to find it.
$ lsusb
....
Bus 003 Device 007: ID 148f:7601 Ralink Technology, Corp.
....
(the 5390 below is the built-in adapter):
$ sudo lshw -C network
*-network
description: Wireless interface
product: RT5390 Wireless 802.11n 1T/1R PCIe
vendor: Ralink corp.
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlan0
version: 00
serial: 0c:84:dc:09:2b:80
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rt2800pci driverversion=3.16.0-46-generic firmware=0.34 ip=192.168.1.128 latency=0 link=yes multicast=yes wireless=IEEE
I'm trying to install the 2870 dongle, and getting issues:
$ make clean
cp -f os/linux/Makefile.clean os/linux/Makefile
make -C os/linux clean
make[1]: Entering directory `/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
rm -f ../../common/*.o
rm -f ../../common/.*.cmd .*.flags .*.d
rm -f ../../os/linux/*.o *.ko *.mod.o *.mod.c
rm -f ../../os/linux/.*.cmd .*.flags .*.d
rm -fr ../../os/linux/.tmp_versions
rm -f ../../os/linux/Module.symvers
rm -f ../../os/linux/Modules.symvers
rm -f ../../os/linux/Module.markers
rm -f ../../os/linux/modules.order
rm -f ../../chips/*.o
rm -f ../../chips/.*.cmd .*.flags .*.d
rm -f ../../rate_ctrl/*.o
rm -f ../../rate_ctrl/.*.cmd .*.flags .*.d
rm -f ../../ate/common/*.o
rm -f ../../ate/common/.*.cmd .*.flags .*.d
rm -f ../../ate/chips/*.o
rm -f ../../ate/chips/.*.cmd .*.flags .*.d
rm -f ../../phy/*.o
rm -f ../../phy/.*.cmd .*.flags .*.d
rm -f ../../mac/*.o
rm -f ../../mac/.*.cmd .*.flags .*.d
rm -f ../../mcu/*.o
rm -f ../../mcu/.*.cmd .*.flags .*.d
rm -f ../../mgmt/*.o
rm -f ../../mgmt/.*.cmd .*.flags .*.d
rm -f ../../naf/*.o
rm -f ../../naf/.*.cmd .*.flags .*.d
rm -f ../../sta/*.o
rm -f ../../sta/.*.cmd .*.flags .*.d
make[1]: Leaving directory `/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
rm -rf os/linux/Makefile
boom@Boombox ~/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913 $ make
make -C tools
make[1]: Entering directory `/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
cp -f os/linux/Makefile.6 /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
make -C /lib/modules/3.16.0-46-generic/build SUBDIRS=/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-46-generic'
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c:331:16: warning: unused variable ‘pAd’ [-Wunused-variable]
RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c:399:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/assoc.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth_rsp.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c:2181:12: warning: passing argument 8 of ‘StaAddMacTableEntry’ from incompatible pointer type [enabled by default]
ie_list->CapabilityInfo) == FALSE)
^
In file included from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:59:0,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c:28:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp.h:7892:9: note: expected ‘struct IE_LISTS *’ but argument is of type ‘struct BCN_IE_LIST *’
BOOLEAN StaAddMacTableEntry(
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sanity.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.c: In function ‘STAHandleRxDataFrame’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.c:523:4: warning: passing argument 2 of ‘MacTableLookup’ from incompatible pointer type [enabled by default]
pEntry = MacTableLookup(pAd, &pHeader->Addr2);
^
In file included from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:59:0,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.c:28:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp.h:8429:18: note: expected ‘UCHAR *’ but argument is of type ‘UCHAR (*)[6]’
MAC_TABLE_ENTRY *MacTableLookup(RTMP_ADAPTER *pAd, UCHAR *pAddr);
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/connect.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/wpa.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlRF’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5306:7: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘LONG’ [-Wformat=]
sprintf(msg+strlen(msg), "BANK%d_R%02d:%02X ", bank_Id, rfId, rfValue);
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5359:3: warning: passing argument 2 of ‘RtmpDrvAllRFPrint’ from incompatible pointer type [enabled by default]
RtmpDrvAllRFPrint(NULL, msg, strlen(msg));
^
In file included from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:64:0,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:28:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_os_util.h:668:6: note: expected ‘UINT32 *’ but argument is of type ‘PSTRING’
VOID RtmpDrvAllRFPrint(
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5209:22: warning: unused variable ‘rf_bank’ [-Wunused-variable]
UCHAR regRF = 0, rf_bank = 0;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwgenie’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:7610:13: warning: assignment from incompatible pointer type [enabled by default]
eid_ptr = pAd->StaCfg.pWpaAssocIe;
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_md5.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_sha2.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_hmac.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Wrap’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.c:1459:6: 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/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Unwrap’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.c:1554:6: 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));
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_arc4.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.o
In file included from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44:0,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:33,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:28:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c: In function ‘MlmeResetRalinkCounters’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:544:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(UINT32)&pAd->RalinkCounters.OneSecEnd -
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:473:76: note: in definition of macro ‘NdisZeroMemory’
#define NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:545:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(UINT32)&pAd->RalinkCounters.OneSecStart);
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:473:76: note: in definition of macro ‘NdisZeroMemory’
#define NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c: In function ‘AsicRxAntEvalTimeout’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:5201:45: warning: unused variable ‘rssi_diff’ [-Wunused-variable]
CHAR larger = -127, rssi0, rssi1, rssi2, rssi_diff;
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wep.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/action.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: In function ‘CmdRspEventCallbackHandle’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2509:8: warning: unused variable ‘Ret’ [-Wunused-variable]
INT32 Ret;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: In function ‘StopDmaTx’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2684:8: warning: unused variable ‘IdleNums’ [-Wunused-variable]
UINT8 IdleNums = 0;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2682:20: warning: unused variable ‘UsbCfg’ [-Wunused-variable]
USB_DMA_CFG_STRUC UsbCfg;
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitAsicFromEEPROM’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:981:9: warning: unused variable ‘i’ [-Wunused-variable]
USHORT i;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAdapter’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1292:22: warning: unused variable ‘GloCfg’ [-Wunused-variable]
WPDMA_GLO_CFG_STRUC GloCfg;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAsic’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1367:11: warning: unused variable ‘KeyIdx’ [-Wunused-variable]
USHORT KeyIdx;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1656:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init_inf.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_tkip.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_aes.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sync.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c: In function ‘RtmpChipOpsEepromHook’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c:34:9: warning: unused variable ‘e2p_csr’ [-Wunused-variable]
UINT32 e2p_csr;
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sanity.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: In function ‘Set_DebugFunc_Proc’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c:1084:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘const char *’ [-Wformat=]
DBGPRINT_S(RT_DEBUG_TRACE, ("Set RTDebugFunc = 0x%x\n",__FUNCTION__, RTDebugFunc));
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c:1084:2: warning: too many arguments for format [-Wformat-extra-args]
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: In function ‘set_rf’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c:5730:3: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 5 has type ‘UCHAR *’ [-Wformat=]
rv = sscanf(arg, "%d-%d-%x", &(bank_id), &(rf_id), &(rf_val));
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: In function ‘wmode_valid_and_correct’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c:279:8: warning: unused variable ‘mode’ [-Wunused-variable]
UCHAR mode = *wmode;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: At top level:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c:264:16: warning: ‘wmode_valid’ defined but not used [-Wunused-function]
static BOOLEAN wmode_valid(RTMP_ADAPTER *pAd, enum WIFI_MODE wmode)
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wpa.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_radar.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/spectrum.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/spectrum.c: In function ‘PeerMeasureReportAction’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/spectrum.c:1972:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_ERROR, ("%s unable to alloc memory for measure report buffer (size=%d).\n", __FUNCTION__, sizeof(MEASURE_RPI_REPORT)));
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_timer.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_channel.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c: In function ‘rtmp_read_multest_from_file’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c:2671:23: warning: unused variable ‘pWdsEntry’ [-Wunused-variable]
PRT_802_11_WDS_ENTRY pWdsEntry;
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_asic.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/scan.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cmd.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/uapsd.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ps.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/ra_ctrl.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_legacy.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_ags.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/rtmp_chip.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/txpower.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mac/rtmp_mac.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_hw.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_entrytb.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c: In function ‘NICInitBBP’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c:61:8: warning: unused variable ‘R0’ [-Wunused-variable]
UCHAR R0 = 0xff;
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_phy.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_rf.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.o
In file included from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44:0,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_config.h:33,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.c:30:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.c: In function ‘convert_reordering_packet_to_preAMSDU_or_802_3_packet’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:886:34: warning: assignment makes integer from pointer without a cast [enabled by default]
((RTPKT_TO_OSPKT(_pkt))->tail) = (PUCHAR)((_start) + (_len))
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:929:2: note: in expansion of macro ‘SET_OS_PKT_DATATAIL’
SET_OS_PKT_DATATAIL(__pRxPkt, __pData, __DataSize); \
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.c:1574:2: note: in expansion of macro ‘RTMP_OS_PKT_INIT’
RTMP_OS_PKT_INIT(pRxBlk->pRxPacket,
^
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_ht.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_os_util.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/sta_ioctl.o
CC [M] /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsUsDelay’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:179:8: warning: unused variable ‘i’ [-Wunused-variable]
ULONG i;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:497:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
NdisMoveMemory(skb->tail, pHeader802_3, HdrLen);
^
In file included from ./arch/x86/include/asm/string.h:4:0,
from include/linux/string.h:17,
from include/linux/bitmap.h:8,
from include/linux/cpumask.h:11,
from ./arch/x86/include/asm/cpumask.h:4,
from ./arch/x86/include/asm/msr.h:10,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/thread_info.h:23,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
./arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
void *memmove(void *dest, const void *src, size_t count);
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:499:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
NdisMoveMemory(skb->tail, pData, DataSize);
^
In file included from ./arch/x86/include/asm/string.h:4:0,
from include/linux/string.h:17,
from include/linux/bitmap.h:8,
from include/linux/cpumask.h:11,
from ./arch/x86/include/asm/cpumask.h:4,
from ./arch/x86/include/asm/msr.h:10,
from ./arch/x86/include/asm/processor.h:20,
from ./arch/x86/include/asm/thread_info.h:23,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:31,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
./arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
void *memmove(void *dest, const void *src, size_t count);
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:650:20: warning: assignment makes integer from pointer without a cast [enabled by default]
pClonedPkt->tail = pClonedPkt->data + pClonedPkt->len;
^
In file included from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_os.h:44:0,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp_comm.h:75,
from /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:32:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsPktInit’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/os/rt_linux.h:886:34: warning: assignment makes integer from pointer without a cast [enabled by default]
((RTPKT_TO_OSPKT(_pkt))->tail) = (PUCHAR)((_start) + (_len))
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:669:2: note: in expansion of macro ‘SET_OS_PKT_DATATAIL’
SET_OS_PKT_DATATAIL(pRxPkt, pData, DataSize);
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:695:15: warning: assignment makes integer from pointer without a cast [enabled by default]
pOSPkt->tail = pOSPkt->data + pOSPkt->len;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1121:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
pOSFSInfo->fsuid = current_fsuid();
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:1122:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
pOSFSInfo->fsgid = current_fsgid();
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: warning: passing argument 2 of ‘file_w->f_op->write’ from incompatible pointer type [enabled by default]
file_w->f_op->write(file_w, pBuf, BufLen, &file_w->f_pos);
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2052:4: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
^
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
struct net_device *net_dev = (struct net_device *)pNetDev;
^
make[2]: *** [/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] Error 1
make[1]: *** [_module_/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-46-generic'
make: *** [LINUX] Error 2
# make install
make -C /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux -f Makefile.6 install
mkdir: cannot create directory ‘/etc/Wireless’: File exists
make[1]: Entering directory `/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/3.16.0-46-generic/kernel/drivers/net/wireless/
install -m 644 -c mt7601Usta.ko /lib/modules/3.16.0-46-generic/kernel/drivers/net/wireless/
install: cannot stat ‘mt7601Usta.ko’: No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/boom/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux'
make: *** [install] Error 2
re the error "install: cannot stat ‘mt7601Usta.ko’: No such file or directory", one thread suggested blacklisting the builtin module. i removed/blacklisted rt2800pci successfully. But on reboot, the computer still did not find the rt2870 usb dongle.

these pages might be helpful, but hope i don't have to go there:
http://ubuntuforums.org/showthread.php?t=1342593
http://ubuntuforums.org/showthread.php? ... ost8591348

thx for any help
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kelebek333
Level 4
Level 4
Posts: 418
Joined: Sat Jun 25, 2011 11:57 am

Re: How to install Ralink RT2870?

Post by kelebek333 »

https://github.com/porjo/mt7601 wrote:Now that Kernel 4.2 has been released which contains a driver for mt7601u, this repository is now deprecated.
You can try to manually install kernel 4.2.x for MT7601.

http://mintguide.org/system/482-install ... -mint.html
johnywhy

Re: How to install Ralink RT2870?

Post by johnywhy »

kelebek333 wrote:You can try to manually install kernel 4.2.x for MT7601.
thx, but i believe i've read it's recommended to keep my kernel within the same major version. i've got:
$ uname -a
Linux Boombox 3.16.0-46-generic #62~14.04.1-Ubuntu SMP Tue Aug 11 16:27:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Mint Updater says 3.16.0-46 is loaded. My most recent clean install was Mint 17.2.

Updating the whole kernel seems a rather extreme solution
johnywhy

Re: How to install Ralink RT2870?

Post by johnywhy »

kelebek333 wrote:You can try to manually install kernel 4.2.x for MT7601.
http://mintguide.org/system/482-install ... -mint.html
i attempted to install 4.2 using the page you linked.
It failed
during install. Errors below.

After reboot, mint says 4.2 is loaded. Meantime, the dongle still does not work.

due to errors during install i don't know if this 4.2 is reliable or not.

During 4.2 install, I noticed some messages about gnome menus, but i'm using mint xfce. Should this installer work with xfce?

Update: i attempted the following, but didn't help.
$ sudo modprobe rt2800usb
Here's output of install process:
$ cd /tmp; wget http://kernel.ubuntu.com/~kernel-ppa/ma ... _amd64.deb http://kernel.ubuntu.com/~kernel-ppa/ma ... 30_all.deb http://kernel.ubuntu.com/~kernel-ppa/ma ... _amd64.deb; sudo dpkg -i *.deb
--2015-09-13 17:27:08-- http://kernel.ubuntu.com/~kernel-ppa/ma ... _amd64.deb
Resolving kernel.ubuntu.com (kernel.ubuntu.com)... 91.189.94.216
Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 740058 (723K) [application/x-debian-package]
Saving to: ‘linux-headers-4.2.0-040200-generic_4.2.0-040200.201508301530_amd64.deb’

100%[======================================>] 740,058 300KB/s in 2.4s

2015-09-13 17:27:13 (300 KB/s) - ‘linux-headers-4.2.0-040200-generic_4.2.0-040200.201508301530_amd64.deb’ saved [740058/740058]

--2015-09-13 17:27:13-- http://kernel.ubuntu.com/~kernel-ppa/ma ... 30_all.deb
Reusing existing connection to kernel.ubuntu.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 9566356 (9.1M) [application/x-debian-package]
Saving to: ‘linux-headers-4.2.0-040200_4.2.0-040200.201508301530_all.deb’

100%[======================================>] 9,566,356 590KB/s in 16s

2015-09-13 17:27:29 (575 KB/s) - ‘linux-headers-4.2.0-040200_4.2.0-040200.201508301530_all.deb’ saved [9566356/9566356]

--2015-09-13 17:27:29-- http://kernel.ubuntu.com/~kernel-ppa/ma ... _amd64.deb
Connecting to kernel.ubuntu.com (kernel.ubuntu.com)|91.189.94.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 55345508 (53M) [application/x-debian-package]
Saving to: ‘linux-image-4.2.0-040200-generic_4.2.0-040200.201508301530_amd64.deb’

100%[======================================>] 55,345,508 620KB/s in 92s

2015-09-13 17:29:02 (588 KB/s) - ‘linux-image-4.2.0-040200-generic_4.2.0-040200.201508301530_amd64.deb’ saved [55345508/55345508]

FINISHED --2015-09-13 17:29:02--
Total wall clock time: 1m 53s
Downloaded: 3 files, 63M in 1m 51s (580 KB/s)
[sudo] password for boom:
(Reading database ... 273948 files and directories currently installed.)
Preparing to unpack kernelupdate_0.1-2~lffl~saucy~ppa_all.deb ...
Unpacking kernelupdate (0.1-2~lffl~saucy~ppa) over (0.1-2~lffl~saucy~ppa) ...
Preparing to unpack linux-headers-4.2.0-040200_4.2.0-040200.201508301530_all.deb ...
Unpacking linux-headers-4.2.0-040200 (4.2.0-040200.201508301530) over (4.2.0-040200.201508301530) ...
Preparing to unpack linux-headers-4.2.0-040200-generic_4.2.0-040200.201508301530_amd64.deb ...
Unpacking linux-headers-4.2.0-040200-generic (4.2.0-040200.201508301530) over (4.2.0-040200.201508301530) ...
Preparing to unpack linux-image-4.2.0-040200-generic_4.2.0-040200.201508301530_amd64.deb ...
Done.
Unpacking linux-image-4.2.0-040200-generic (4.2.0-040200.201508301530) ...
Setting up kernelupdate (0.1-2~lffl~saucy~ppa) ...
Setting up linux-headers-4.2.0-040200 (4.2.0-040200.201508301530) ...
Setting up linux-headers-4.2.0-040200-generic (4.2.0-040200.201508301530) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.2.0-040200-generic /boot/vmlinuz-4.2.0-040200-generic
Error! Bad return status for module build on kernel: 4.2.0-040200-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
Setting up linux-image-4.2.0-040200-generic (4.2.0-040200.201508301530) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.2.0-040200-lowlatency
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.2.0-040200-generic /boot/vmlinuz-4.2.0-040200-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.2.0-040200-generic /boot/vmlinuz-4.2.0-040200-generic
Error! Bad return status for module build on kernel: 4.2.0-040200-generic (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.2.0-040200-generic /boot/vmlinuz-4.2.0-040200-generic
update-initramfs: Generating /boot/initrd.img-4.2.0-040200-generic
Warning: No support for locale: en_US.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.2.0-040200-generic /boot/vmlinuz-4.2.0-040200-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 4.2.0-040200-generic /boot/vmlinuz-4.2.0-040200-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-4.2.0-040200-lowlatency...
P: Writing config for /boot/vmlinuz-4.2.0-040200-generic...
P: Writing config for /boot/vmlinuz-3.16.0-46-generic...
P: Writing config for /boot/vmlinuz-3.16.0-38-generic...
P: Writing config for /boot/vmlinuz-3.13.0-37-generic...
P: Updating /boot/extlinux/linux.cfg...
No volume groups found
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.2.0-040200-generic /boot/vmlinuz-4.2.0-040200-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.2.0-040200-lowlatency
Found linux image: /boot/vmlinuz-4.2.0-040200-generic
Found initrd image: /boot/initrd.img-4.2.0-040200-generic
Found linux image: /boot/vmlinuz-3.16.0-46-generic
Found initrd image: /boot/initrd.img-3.16.0-46-generic
Found linux image: /boot/vmlinuz-3.16.0-38-generic
Found initrd image: /boot/initrd.img-3.16.0-38-generic
Found linux image: /boot/vmlinuz-3.13.0-37-generic
Found initrd image: /boot/initrd.img-3.13.0-37-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
No volume groups found
Found Ubuntu 14.04.3 LTS (14.04) on /dev/sda4
done
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Here's make.log:
DKMS make.log for ndiswrapper-1.59 for kernel 4.2.0-040200-lowlatency (x86_64)
Sun Sep 13 17:20:52 PDT 2015
make: Entering directory `/usr/src/linux-headers-4.2.0-040200-lowlatency'
LD /var/lib/dkms/ndiswrapper/1.59/build/built-in.o
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/crt_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/hal_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/ndis_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/ntoskernel_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/ntoskernel_io_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/rtl_exports.h
MKEXPORT /var/lib/dkms/ndiswrapper/1.59/build/usb_exports.h
MKSTUBS /var/lib/dkms/ndiswrapper/1.59/build/win2lin_stubs.h
CC [M] /var/lib/dkms/ndiswrapper/1.59/build/crt.o
CC [M] /var/lib/dkms/ndiswrapper/1.59/build/hal.o
CC [M] /var/lib/dkms/ndiswrapper/1.59/build/iw_ndis.o
CC [M] /var/lib/dkms/ndiswrapper/1.59/build/loader.o
/var/lib/dkms/ndiswrapper/1.59/build/loader.c: In function ‘load_sys_files’:
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:157:4: error: implicit declaration of function ‘__vmalloc’ [-Werror=implicit-function-declaration]
__vmalloc(load_driver->sys_files.size,
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:156:19: warning: assignment makes pointer from integer without a cast [enabled by default]
pe_image->image =
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:207:5: error: implicit declaration of function ‘vfree’ [-Werror=implicit-function-declaration]
vfree(driver->pe_images.image);
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c: In function ‘add_bin_file’:
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:298:2: error: implicit declaration of function ‘vmalloc’ [-Werror=implicit-function-declaration]
bin_file->data = vmalloc(driver_file->size);
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:298:17: warning: assignment makes pointer from integer without a cast [enabled by default]
bin_file->data = vmalloc(driver_file->size);
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c: In function ‘wrapper_ioctl’:
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:789:15: warning: assignment makes pointer from integer without a cast [enabled by default]
load_driver = vmalloc(sizeof(*load_driver));
^
/var/lib/dkms/ndiswrapper/1.59/build/loader.c: In function ‘wrapper_ioctl_compat’:
/var/lib/dkms/ndiswrapper/1.59/build/loader.c:884:11: warning: assignment makes pointer from integer without a cast [enabled by default]
kdriver = vmalloc(sizeof(*kdriver));
^
cc1: some warnings being treated as errors
make[1]: *** [/var/lib/dkms/ndiswrapper/1.59/build/loader.o] Error 1
make: *** [_module_/var/lib/dkms/ndiswrapper/1.59/build] Error 2
make: Leaving directory `/usr/src/linux-headers-4.2.0-040200-lowlatency'


thx
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: How to install Ralink RT2870?

Post by JeremyB »

http://askubuntu.com/questions/457061/r ... stallation
The answer by chili555 should work with the 3.13 or 3.16 kernel
johnywhy

Re: How to install Ralink RT2870?

Post by johnywhy »

JeremyB wrote:http://askubuntu.com/questions/457061/r ... stallation
The answer by chili555 should work with the 3.13 or 3.16 kernel
worked! thx!

would love to know where i went wrong before (or what's special about this solution). but just glad it's working.

thx!
Locked

Return to “Networking”