Ask Your Question
0

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

asked 2017-12-02 16:02:38 -0500

phi208 gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2019-03-22 13:34:00 -0500

EB gravatar image

Really? No one can provide a better answer, all through the web? No it doesn't work with Fedora 29 either. Please don't respond with, why are you trying blah, blah, blah. Solutions only please.

edit flag offensive delete link more
0

answered 2017-12-02 19:45:26 -0500

florian gravatar image

That wifi adapter should work out of the box in Fedora.

edit flag offensive delete link more

Comments

but, it don't. Fedora 27 user here.

kmonsoor gravatar imagekmonsoor ( 2017-12-09 05:31:11 -0500 )edit

I bought an Edimax adaptor, which works under Fedora 27 without adding any software, but I had to disable onboard Wifi in bios to stop it interfering with the usb adaptor.

Michael Black gravatar imageMichael Black ( 2017-12-19 17:32:50 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-12-02 16:02:38 -0500

Seen: 986 times

Last updated: Dec 02 '17