Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to install a Ralink USB wifi adapter with mt7601u driver in fedora ?

first of all I have a dual boot system win7/fedora 26 I bought a USB wifi adapter and I did the following: 1.I plugged it in and I copied the files from the CD which came with it. 2.I installed the driver on windows and it worked like fire but the problem started when I tried to install it on fedora 26 3.when i try to compile the make files i got errors

 root@localhost src]# make
make -C tools
make[1]: Entering directory '/home/phi/mt7601usta/src/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/phi/mt7601usta/src/tools'
/home/phi/mt7601usta/src/tools/bin2h
cp -f os/linux/Makefile.6 /home/phi/mt7601usta/src/os/linux/Makefile
make -C /lib/modules/4.13.16-200.fc26.x86_64/build SUBDIRS=/home/phi/mt7601usta/src/os/linux modules
make[1]: Entering directory '/usr/src/kernels/4.13.16-200.fc26.x86_64'
  CC [M]  /home/phi/mt7601usta/src/os/linux/../../os/linux/sta_ioctl.o
In file included from ./include/linux/bitmap.h:8:0,
                 from ./include/linux/cpumask.h:11,
                 from ./arch/x86/include/asm/cpumask.h:4,
                 from ./arch/x86/include/asm/msr.h:10,
                 from ./arch/x86/include/asm/processor.h:20,
                 from ./arch/x86/include/asm/cpufeature.h:4,
                 from ./arch/x86/include/asm/thread_info.h:52,
                 from ./include/linux/thread_info.h:37,
                 from ./arch/x86/include/asm/preempt.h:6,
                 from ./include/linux/preempt.h:80,
                 from ./include/linux/spinlock.h:50,
                 from ./include/linux/seqlock.h:35,
                 from ./include/linux/time.h:5,
                 from ./include/linux/stat.h:18,
                 from ./include/linux/module.h:10,
                 from /home/phi/mt7601usta/src/include/os/rt_linux.h:31,
                 from /home/phi/mt7601usta/src/include/rtmp_os.h:44,
                 from /home/phi/mt7601usta/src/include/rtmp_comm.h:75,
                 from /home/phi/mt7601usta/src/os/linux/../../os/linux/sta_ioctl.c:30:
In function ‘memcpy’,
    inlined from ‘rt_ioctl_iwaplist’ at /home/phi/mt7601usta/src/os/linux/../../os/linux/sta_ioctl.c:701:2:
./include/linux/string.h:305:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
    __read_overflow2();
    ^~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:303: /home/phi/mt7601usta/src/os/linux/../../os/linux/sta_ioctl.o] Error 1
make[1]: *** [Makefile:1516: _module_/home/phi/mt7601usta/src/os/linux] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.13.16-200.fc26.x86_64'
make: *** [Makefile:419: LINUX] Error 2

4.those are the outputs of lsusb & lspci .

[root@localhost src]# lsusb
Bus 002 Device 002: ID 04e8:6031 Samsung Electronics Co., Ltd 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 1a2c:0042 China Resource Semico Co., Ltd 
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

&&&&

[root@localhost src]# lspci
00:00.0 Host bridge: Intel Corporation 82Q963/Q965 Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q963/Q965 Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q963/Q965 HECI Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM Gigabit Network Connection (rev 02)
00:1a.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1d.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HO (ICH8DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA Controller [IDE mode] (rev 02)
  1. as you can see it's listed in lsusb but not in lspci

I tried all the solutions i found on internet but nothing changed , please help me !!