amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Fri Feb 06, 2015 2:06 pm

Below step work until 3.12.35+, Any expert can help to make xiaomi wifi usb it support for the latest kernel 3.18.5+ and 3.18.5-v7+?

Please follow below step by step:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo rpi-update
Under /home/pi/
mkdir rpi_src
Download rpi-linux files:
cd rpi_src
git clone --depth 1 git://github.com/raspberrypi/linux.git rpi-linux
Download firmware files:
git clone --depth 1 git://github.com/raspberrypi/firmware.git rpi-firmware
Download xiaomi wifi driver, xiaomi wifi chip using ralink MT7601U
go to (http://www.mediatek.com/en/downloads/)
wget http://www.mediatek.com/AmazonS3/Downlo ... 13.tar.bz2
Put in /home/pi/Download => DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2,
Unzip Step:
tar -xjvf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2
cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
Modify common/rtusb_dev_id.c file add new line below
nano /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/common/rtusb_dev_id.c
add xiaomi wifi pid under MT7601U (can use verify command lsusb: “Bus 001 Device 004: ID 2717:4106 ”):
{USB_DEVICE(0x2717,0x4106)}, /* Xiaomi Wifi */
Modify Makefile
nano /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/Makefile
Search ifeq ($(PLATFORM),PC) key word “LINUX_SRC”,point to "rpi-linux" path
example: LINUX_SRC = /home/pi/rpi_src/rpi-linux
Disable Debug
nano /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/rt_linux.c
Search ULONG RTDebugLevel = 0; //RT_DEBUG_TRACE
“sta_ate_iwpriv_usage.txt” documentation mention above step important
Kernel installation step:
cd ~/rpi_src/rpi-linux
make mrproper
zcat /proc/config.gz > .config
make modules_prepare
cp ~/rpi_src/rpi-firmware/extra/Module.symvers .
cd ~/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
make && sudo make install
sudo modprobe mt7601Usta
Last edited by amazon83 on Fri Feb 06, 2015 2:16 pm, edited 2 times in total.

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Fri Feb 06, 2015 2:10 pm

I try to compile from source using latest kernel 3.18.5+ I'm getting below error.

Code: Select all

make -C tools
make[1]: Entering directory '/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
cp -f os/linux/Makefile.6 /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
make -C /home/pi/rpi_src/rpi-linux SUBDIRS=/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
make[1]: Entering directory '/home/pi/rpi_src/rpi-linux'
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c:331:16: warning: unused variable ‘pAd’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/assoc.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth_rsp.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/pi/Download/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]
/home/pi/Download/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 *’
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sanity.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.c: In function ‘STAHandleRxDataFrame’:
/home/pi/Download/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]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp.h:8429:18: note: expected ‘UCHAR *’ but argument is of type ‘UCHAR (*)[6]’
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/connect.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/wpa.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlRF’:
/home/pi/Download/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]
/home/pi/Download/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]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_os_util.h:668:6: note: expected ‘UINT32 *’ but argument is of type ‘PSTRING’
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5209:22: warning: unused variable ‘rf_bank’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwgenie’:
/home/pi/Download/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]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_md5.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_arc4.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c: In function ‘AsicRxAntEvalTimeout’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:5201:45: warning: unused variable ‘rssi_diff’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wep.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/action.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: In function ‘CmdRspEventCallbackHandle’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2509:8: warning: unused variable ‘Ret’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: In function ‘StopDmaTx’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2684:8: warning: unused variable ‘IdleNums’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2682:20: warning: unused variable ‘UsbCfg’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitAsicFromEEPROM’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:981:9: warning: unused variable ‘i’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAdapter’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1292:22: warning: unused variable ‘GloCfg’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAsic’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1367:11: warning: unused variable ‘KeyIdx’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1656:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init_inf.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_tkip.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_aes.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sync.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c: In function ‘RtmpChipOpsEepromHook’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c:34:9: warning: unused variable ‘e2p_csr’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sanity.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: In function ‘Set_DebugFunc_Proc’:
/home/pi/Download/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]
/home/pi/Download/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/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: In function ‘set_rf’:
/home/pi/Download/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]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: In function ‘wmode_valid_and_correct’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c:279:8: warning: unused variable ‘mode’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: At top level:
/home/pi/Download/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]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wpa.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_radar.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/spectrum.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_timer.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_channel.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c: In function ‘rtmp_read_multest_from_file’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c:2671:23: warning: unused variable ‘pWdsEntry’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_asic.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/scan.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cmd.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/uapsd.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ps.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/ra_ctrl.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_legacy.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_ags.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/rtmp_chip.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/txpower.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mac/rtmp_mac.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_hw.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_entrytb.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c: In function ‘NICInitBBP’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c:61:8: warning: unused variable ‘R0’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_phy.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_rf.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_ht.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_os_util.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/sta_ioctl.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsUsDelay’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:179:8: warning: unused variable ‘i’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/home/pi/Download/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’
/home/pi/Download/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’
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’:
/home/pi/Download/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]
/home/pi/Download/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/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
scripts/Makefile.build:257: recipe for target '/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o' failed
make[2]: *** [/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] Error 1
Makefile:1381: recipe for target '_module_/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux' failed
make[1]: *** [_module_/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
make[1]: Leaving directory '/home/pi/rpi_src/rpi-linux'
Makefile:395: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

vermicelli
Posts: 2
Joined: Thu Jan 22, 2015 5:41 pm

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Tue Feb 10, 2015 11:29 am

I'm trying to use xiaomi wifi too.
The driver I use is downloaded from https://github.com/eywalink/mt7601u.
It can be successfully compiled, but when I try to run modprobe the error occurs.

Code: Select all

ERROR: could not insert 'mt7601Usta': Exec format error

Energia
Posts: 15
Joined: Mon Oct 06, 2014 12:47 pm

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Tue Feb 10, 2015 1:30 pm

vermicelli wrote:I'm trying to use xiaomi wifi too.
The driver I use is downloaded from https://github.com/eywalink/mt7601u.
It can be successfully compiled, but when I try to run modprobe the error occurs.

Code: Select all

ERROR: could not insert 'mt7601Usta': Exec format error
I had this (on RPi 2, kernel7.img is, I presume, for RPi 2), too. After compiling the kernel, I did something along the lines of:
cp arch/arm/boot/Image /boot/kernel7.img
export MODULES_TEMP=~/modules
make INSTALL_MOD_PATH=${MODULES_TEMP} modules_install

rebooted with this "new" kernel, and wifi was running.

If you're on not on RPi 2, then you should probably copy it to /boot/kernel.img
(this may break your installation)

Energia
Posts: 15
Joined: Mon Oct 06, 2014 12:47 pm

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Tue Feb 10, 2015 4:22 pm

amazon83 wrote:I try to compile from source using latest kernel 3.18.5+ I'm getting below error.

Code: Select all

make -C tools
make[1]: Entering directory '/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
cp -f os/linux/Makefile.6 /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
make -C /home/pi/rpi_src/rpi-linux SUBDIRS=/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
make[1]: Entering directory '/home/pi/rpi_src/rpi-linux'
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c:331:16: warning: unused variable ‘pAd’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/assoc.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth_rsp.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/pi/Download/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]
/home/pi/Download/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 *’
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sanity.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.c: In function ‘STAHandleRxDataFrame’:
/home/pi/Download/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]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp.h:8429:18: note: expected ‘UCHAR *’ but argument is of type ‘UCHAR (*)[6]’
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/connect.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/wpa.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlRF’:
/home/pi/Download/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]
/home/pi/Download/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]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_os_util.h:668:6: note: expected ‘UINT32 *’ but argument is of type ‘PSTRING’
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5209:22: warning: unused variable ‘rf_bank’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwgenie’:
/home/pi/Download/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]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_md5.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_arc4.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c: In function ‘AsicRxAntEvalTimeout’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:5201:45: warning: unused variable ‘rssi_diff’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wep.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/action.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: In function ‘CmdRspEventCallbackHandle’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2509:8: warning: unused variable ‘Ret’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: In function ‘StopDmaTx’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2684:8: warning: unused variable ‘IdleNums’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2682:20: warning: unused variable ‘UsbCfg’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitAsicFromEEPROM’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:981:9: warning: unused variable ‘i’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAdapter’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1292:22: warning: unused variable ‘GloCfg’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAsic’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1367:11: warning: unused variable ‘KeyIdx’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1656:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init_inf.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_tkip.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_aes.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sync.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c: In function ‘RtmpChipOpsEepromHook’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c:34:9: warning: unused variable ‘e2p_csr’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sanity.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: In function ‘Set_DebugFunc_Proc’:
/home/pi/Download/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]
/home/pi/Download/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/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: In function ‘set_rf’:
/home/pi/Download/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]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: In function ‘wmode_valid_and_correct’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c:279:8: warning: unused variable ‘mode’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: At top level:
/home/pi/Download/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]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wpa.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_radar.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/spectrum.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_timer.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_channel.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c: In function ‘rtmp_read_multest_from_file’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c:2671:23: warning: unused variable ‘pWdsEntry’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_asic.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/scan.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cmd.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/uapsd.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ps.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/ra_ctrl.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_legacy.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_ags.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/rtmp_chip.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/txpower.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mac/rtmp_mac.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_hw.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_entrytb.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c: In function ‘NICInitBBP’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c:61:8: warning: unused variable ‘R0’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_phy.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_rf.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_ht.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_os_util.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/sta_ioctl.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsUsDelay’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:179:8: warning: unused variable ‘i’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/home/pi/Download/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’
/home/pi/Download/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’
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’:
/home/pi/Download/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]
/home/pi/Download/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/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
scripts/Makefile.build:257: recipe for target '/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o' failed
make[2]: *** [/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] Error 1
Makefile:1381: recipe for target '_module_/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux' failed
make[1]: *** [_module_/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
make[1]: Leaving directory '/home/pi/rpi_src/rpi-linux'
Makefile:395: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
open include/os/rt_linux.h
change:
int fsuid;
int fsgid;
to:
kuid_t fsuid;
kgid_t fsgid;

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Wed Feb 11, 2015 2:53 am

Fixed the problem, need to upgrade the compiler and compile. Enjoy!

apt-get install gcc-4.8 g++-4.8

vermicelli
Posts: 2
Joined: Thu Jan 22, 2015 5:41 pm

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Fri Feb 13, 2015 2:38 am

amazon83 wrote:Fixed the problem, need to upgrade the compiler and compile. Enjoy!

apt-get install gcc-4.8 g++-4.8
I successfully compiled the driver and inserted the .ko file into the kernel.
I can find the wifi interface named ra0 if I run ifconfig.
But there is no scan result when I run 'iwlist ra0 scanning' command.
Are there some other configurations that I should take care of?

amazon83
Posts: 22
Joined: Thu Feb 05, 2015 3:42 pm

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Fri Feb 13, 2015 3:55 am

vermicelli wrote:
amazon83 wrote:Fixed the problem, need to upgrade the compiler and compile. Enjoy!

apt-get install gcc-4.8 g++-4.8
I successfully compiled the driver and inserted the .ko file into the kernel.
I can find the wifi interface named ra0 if I run ifconfig.
But there is no scan result when I run 'iwlist ra0 scanning' command.
Are there some other configurations that I should take care of?
iwlist scan, it work for me.

yiyispirit
Posts: 1
Joined: Tue Apr 21, 2015 1:22 am

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Tue Apr 21, 2015 1:26 am

[ 181.441587] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[ 181.553644] usb 1-1.4: New USB device found, idVendor=2717, idProduct=4106
[ 181.553683] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 181.553704] usb 1-1.4: Product: MI WLAN Adapter
[ 181.553722] usb 1-1.4: Manufacturer: MediaTek
[ 181.553739] usb 1-1.4: SerialNumber: 1.0
[ 181.705320] Unable to handle kernel paging request at virtual address 7e235424
[ 181.716144] pgd = da1cc000
[ 181.720570] [7e235424] *pgd=00000000
[ 181.727078] Internal error: Oops: 5 [#1] PREEMPT ARM
[ 181.733618] Modules linked in: mt7601Usta(O+) snd_bcm2835 snd_pcm snd_seq snd_seq_device snd_timer snd i2c_bcm2708 spi_bcm2708 uio_pdrv_genirq uio
[ 181.750212] CPU: 0 PID: 2242 Comm: modprobe Tainted: G O 3.18.11+ #777
[ 181.761056] task: db2a4380 ti: da19e000 task.ti: da19e000
[ 181.768214] PC is at load_module+0x1948/0x1f1c
[ 181.774381] LR is at load_module+0x1934/0x1f1c
[ 181.780501] pc : [<c00886d0>] lr : [<c00886bc>] psr: 30000013
[ 181.780501] sp : da19fe88 ip : bf136094 fp : da19ff44
[ 181.795332] r10: bf135f2c r9 : 00000000 r8 : bf135f38
[ 181.802191] r7 : c0557314 r6 : da13dee0 r5 : 7e235410 r4 : da19ff48
[ 181.810423] r3 : 00000000 r2 : 00000000 r1 : db2f15f0 r0 : c0814280
[ 181.818668] Flags: nzCV IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 181.827552] Control: 00c5387d Table: 1a1cc008 DAC: 00000015
[ 181.835073] Process modprobe (pid: 2242, stack limit = 0xda19e1b0)
[ 181.843055] Stack: (0xda19fe88 to 0xda1a0000)
[ 181.849176] fe80: bf135f38 00007fff c0085714 c02fcd88 00000013 00000000
[ 181.860836] fea0: ddfab000 da19ff7c da19ff50 da19feb8 00000000 bf135f38 da19e008 bf135f74
[ 181.872736] fec0: bf136094 00000000 b6d20000 da19e000 00002db0 00000000 00000000 00000000
[ 181.884725] fee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 181.896722] ff00: 00000000 00000000 00000000 00000000 00000000 00000000 00000080 000f61ce
[ 181.908839] ff20: b6c2f000 b6f54948 00000080 c000eaa8 da19e000 00000000 da19ffa4 da19ff48
[ 181.921215] ff40: c0088d90 c0086d94 ddfab000 000f61ce de060a90 de0608ba de098b90 000b30f0
[ 181.933743] ff60: 000c3030 00000000 00000000 00000000 0000002b 0000002c 00000020 00000024
[ 181.946402] ff80: 00000011 00000000 00000000 00000000 00060000 b81c95e8 00000000 da19ffa8
[ 181.959161] ffa0: c000e800 c0088cb0 00000000 00060000 b6c2f000 000f61ce b6f54948 b6c2f000
[ 181.972027] ffc0: 00000000 00060000 b81c95e8 00000080 b81c8c08 000f61ce b6f54948 00000000
[ 181.984959] ffe0: 00000000 bed4590c b6f4bfb4 b6eb6ab4 60000010 b6c2f000 1b7fa821 1b7fac21
[ 181.997923] [<c00886d0>] (load_module) from [<c0088d90>] (SyS_init_module+0xec/0x100)
[ 182.010552] [<c0088d90>] (SyS_init_module) from [<c000e800>] (ret_fast_syscall+0x0/0x48)
[ 182.023434] Code: e51bc084 e15c0005 e2455008 0a000009 (e5953014)
[ 182.037501] ---[ end trace 8dae3f668e90061f ]---
[ 1882.041099] usb 1-1.4: USB disconnect, device number 4
[ 1886.112781] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[ 1886.244813] usb 1-1.4: New USB device found, idVendor=2717, idProduct=4106
[ 1886.254187] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1886.264943] usb 1-1.4: Product: MI WLAN Adapter
[ 1886.271745] usb 1-1.4: Manufacturer: MediaTek
[ 1886.279358] usb 1-1.4: SerialNumber: 1.0
[ 1886.325809] mt7601Usta: disagrees about version of symbol module_layout
[ 1910.204931] usb 1-1.4: USB disconnect, device number 5
[ 1914.533165] usb 1-1.4: new high-speed USB device number 6 using dwc_otg
[ 1914.665157] usb 1-1.4: New USB device found, idVendor=2717, idProduct=4106
[ 1914.674218] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1914.684655] usb 1-1.4: Product: MI WLAN Adapter
[ 1914.691137] usb 1-1.4: Manufacturer: MediaTek
[ 1914.698415] usb 1-1.4: SerialNumber: 1.0
[ 1914.743179] mt7601Usta: disagrees about version of symbol module_layout
[ 1959.973945] mt7601Usta: disagrees about version of symbol module_layout
[ 1983.764963] mt7601Usta: disagrees about version of symbol module_layout
[ 1984.996885] mt7601Usta: disagrees about version of symbol module_layout
[ 1997.125027] mt7601Usta: disagrees about version of symbol module_layout
[ 5615.284317] usb 1-1.4: USB disconnect, device number 6
[ 5620.387807] usb 1-1.4: new high-speed USB device number 7 using dwc_otg
[ 5620.519862] usb 1-1.4: New USB device found, idVendor=2717, idProduct=4106
[ 5620.528414] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5620.537257] usb 1-1.4: Product: MI WLAN Adapter
[ 5620.544412] usb 1-1.4: Manufacturer: MediaTek
[ 5620.550401] usb 1-1.4: SerialNumber: 1.0

squakie
Posts: 79
Joined: Fri Jul 26, 2013 8:55 pm

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Fri Mar 11, 2016 8:59 am

After you build a new module, don't you have to use 'depmod -a' to register it before you can actually use it?

ysern
Posts: 1
Joined: Sun Mar 11, 2018 5:27 pm

Re: MT7601U XiaoMi WIFI USB not working for 3.18.5+ kernel

Sun Mar 11, 2018 5:34 pm

amazon83 wrote:
Fri Feb 06, 2015 2:10 pm
I try to compile from source using latest kernel 3.18.5+ I'm getting below error.

Code: Select all

make -C tools
make[1]: Entering directory '/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
cp -f os/linux/Makefile.6 /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
make -C /home/pi/rpi_src/rpi-linux SUBDIRS=/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
make[1]: Entering directory '/home/pi/rpi_src/rpi-linux'
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_profile.c:331:16: warning: unused variable ‘pAd’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/assoc.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/auth_rsp.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/pi/Download/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]
/home/pi/Download/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 *’
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sanity.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/rtmp_data.c: In function ‘STAHandleRxDataFrame’:
/home/pi/Download/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]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rtmp.h:8429:18: note: expected ‘UCHAR *’ but argument is of type ‘UCHAR (*)[6]’
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/connect.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/wpa.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlRF’:
/home/pi/Download/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]
/home/pi/Download/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]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/include/rt_os_util.h:668:6: note: expected ‘UINT32 *’ but argument is of type ‘PSTRING’
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c:5209:22: warning: unused variable ‘rf_bank’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwgenie’:
/home/pi/Download/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]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_md5.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_aes.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/crypt_arc4.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c: In function ‘AsicRxAntEvalTimeout’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/mlme.c:5201:45: warning: unused variable ‘rssi_diff’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wep.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/action.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: In function ‘CmdRspEventCallbackHandle’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2509:8: warning: unused variable ‘Ret’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c: In function ‘StopDmaTx’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2684:8: warning: unused variable ‘IdleNums’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_data.c:2682:20: warning: unused variable ‘UsbCfg’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitAsicFromEEPROM’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:981:9: warning: unused variable ‘i’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAdapter’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1292:22: warning: unused variable ‘GloCfg’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAsic’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1367:11: warning: unused variable ‘KeyIdx’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init.c:1656:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_init_inf.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_tkip.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_aes.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sync.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c: In function ‘RtmpChipOpsEepromHook’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/eeprom.c:34:9: warning: unused variable ‘e2p_csr’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_sanity.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: In function ‘Set_DebugFunc_Proc’:
/home/pi/Download/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]
/home/pi/Download/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/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_info.c: In function ‘set_rf’:
/home/pi/Download/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]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: In function ‘wmode_valid_and_correct’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c:279:8: warning: unused variable ‘mode’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cfg.c: At top level:
/home/pi/Download/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]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_wpa.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_radar.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/spectrum.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rtmp_timer.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_channel.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c: In function ‘rtmp_read_multest_from_file’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_profile.c:2671:23: warning: unused variable ‘pWdsEntry’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_asic.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/scan.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/cmm_cmd.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/uapsd.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ps.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/ra_ctrl.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_legacy.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../rate_ctrl/alg_ags.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../chips/rtmp_chip.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/txpower.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mac/rtmp_mac.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_hw.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_entrytb.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c: In function ‘NICInitBBP’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rtmp_phy.c:61:8: warning: unused variable ‘R0’ [-Wunused-variable]
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_phy.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../phy/rlt_rf.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/ba_action.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../mgmt/mgmt_ht.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../common/rt_os_util.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/sta_ioctl.o
  CC [M]  /home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsUsDelay’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:179:8: warning: unused variable ‘i’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/home/pi/Download/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’
/home/pi/Download/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’
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’:
/home/pi/Download/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]
/home/pi/Download/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/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:22: warning: unused variable ‘macValue’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2037:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.c:2173:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
scripts/Makefile.build:257: recipe for target '/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o' failed
make[2]: *** [/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/../../os/linux/rt_linux.o] Error 1
Makefile:1381: recipe for target '_module_/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux' failed
make[1]: *** [_module_/home/pi/Download/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux] Error 2
make[1]: Leaving directory '/home/pi/rpi_src/rpi-linux'
Makefile:395: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
add

Code: Select all

WFLAGS += -Wno-incompatible-pointer-types
at line 224 of file `config.mk`

this should stop treating that warning as an error

Return to “Troubleshooting”