Ralink rt5370 driver linux

Установка и использование сетевой адаптер Ralink

Доброго времени суток . Приобрел wi-fi адаптер-антенку Ralink rt5370 -захотелось ее заставить работать на своем ноуте (Lenovo s10). На борту в качестве ОС debian Linux 2.6.33.20.

#lsusb: Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

C оффсайта достал дрова:

#modprobe -l | grep rt5370 kernel/drivers/net/wireless/rt5370sta.ko

Устройство определилось в качестве: ifconfig

ra0 Link encap:Ethernet HWaddr 00:0f:53:83:41:85 inet6 addr: fe80::20f:53ff:fe83:4185/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1841303 (1.7 MiB) TX bytes:1260000 (1.2 MiB)

ra0 Ralink STA ESSID:«» Nickname:«RT2870STA» Mode:Auto Frequency=2.412 GHz Bit Rate=1 Mb/s RTS thr:off Fragment thr:off Encryption key:off Link Quality=10/100 Signal level:0 dBm Noise level:0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

#iwlist scan lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

ra0 Scan completed :

Cell 01 — Address: 08:76:FF:05:CA:B9 Protocol:802.11b/g ESSID:«Thomson75CC70» Mode:Managed .

*А вот Essid поменять (для подключения к сети ) не удается . не подскажите в чем может быть проблема ?

Ps : имеется так же интегрированный адаптер в системе(wlan0) . возможно ли как -то синхронизировать их работу (есть ли инструменты какие-то для этого) ?

*gnome networking не определяет интерфейс ra0.(то есть iwlist scan ) удается выполнить только руками , даже если wlan0 отключен.

Источник

Подключаем WiFi-адаптер WN727N к Ubuntu/Mint

ВНИМАНИЕ! АВТОР СТАТЬИ НЕ НЕСЕТ НИКАКОЙ ОТВЕТСТВЕННОСТИ ЗА ПРИЧИНЕННЫЙ УЩЕРБ!

Но, если вы сделаете все правильно, последствий не будет. Даже если что-то пойдет не так, ничего страшного не произойдет. Начнем.

Первым делом открываем терминал при помощи клавиш Ctrl+Alt+T и вводим такую команду:

Видим наш адаптер Ralink RT7601(выделено). У вас может быть адаптер Ralink RT5370. Драйвера на разные адаптеры устанавливаются по-разному. Я опишу как это сделать для для двух случаев.

Переходим по ссылке и выбираем RT8070/ RT3070/ RT3370/ RT3572/ RT5370/ RT5372/ RT5572 USB USB. Скачиваем архив с драйвером.

Открываем папку, в которую сохранили драйвер, и распакуем архив bz2. Для этого кликаем правой кнопкой мыши по файлу и нажимаем “Распаковать сюда” (“Extract here”).

После этого появится архив tar. Еще раз его распаковываем. Нажимаем правой кнопкой мыши по файлу и нажимаем “Распаковать сюда” (“Extract here”).

Далее меняем название папки на что то более короткое, так как нам еще предстоит писать ее путь в консоль. Например я назвал ее Driver.

Заходим в распакованную папку и открываем в текстовом редакторе файл /os/linux/config.mk

Читайте также:  Windows 10 x32 оригинал

Находим следующие строки и изменяем букву n на y:

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y

# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

После этого сохраняем файл. Открываем терминал и переходим в распакованную папку. Внимание! У меня имя пользователя sergey. Вы же вводите свое имя пользователя! В дальнейшем меняйте sergey на имя своего пользователя.

Далее выполняем команды:

И все! О, чудо! WIFI работает, пользуйтсь на здоровье.

Для того, чтобы завести этот адаптер(Ralink RT7601), вам необходимо иметь ядро версии 3.19 или выше. если необходимо — обновите ядро (если не знаете как — google поможет).

Далее идем по ссылке и скачиваем драйвер:

Далее скачанный архив перемещаем в домашнюю папку и распаковываем (клик правой клавишей мыши, «извлечь сюда»). Переименуем получивщуюся папку mt7601-master просто в mt7601.

После этого вводим команду:

Теперь мы в нужном каталоге. Можно произвести сборку драйвера, выполняем команду:

Система запросит пароль — вводим (пароль не отображается).

Далее вводим команды:

И последняя команда, которая включит наш адаптер:

Все. Теперь ubuntu видит wifi.

Но это еще не все! Теперь после каждой перезагрузки необходимо вводить последнюю команду, иначе система не увидит адаптер (именно для Ralink RT7601). Но есть выход! Можно создать скрипт и добавить его в автозагрузку. Ниже написано как это сделать.

Первым делом нам надо сделать так, чтобы система не запрашивала пароль при использовании sudo. Для этого вводим команду:

Откроется такое окно:

%sudo ALL=(ALL:ALL) ALL

%sudo ALL=(ALL:ALL) NOPASSWD: ALL

Сохраняем изменения — нажимаем «Сохранить».

После этого вводим команду:

Открывается пустой текстовый редактор. В нем пишем или копируем:

#!/bin/bash
insmod /etc/Wireless/RT2870STA/mt7601/src/os/linux/mt7601Usta.ko

Нажимаем «Сохранить» и закрываем.

Далее идем в меню Dash и ищем программу как на картинке ниже:

Открываем ее. Нажимаем «Добавить».

Откроется окно. Напротив поля «Имя» пишем:

Напротив поля «Команда» пишем:

sudo sh /etc/Wireless/RT2870STA/autowifi.sh

Нажимаем кнопку «Добавить» и закрываем программу. Перезагружаемся. После перезагрузки все работает. Теперь можно выбрать сеть в трее.

На этом «небольшая» инструкция для адаптера Ralink RT7601 закончена.

Источник

Thread Tools
Display

New to Linux/Ubuntu.
* I have just spent 4+ hours trying to get a wi-fi adapter working without success.
* I was shocked the driver was not «double-click and off-you-go» like Windows.
* I’ve have gone from knowing zero to learning the basics fast, but I’m still way out of my element.

The details
lsusb nearly always doesn’t show the attached wi-fi USB. When it did show it (just twice, randomly) it had this info in the ID field:

ID 148f:5370 Ralink Technology, Corp.

USB ports and wi-fi adapter both worked fine under XP; it’s definitely not a hardware problem. So anyway, right now lsusb is not showing any adapter connected (and nearly always doesn’t show the adapter connected to USB).

Ralink RT5370 driver has been downloaded
http://www.ralinktech.com/en/04_supp. r=5016&sn=5016
. after agreeing to their terms here.

Читайте также:  Скольки битная система mac os big sur

I have extracted it to the desktop and renamed the folder to RT5370. I have gone inside this folder:

I have opened config.mk here and set two lines to y (yes):

If somebody can explain why the user has to do this in 2012, I’d appreciate it. WPA is not built-in or enabled. why? I’ve also followed some makefile instructions in another thread but I’m in way over my head and there are too many threads from years ago which I’m not sure are still relevant. Regardless, the wi-fi adapter still isn’t working.

Please help me get this wireless adapter working.
I need very basic and deliberate instructions if possible. I’m not afraid to do what I have to do as long as it’s explained clearly and/or assumes no prior knowledge.

Thanks so much for any hints.

Last edited by triugan; December 3rd, 2012 at 06:04 PM .

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

Post by paulf58 » Tue Sep 12, 2017 7:41 am

Have just installed Mint 18.2/MATE (32-bit) on a (10 year old) Compaq/HP 6720S. All good, with exception of a USB/wireless adapter I am using. The built-in Broadcom adapter is 802.11G only, and my home network is N, so would prefer to be able to use USB adapter (which I know to be working under Vista). Broadcom adapter is also turned-off in BIOS.

While installing from USB, the installer asked if I was OK to install proprietary drivers for the adapter (based on a Ralink RT5370). I OK-ed it, and started the install — but (foolishly) without ethernet plugged-in.

The adapter now doesn’t seem to work — had hoped it would get «discovered» during the update process, but it seems not.

My question is, can I manually add a driver to enable the adapter, or am I better to try to re-install from scratch, with ethernet connected, this time?

Any suggestions/wisdom welcome.

Have attempted to gather some maybe useful info here:

$ uname -a
Linux paul-HP-Compaq-6720s 4.8.0-53-generic #56

16.04.1-Ubuntu SMP Tue May 16 01:14:44 UTC 2017 i686 i686 i686 GNU/Linux

$ lsusb
Bus 002 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

$ iwlist scan
wlx000f600b777d Failed to read scan data : Network is down

lo Interface doesn’t support scanning.

enp0s25 Interface doesn’t support scanning.

$ lshw -c net
WARNING: you should run this program as super-user.
*-network
description: Ethernet interface
product: 82562GT 10/100 Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: enp0s25
version: 03
serial: 00:1a:4b:93:59:49
size: 100Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=1.1-2 ip=192.168.1.123 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:30 memory:e4600000-e461ffff memory:e4620000-e4620fff ioport:4020(size=32)
*-network
description: Network controller
product: BCM4311 802.11b/g WLAN
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:10:00.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=b43-pci-bridge latency=0
resources: irq:17 memory:e4000000-e4003fff
*-network DISABLED
description: Wireless interface
physical id: 1
bus info: usb@2:3
logical name: wlx000f600b777d
serial: 00:0f:60:0b:77:7d
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rt2800usb driverversion=4.8.0-53-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.

Читайте также:  Показать скрытые файлы mac os терминал

$ rfkill list all
0: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: hp-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: yes
5: phy4: Wireless LAN
Soft blocked: no
Hard blocked: no

Источник

little problem i want to transfer from my windows to ubuntu because its amazing but my wireless usb isnt picked up on ubuntu so its completely offline and i dont know how to download or transfer the driver for it over to ubuntu the computer calls the wireless 802.11n wireless LAN card although on the ralink website that doesnt come up but i think its a RT5370 which i can download on my windows computer but i cant transfer it over to ubuntu via memory stick etc so yeah any help would be appreciated kind of dont want to be forever doomed in windows:D

2 Answers 2

You are using RT5370 USB device. Download the driver from here.

Give you Name & E-mail address and press Accept.

I assume you download it in Downloads folder.

Now open a terminal by pressing Ctrl+alt+t and type.

it will unzip the arcive in same folder.

There is a tar.bz2 type file.. untar it by typing

Now the installation part.

UPDATE : I forgot to mention, you need some dependent package to install sudo apt-get install build-essential to solve this.

Done. Hope it helps.

Have you tried disabling the power management of your wlan0 device? This did the magic for my €15,- brandless wireless-n usb adapter that has the Ralink 5370 chipset in it. I let (X)ubuntu 12.04 load the pre-built rt2800usb kernel module that seems to work very well with this device. No need to download anything.

You can check the status of the adapter’s power management;

If it is returning a line that says «Power Management:on», than you can turn it off like this;

To make this persistant every time you boot, make a small script that contains the line above;

Now make the file executable;

Now insert the lines in the «wireless» file;

Press «ENTER» and press «Ctrl+D».

Now reboot the computer and check whether power management of the wlan0 adapter is really off;

Источник

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