Mediatek MT7630E driver problem

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
Sgurbat

Mediatek MT7630E driver problem

Post by Sgurbat »

Hi all,

for first sorry for my english.

I've a Asus X550 laptop and I've installed Linux Mint 17.

Unfortunately Wireless doesn't work probably because of driver issue.

I've downloaded drivers for my card from Mediatek site, driver version are MT7630E that are compatible with Linux Kernel 3.13/3.14.

I tried to install them but following errors occured.

make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00dev.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00mac.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00config.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00queue.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00link.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.o
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘PCIKickOutCmd’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:169:10: warning: unused variable ‘bIntContext’ [-Wunused-variable]
BOOLEAN bIntContext = FALSE;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘RTMPAllocTxRxRingMemory’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:376:8: warning: unused variable ‘ErrorValue’ [-Wunused-variable]
ULONG ErrorValue = 0;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:375:6: warning: unused variable ‘num’ [-Wunused-variable]
INT num;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘RTMPInitTxRxRingMemory’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:406:8: warning: unused variable ‘ErrorValue’ [-Wunused-variable]
ULONG ErrorValue = 0;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:404:15: warning: unused variable ‘pPacket’ [-Wunused-variable]
PNDIS_PACKET pPacket;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:403:15: warning: unused variable ‘pDmaBuf’ [-Wunused-variable]
RTMP_DMABUF *pDmaBuf, *pDescRing;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:400:6: warning: unused variable ‘num’ [-Wunused-variable]
INT num, index;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘AsicInitTxRxRing’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:454:9: warning: unused variable ‘offset’ [-Wunused-variable]
INT i, offset;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:454:6: warning: unused variable ‘i’ [-Wunused-variable]
INT i, offset;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘RTMPHandleTxRing8DmaDoneInterrupt’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:511:8: warning: unused variable ‘TXWISize’ [-Wunused-variable]
UINT8 TXWISize = rt2x00dev->TXWISize;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:509:6: warning: unused variable ‘ret’ [-Wunused-variable]
int ret = 0;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘SendAndesTFSWITCH’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:592:30: warning: assignment from incompatible pointer type [enabled by default]
CmdUnit.u.ANDES.CmdPayload = &coexTF;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘PrepareProtectionFrame’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:680:8: warning: missing braces around initializer [-Wmissing-braces]
HEADER_802_11 ProtectionFrame ={0};
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:680:8: warning: (near initialization for ‘ProtectionFrame.FC’) [-Wmissing-braces]
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:787:7: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘ULONG’ [-Wformat=]
//
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:690:16: warning: unused variable ‘pTxInfo’ [-Wunused-variable]
TXINFO_STRUC *pTxInfo;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘CheckAvailableNullFrameSpace’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:813:9: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘RtmpDrvPciUnMapSingle’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:956:6: warning: passing argument 2 of ‘linux_pci_unmap_single’ makes integer from pointer without a cast [enabled by default]
}
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:919:6: note: expected ‘dma_addr_t’ but argument is of type ‘VOID *’
{
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘BtAFHCtl’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:992:2: warning: missing braces around initializer [-Wmissing-braces]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:992:2: warning: (near initialization for ‘btFunInfo.field’) [-Wmissing-braces]
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘SendAndesCoexFrameInfo’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1090:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ULONG’ [-Wformat=]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1090:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ULONG’ [-Wformat=]
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1090:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘ULONG’ [-Wformat=]
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1090:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘ULONG’ [-Wformat=]
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1090:15: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘ULONG’ [-Wformat=]
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1099:30: warning: assignment from incompatible pointer type [enabled by default]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘UpdateAndesNullFrameSpace’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1118:9: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘MT76x0_Calibration’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1231:9: warning: unused variable ‘RFValue’ [-Wunused-variable]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1220:9: warning: unused variable ‘Value’ [-Wunused-variable]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘MT7630_rfcsr_read’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1566:2: warning: ‘return’ with a value, in function returning void [enabled by default]
}
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘MT7630_rfcsr_write’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1608:2: warning: ‘return’ with a value, in function returning void [enabled by default]
}
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘SendLEDCmd’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1842:3: warning: ‘return’ with a value, in function returning void [enabled by default]
}
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1847:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ULONG’ [-Wformat=]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1847:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ULONG’ [-Wformat=]
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1857:29: warning: assignment from incompatible pointer type [enabled by default]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1866:2: warning: ‘return’ with a value, in function returning void [enabled by default]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1827:8: warning: unused variable ‘Pos’ [-Wunused-variable]
ULONG LEDParameter[2] = {0};
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘SendAndesWLANStatus’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1977:29: warning: assignment from incompatible pointer type [enabled by default]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:1986:2: warning: ‘return’ with a value, in function returning void [enabled by default]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘SendAndesCCUForceMode’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2016:29: warning: assignment from incompatible pointer type [enabled by default]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘SendAndesAFH’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2100:29: warning: assignment from incompatible pointer type [enabled by default]

^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘Set_BtDump_Proc’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2146:9: warning: ‘return’ with a value, in function returning void [enabled by default]
}
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2156:3: warning: passing argument 2 of ‘file->f_op->write’ from incompatible pointer type [enabled by default]
}
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2156:3: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2166:3: warning: passing argument 2 of ‘file->f_op->write’ from incompatible pointer type [enabled by default]
}
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2166:3: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2176:3: warning: passing argument 2 of ‘file->f_op->write’ from incompatible pointer type [enabled by default]
}
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2176:3: note: expected ‘const char *’ but argument is of type ‘UINT32 *’
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2130:12: warning: unused variable ‘ReadOffset’ [-Wunused-variable]
UINT32 offset,buf;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:2129:12: warning: unused variable ‘BaseOffset’ [-Wunused-variable]
UINT16 ReadOffset;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘RTMPHandleTxRing8DmaDoneInterrupt’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:553:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c: In function ‘RtmpDrvPciUnMapSingle’:
/home/yuri/Desktop/MT7630E-master/rt2x00/mt_linux.c:957:1: warning: control reaches end of non-void function [-Wreturn-type]

^
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00crypto.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00firmware.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00leds.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00lib.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00mmio.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00pci.o
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00pci.c: In function ‘rt2x00pci_probe’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00pci.c:158:7: warning: unused variable ‘tmp’ [-Wunused-variable]
u32 tmp=0;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00pci.c:157:7: warning: unused variable ‘MacValue’ [-Wunused-variable]
u32 MacValue;
^
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00usb.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.o
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:44:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800.h:1787:0: warning: "TX_STA_CNT0" redefined [enabled by default]
#define TX_STA_CNT0 0x170c
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:42:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:703:0: note: this is the location of the previous definition
#define TX_STA_CNT0 0x170C
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_MT7630_rfcsr_write’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:1315:2: warning: ‘return’ with a value, in function returning void [enabled by default]
return ret;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_MT7630_rfcsr_read’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:1370:2: warning: ‘return’ with a value, in function returning void [enabled by default]
return ret;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_write_tx_data’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:1806:9: warning: assignment from incompatible pointer type [enabled by default]
pTxWI = txwi;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_process_rxwi’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:1944:8: warning: assignment from incompatible pointer type [enabled by default]
pRxWI =entry->skb->data;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_txdone_entry’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:2085:9: warning: assignment from incompatible pointer type [enabled by default]
pTxWI = txwi;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_config_channel_rf7630’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:4163:22: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
pMT76x0_freq_item = &MT76x0_Frequency_Plan;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:4107:6: warning: unused variable ‘eeprom’ [-Wunused-variable]
u16 eeprom;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:4104:16: warning: unused variable ‘bbp_ch_idx’ [-Wunused-variable]
unsigned char bbp_ch_idx;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_vco_calibration’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:5090:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
u32 reg;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_link_tuner’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:5311:15: warning: unused variable ‘i’ [-Wunused-variable]
unsigned int i;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_init_rfcsr’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:7381:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
unsigned char BBPCurrentBW = BW_20;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:7432:3: warning: ‘return’ with a value, in function returning void [enabled by default]
return 0;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800lib_init_queues’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:7487:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘dma_addr_t’ [-Wformat=]
printk("-->TX_RING: Base=0x%x, Cnt=%d\n", entry_priv->desc_dma,rt2x00dev->tx.limit);
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:7506:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘dma_addr_t’ [-Wformat=]
printk("-->RX_RING: Base=0x%x, Cnt=%d\n", entry_priv->desc_dma,rt2x00dev->rx[0].limit);
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_enable_radio’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:7743:16: warning: unused variable ‘csr3’ [-Wunused-variable]
MAC_DW1_STRUC csr3;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:7742:16: warning: unused variable ‘csr2’ [-Wunused-variable]
MAC_DW0_STRUC csr2;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘mt7630_show_rf’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:9121:28: warning: unused variable ‘rf_bank’ [-Wunused-variable]
unsigned char regRF = 0, rf_bank = 0;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: At top level:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:1373:12: warning: ‘rt2800_enable_wlan_mt7630’ defined but not used [-Wunused-function]
static int rt2800_enable_wlan_mt7630(struct rt2x00_dev *rt2x00dev)
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:5954:12: warning: ‘rt2800_wait_bbp_rf_MT7630_ready’ defined but not used [-Wunused-function]
static int rt2800_wait_bbp_rf_MT7630_ready(struct rt2x00_dev *rt2x00dev)
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:7547:13: warning: ‘MT76x0_CalculateTxpower’ defined but not used [-Wunused-function]
static void MT76x0_CalculateTxpower(
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:48:0,
from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:42:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_rf_init_calibration’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00reg.h:251:11: warning: ‘rfcsr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*(__reg) &= ~((__field).bit_mask); \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:6622:5: note: ‘rfcsr’ was declared here
u8 rfcsr;
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:48:0,
from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:42:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_normal_mode_setup_3xxx’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00reg.h:251:11: warning: ‘rfcsr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*(__reg) &= ~((__field).bit_mask); \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:6681:15: note: ‘rfcsr’ was declared here
u8 min_gain, rfcsr, bbp;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c: In function ‘rt2800_config’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:4290:30: warning: array subscript is above array bounds [-Warray-bounds]
if (MT76x0_RF_INT_PA_RegTb.BwBand & RfBand)
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:4295:30: warning: array subscript is above array bounds [-Warray-bounds]
MT76x0_RF_INT_PA_RegTb.Bank);
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:4294:30: warning: array subscript is above array bounds [-Warray-bounds]
MT76x0_RF_INT_PA_RegTb.Value,
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:4293:30: warning: array subscript is above array bounds [-Warray-bounds]
MT76x0_RF_INT_PA_RegTb.Register,
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:44:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800.h:1787:0: warning: "TX_STA_CNT0" redefined [enabled by default]
#define TX_STA_CNT0 0x170c
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.c:42:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:703:0: note: this is the location of the previous definition
#define TX_STA_CNT0 0x170C
^
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2400pci.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2500pci.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt61pci.o
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt61pci.c:40:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt61pci.h:168:0: warning: "HW_NULL_BASE" redefined [enabled by default]
#define HW_NULL_BASE 0x2b00
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt61pci.c:37:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:380:0: note: this is the location of the previous definition
#define HW_NULL_BASE 0x7700
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt61pci.c:40:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt61pci.h:1293:0: warning: "TXINFO_SIZE" redefined [enabled by default]
#define TXINFO_SIZE ( 6 * sizeof(__le32) )
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt61pci.c:37:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:1207:0: note: this is the location of the previous definition
#define TXINFO_SIZE 4
^
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.o
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:48:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800.h:1787:0: warning: "TX_STA_CNT0" redefined [enabled by default]
#define TX_STA_CNT0 0x170c
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:43:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:703:0: note: this is the location of the previous definition
#define TX_STA_CNT0 0x170C
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:49:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.h:55:1: warning: "/*" within comment [-Wcomment]
/*
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c: In function ‘rt2800pci_init_queues’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:594:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘dma_addr_t’ [-Wformat=]
printk("-->TX_RING: Base=0x%x, Cnt=%d\n", entry_priv->desc_dma,rt2x00dev->tx.limit);
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:614:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘dma_addr_t’ [-Wformat=]
printk("-->RX_RING: Base=0x%x, Cnt=%d\n", entry_priv->desc_dma,rt2x00dev->rx[0].limit);
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c: In function ‘rt2800pci_write_tx_desc’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:929:7: warning: assignment from incompatible pointer type [enabled by default]
pTxD = entry_priv->desc;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:953:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
struct _TXINFO_NMAC_PKT *nmac_info;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c: In function ‘rt2800pci_fill_rxdone’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1040:15: warning: assignment from incompatible pointer type [enabled by default]
pRxFceInfo = &hw_rx_info[12];
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1043:12: warning: assignment from incompatible pointer type [enabled by default]
pRxInfo = entry->skb->data;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1035:12: warning: unused variable ‘destrxd’ [-Wunused-variable]
__le32 *destrxd = NULL;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1034:18: warning: unused variable ‘hw_fce’ [-Wunused-variable]
unsigned char hw_fce[4];
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c: At top level:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1262:182: warning: backslash and newline separated by space [enabled by default]
printk("((typeof(__tmp->type))__kfifo->data)[%d]=0x%x\n",__kfifo->out & __tmp->kfifo.mask, ((typeof(__tmp->type))__kfifo->data)[__kfifo->out & __tmp->kfifo.mask]); \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1263:35: warning: backslash and newline separated by space [enabled by default]
*(typeof(__tmp->type))__val = \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1270:19: warning: backslash and newline separated by space [enabled by default]
} \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1271:17: warning: backslash and newline separated by space [enabled by default]
} \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c: In function ‘rt2800pci_tx8damdone_tasklet’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1389:10: warning: unused variable ‘bReschedule’ [-Wunused-variable]
BOOLEAN bReschedule = 0;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1388:23: warning: unused variable ‘IntSource’ [-Wunused-variable]
INT_SOURCE_CSR_STRUC IntSource;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1387:16: warning: unused variable ‘flags’ [-Wunused-variable]
unsigned long flags;
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c: At top level:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1490:98: warning: backslash and newline separated by space [enabled by default]
printk("value=0x%x, (typeof(*__tmp->type))__val = 0x%x\n", val, (typeof(*__tmp->type))__val); \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1498:163: warning: backslash and newline separated by space [enabled by default]
printk("((typeof(__tmp->type))__kfifo->data)[%d]=0x%x\n",__kfifo->in & __tmp->kfifo.mask, ((typeof(__tmp->type))__kfifo->data)[__kfifo->in & __tmp->kfifo.mask]); \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1500:19: warning: backslash and newline separated by space [enabled by default]
} \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1501:17: warning: backslash and newline separated by space [enabled by default]
} \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c: In function ‘rt2800pci_txstatus_interrupt’:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:1529:3: warning: passing argument 3 of ‘rt2x00mmio_register_read’ from incompatible pointer type [enabled by default]
rt2x00mmio_register_read(rt2x00dev, TX_STA_FIFO_EXT, &Fifi_Status_ext.word);
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:44:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00mmio.h:34:20: note: expected ‘u32 *’ but argument is of type ‘ULONG *’
static inline void rt2x00mmio_register_read(struct rt2x00_dev *rt2x00dev,
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c: At top level:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:55:13: warning: ‘rt2860_int_disable’ defined but not used [-Wunused-function]
static void rt2860_int_disable(struct rt2x00_dev *rt2x00dev, unsigned int mode)
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.c:64:13: warning: ‘rt2860_int_enable’ defined but not used [-Wunused-function]
static void rt2860_int_enable(struct rt2x00_dev *rt2x00dev, unsigned int mode)
^
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2500usb.o
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt73usb.o
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt73usb.c:38:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt73usb.h:925:0: warning: "TXINFO_SIZE" redefined [enabled by default]
#define TXINFO_SIZE ( 6 * sizeof(__le32) )
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt73usb.c:36:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:1207:0: note: this is the location of the previous definition
#define TXINFO_SIZE 4
^
CC [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.o
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.c:42:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800.h:1787:0: warning: "TX_STA_CNT0" redefined [enabled by default]
#define TX_STA_CNT0 0x170c
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.c:39:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:703:0: note: this is the location of the previous definition
#define TX_STA_CNT0 0x170C
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.c:43:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.h:44:0: warning: "RXINFO_DESC_SIZE" redefined [enabled by default]
#define RXINFO_DESC_SIZE (1 * sizeof(__le32))
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.c:42:0:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800.h:3151:0: note: this is the location of the previous definition
#define RXINFO_DESC_SIZE (4 * sizeof(__le32))
^
In file included from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00.h:40:0,
from /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.c:39:
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.c: In function ‘rt2800usb_tx_sta_fifo_read_completed’:
include/linux/kfifo.h:390:37: warning: initialization makes integer from pointer without a cast [enabled by default]
typeof(*__tmp->const_type) __val = (val); \
^
/home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.c:165:8: note: in expansion of macro ‘kfifo_put’
if (!kfifo_put(&rt2x00dev->txstatus_fifo, &tx_status))
^
Building modules, stage 2.
MODPOST 12 modules
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2400pci.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2400pci.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2500pci.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2500pci.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2500usb.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2500usb.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800lib.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800pci.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2800usb.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00lib.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00lib.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00mmio.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00mmio.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00pci.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00pci.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00usb.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt2x00usb.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt61pci.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt61pci.ko
CC /home/yuri/Desktop/MT7630E-master/rt2x00/rt73usb.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/rt2x00/rt73usb.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make -C /lib/modules/3.13.0-24-generic/build M=/home/yuri/Desktop/MT7630E-master/btloader clean
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'
CLEAN /home/yuri/Desktop/MT7630E-master/btloader/.tmp_versions
CLEAN /home/yuri/Desktop/MT7630E-master/btloader/Module.symvers
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
make -C /lib/modules/3.13.0-24-generic/build M=/home/yuri/Desktop/MT7630E-master/btloader modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'
CC [M] /home/yuri/Desktop/MT7630E-master/btloader/mt76xx.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/yuri/Desktop/MT7630E-master/btloader/mt76xx.mod.o
LD [M] /home/yuri/Desktop/MT7630E-master/btloader/mt76xx.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'
update-rc.d: warning: /etc/init.d/load.sh missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System start/stop links for /etc/init.d/load.sh already exist.
insmod: ERROR: could not insert module /lib/modules/3.13.0-24-generic/kernel/drivers/misc/eeprom/eeprom.ko: File exists
insmod: ERROR: could not insert module /lib/modules/3.13.0-24-generic/kernel/drivers/misc/eeprom/eeprom_93cx6.ko: File exists
insmod: ERROR: could not insert module /lib/modules/3.13.0-24-generic/kernel/lib/crc-ccitt.ko: File exists
insmod: ERROR: could not insert module /lib/modules/3.13.0-24-generic/kernel/net/wireless/cfg80211.ko: File exists
insmod: ERROR: could not insert module /lib/modules/3.13.0-24-generic/kernel/net/mac80211/mac80211.ko: File exists
insmod: ERROR: could not insert module ./rt2x00lib.ko: File exists
insmod: ERROR: could not insert module ./rt2x00pci.ko: File exists
insmod: ERROR: could not insert module ./rt2x00mmio.ko: File exists
insmod: ERROR: could not insert module ./rt2800lib.ko: File exists
insmod: ERROR: could not insert module ./rt2800pci.ko: File exists
insmod: ERROR: could not insert module ./mt76xx.ko: File exists

Can anybody help me?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13876
Joined: Fri Feb 21, 2014 8:17 am

Re: Mediatek MT7630E driver problem

Post by JeremyB »

Sgurbat

Post by Sgurbat »

Yes I saw it and I followed that instructions but it didn't work.
JeremyB
Level 21
Level 21
Posts: 13876
Joined: Fri Feb 21, 2014 8:17 am

Re: Mediatek MT7630E driver problem

Post by JeremyB »

You might want to watch the Ubuntu bug report for any progress
https://bugs.launchpad.net/ubuntu/+sour ... ug/1220146
Sgurbat

Re: Mediatek MT7630E driver problem

Post by Sgurbat »

Is there another Linux Distro without this problem?

I mean trying to install Debian could solve?

Thanks.
jahid

Re: Mediatek MT7630E driver problem

Post by jahid »

It's may be too late, but that driver has gone through much more improvement at this time.

And about your problem:

There was no actual error in your installation. You could try rebooting, as the kernel modules from a previous build was already inserted it didn't allow the newly built modules to be inserted over it.

If it didn't work after rebooting, then the problem was in the driver source code, which has been improved to work in most cases now.

For further improvement you should follow the bug report:
https://bugs.launchpad.net/ubuntu/+sour ... ug/1220146
Locked

Return to “Networking”