Ralink rt7601 driver linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Linux driver for MT7601U with patch for stability and performance on recent kernel versions

License

art567/mt7601usta

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Note: Kernel 4.2 has been released which contains a driver for mt7601u, this repository is now deprecated.

Driver support since kernel version >= 4.x is dropped and not guaranteed anymore.

This repo is forked from [imZack/mt7601] (https://github.com/imZack/mt7601) and I have added binary packages for this version.

imZack added some features for this driver:

Many cheap USB wifi dongles use the MediaTek MT7601U chip.

Unfortunately, there is no driver in Linux kernel source tree which can work with this chip, yet. This repository is based on the original driver released by MediaTek which was rejected from Linux kernel because of the poor code quality. The repository includes various stability and performance improvements for kernels >= 3.x and has been tested with the following kernels:

  • 3.15.10-200.fc20.x86_64
  • 3.16.1-301.fc21.x86_64
  • 3.16.1-301.fc21.i686
  • 3.17.0-0.rc2.git3.1.fc22.i686
  • 3.17.0-0.rc2.git3.1.fc22.x86_64
  • 3.12.26-1.20140808git4ab8abb.rpfr20.armv6hl.bcm2708
$ git clone https://github.com/art567/mt7601usta.git $ cd mt7601usta/src $ export LINUX_SRC=/home/syno/source/linux-3.x $ export CROSS_COMPILE=/home/syno/toolchains/5.1/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- $ make

Now you have to copy os/linux/mt7601Usta.ko and RT2870STA.dat to your target machine.

$ mkdir -p /etc/Wireless/RT2870STA/ $ cp RT2870STA.dat /etc/Wireless/RT2870STA/ $ insmod mt7601Usta.ko

The interface will be ra0.

Currently the DSM WebGUI will not be able to use the wifi dongle so far, but it works with command line.

Unofficial mt7601u driver

Читайте также:  Linux support amd radeon

For kernels 3.19 and later a new mac80211 driver was written from scratch by the community. It was done because there is very little chance that this vendor driver will ever become part of official Linux kernel. If you have Linux kernel version between 3.19 and 4.2 you can download the new driver from https://github.com/kuba-moo/mt7601u. If you have Linux 4.2 or later the new driver is already part of the kernel (it’s called mt7601u). Note that from Linux 4.2 on you will have to blacklist the mt7601u driver to continue using code from this repository.

First install kernel-devel for your Linux distro:

  • RHEL/CentOS: # yum install kernel-devel gcc
  • Fedora 24/25/26: # dnf install kernel-devel gcc
  • Debian/Ubuntu: # apt-get install linux-headers-generic build-essential

Clone repository and type following to build driver:

$ git clone https://github.com/art567/mt7601usta.git $ cd mt7601usta/src $ make # mkdir -p /etc/Wireless/RT2870STA/ # cp RT2870STA.dat /etc/Wireless/RT2870STA/ # insmod os/linux/mt7601Usta.ko

If the module has loaded OK, you should see mt7601Usta listed in the output of lsmod and a new network interface ra0 should be present in the output of ip link .

If all goes well, you can permanently install the driver with make install .

In order to successfully compile this driver for Gentoo, you must compile your kernel with the appropriate wireless extensions included. One way to do that is by enabling Cisco/Aironet 34X/35X/4500/4800 PCMCIA cards wireless module. If you see errors when compiling the driver, check to see if you have the necessary wireless extensions by running zgrep -i wext /proc/config.gz . The output should look something like:

CONFIG_WEXT_CORE=y CONFIG_WEXT_PROC=y CONFIG_WEXT_SPY=y CONFIG_WEXT_PRIV=y CONFIG_CFG80211_WEXT=y 

More discussion can be found here

Читайте также:  Updating firefox on linux

There is a PPA repo available containing a DKMS-capable package based on this repo:

On 26 Aug, 2014 user @poma posted to the linux-wireless mailing list discussing the poor state of driver support for this chipset. Thread can be seen here:

An inital patch was released on 28 Aug, 2014 with the following comment:

A patch[1] is composed partly from the RT3573 source code patched by ashaffer, from Andreas work, some of the ideas are from the beagleboard community, and some of my. :) Debug(trace) is turned off. Device now works more or less OK but slow, max. 10 Mbit, although connectable is only within the "N" & "N/G" modes. What is important is the system no longer crashes, and disconnection are rare. Generally better than before. 

A second patch was released on 31 Aug, 2014 with the following comment:

A new patch[1] mainly based on patches at https://github.com/ashaffer/rt3573sta and several network throughput tests via the Iperf. 

Source code: (c) Copyright 2002-2013, MediaTek Inc. (released under GPLv2)

Patch: @poma at linux-wireless mailing list

About

Linux driver for MT7601U with patch for stability and performance on recent kernel versions

Источник

Я пытаюсь установить адаптер Wi-Fi Ralink в Ubuntu Desktop 14.04.

Система не обнаруживает Wi-Fi.

    lsusb перечисляет устройство как:

Bus 002 Device 004: ID 148f:7601 Ralink Technology, Corp. 
echo 148F 7601 | sudo tee /sys/bus/usb/drivers/rt2800usb/new_i 
rt2800usb 26581 0 rt2x00usb 20041 1 rt2800usb rt2800lib 83150 1 rt2800usb rt2x00lib 48886 3 rt2x00usb,rt2800lib,rt2800usb mac80211 545990 3 rt2x00lib,rt2x00usb,rt2800lib crc_ccitt 12627 1 rt2800lib 

5 ответов

Я предлагаю вам получить временное подключение к Интернету, Ethernet, привязанный или все, что доступно. Затем сделайте:

sudo apt-get install linux-headers-generic build-essential git git clone https://github.com/art567/mt7601usta.git cd mt7601usta/src make sudo make install sudo mkdir -p /etc/Wireless/RT2870STA/ sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/ sudo modprobe mt7601Usta 

Ваш беспроводной теперь должен работать.

Вы скомпилировали драйвер только для вашей текущей версии ядра. Когда Update Manager устанавливает более поздний linux-образ, после необходимой перезагрузки вы должны перекомпилировать:

cd mt7601/src make clean make sudo make install sudo modprobe mt7601Usta 

Пожалуйста, сохраните файлы и эти инструкции на это время. Рад, что это работает!

С Ubuntu 14.04 до 15.04

Драйвер может быть установлен через PPA:

sudo apt-add-repository ppa:thopiekar/mt7601 sudo apt-get update sudo apt-get install mt7601-sta-dkms 

Ubuntu 14.04 с ядром 4.2 и Ubuntu 15.10

Драйвер mt7601u был включен в ядро ​​Linux 4.2, но прошивка, требуемая для этого адаптера, не была включена в пакет linux-firmware из репозитория Ubuntu 15.10. Прошивка может быть загружена отсюда и должна быть сохранена в /lib/firmware/mt7601u.bin (

Читайте также:  Linux operatsion tizimi tarixi

Поддерживаются следующие адаптеры:

  • 0b05: 17d3
  • 0e8d: 760a
  • 0e8d: 760b
  • 13d3: 3431
  • 13d3: 3434
  • 148f: 7601
  • 148f: 760a
  • 148f: 760b
  • 148f: 760c
  • 148f: 760d
  • 2001: 3d04
  • 2717: 4106
  • 2955: 0001
  • 2955: 1001
  • 2a5f: 1000
  • 7392: 7710

Скачать Driver and Patch можно по ссылкам.

sudo apt-get install --reinstall linux-headers-generic build-essential tar xjf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2 cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/ patch -p0 < ~/(ADD THE PATH)/rt2870-mt7601Usta-kuid_t-kgid_t.patch make su -c 'mkdir -p /etc/Wireless/RT2870STA/' su -c 'cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat' 
su -c '/sbin/insmod os/linux/mt7601Usta.ko' 

Что сработало для меня

версия ядра: 4.13.*

  • перезагрузите компьютер, чтобы убедиться, что обновление ядра не ожидается
  • Получите текущую версию ядра, используя uname -r команда.
  • Получить папку drivers/net/wireless/mediatek/mt7601u из дерева исходных текстов ядра Linux ( https://github.com/torvalds/linux/). Должно совпадать с вашей версией ядра. До первых двух цифр, например 4.13 в моем случае. Вы найдете точное согласованное ядро, проверив tags на Гитхубе branch выпадающее меню.
  • Удалить устройство с ПК
  • Теперь откройте phy.c файл из загруженной папки.
  • найти функцию mt7601u_init_cal в файле
  • Искать для RXIQ , Закомментируйте строки

//ret = mt7601u_mcu_calibrate(dev, MCU_CAL_RXIQ, 0); //if (ret) // return ret;

  • Постройте модуль, используя make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
  • бежать sudo rmmod mt7601u
  • бежать sudo insmod mt7601u.ko
  • Теперь вставьте устройство в ПК
  • проверить сообщения ядра, используя dmesg если что-то фатальная ошибка
  • Проверьте, распознается ли новый сетевой интерфейс, используя ifconfig команда

Заметка

Чтобы убедиться, что любой из этих работ, вы должны убедиться, что вы обновили binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms установлены. В зависимости от вашего дистрибутива, некоторые из них могут немного отличаться.

Это просто означает, что вы должны указать путь к файлу исправления.

Просто вставьте полное местоположение файла патча. Предполагая, что файл находится в /tmp/patch/rt2870-mt7601Usta-kuid_t-kgid_t.patch , вы бы использовали следующую команду:

Обратите внимание, что вы должны находиться в каталоге, где находится файл, который вы хотите исправить. Я предполагаю, что это в /tmp/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/ каталог, в котором вы уже находитесь.

Источник

Оцените статью
Adblock
detector