muratdemirtas / MT7601u

Ubuntu and Embedded Linux(Raspberry Pi, Banana Pi etc.) drivers for MediaTek MT7601u Wireless Chipset. Support Access Point(AP) and Station Mode(STA). Tested on 32-64 Bit Ubuntu and Raspberry Pi 2 with all kernels since v4.0.0+. You can use this driver for internet sharing(hotspot), robotic, file transfer or ssh.
Other
93 stars 44 forks source link

Compilation errors. #3

Open Yoda49 opened 6 years ago

Yoda49 commented 6 years ago

/home/pi/MT7601u/src/os/linux/../../os/linux/rt_usb_util.c: In function ‘rausb_autopm_put_interface’: /home/pi/MT7601u/src/os/linux/../../os/linux/rt_usb_util.c:107:7: warning: unused variable ‘pm_usage_cnt’ [-Wunused-variable] INT pm_usage_cnt; ^~~~ /home/pi/MT7601u/src/os/linux/../../os/linux/rt_usb_util.c: In function ‘rausb_autopm_get_interface’: /home/pi/MT7601u/src/os/linux/../../os/linux/rt_usb_util.c:138:7: warning: unused variable ‘pm_usage_cnt’ [-Wunused-variable] INT pm_usage_cnt; ^~~~ /home/pi/MT7601u/src/os/linux/../../os/linux/rt_usb_util.c:144:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ CC [M] /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.o /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsUsDelay’: /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c:182:8: warning: unused variable ‘i’ [-Wunused-variable] ULONG i; ^ /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’: /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2179:32: error: passing argument 2 of ‘file_w->f_op->write’ from incompatible p ointer type [-Werror=incompatible-pointer-types] file_w->f_op->write(file_w, pBuf, BufLen, &file_w->f_pos); ^~~~ /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2179:32: note: expected ‘const char ’ but argument is of type ‘UINT32 {aka u nsigned int }’ /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2164:22: warning: unused variable ‘macValue’ [-Wunused-variable] UINT32 macAddr = 0, macValue = 0; ^~~~ /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2164:9: warning: unused variable ‘macAddr’ [-Wunused-variable] UINT32 macAddr = 0, macValue = 0; ^~~ /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’: /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2300:21: warning: unused variable ‘net_dev’ [-Wunused-variable] struct net_device net_dev = (struct net_device *)pNetDev; ^~~ /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsFreeSpinLock’: /home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.c:4319:8: error: assignment from incompatible pointer type [-Werror=incompatible- pointer-types] pLock = (OS_NDIS_MINIPORT_TIMER *) (pLockOrg->pContent);* ^ cc1: some warnings being treated as errors scripts/Makefile.build:293: recipe for target '/home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.o' failed make[3]: [/home/pi/MT7601u/src/os/linux/../../os/linux/rt_linux.o] Error 1 Makefile:1493: recipe for target 'module/home/pi/MT7601u/src/os/linux' failed make[2]: [module/home/pi/MT7601u/src/os/linux] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-4.9.59+' Makefile:510: recipe for target 'osutil' failed make[1]: [osutil] Error 2 make[1]: Leaving directory '/home/pi/MT7601u/src' Makefile:2: recipe for target 'all' failed make: *** [all] Error 2

=====================================

RPI B+, raspbian, kernel 4.9.59+

langhf commented 6 years ago

I also meet this error, do you have any solutions?

ketsindian commented 6 years ago

Hello, first of all, I am compiling this driver for Nvidia Jetson tk1 (running ubuntu 16.04) which has the same architecture as raspberry pi3 (armhf). I got the following error while compliling the same

/home/ubuntu/Desktop/MT7601u/src/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevAttach’: /home/ubuntu/Desktop/MT7601u/src/os/linux/../../os/linux/rt_linux.c:1846:11: error: ‘struct net_device’ has no member named ‘wireless_handlers’ pNetDev->wireless_handlers = pDevOpHook->iw_handler; ^ please help. Thanks

techatreyo commented 3 months ago

I am on v5.10.146 | unable to compile can you guide ?