Прошивка wifi адаптера mt7601

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.

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.

License

muratdemirtas/MT7601u

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

Raspberry Pi MT7601u ACCESS POINT AND STATION MODE SUPPORT

This example will teach you for using unsupported Mediatek MT7601u based wireless chipsets as Access Point mode in Linux systems. So you can use this wireless antenna in your embedded or desktop based Linux robotic projects or sharing your internet connection(as like hotspot). No hardware and programming skills required. We will not use hostapd driver. Just follow what I write.

Plug your Wi-Fi antenna to your PC or Raspberry Pi and write this command to check if you have Clone MT7601.

alt tag

Look this image if Ralink ID is equal with your Wi-Fi dongle then everything is fine. Your module will work. Follow instractions for your linux based operating systems.

ON UBUNTU 32-64 BIT SYSTEMS…

On Ubuntu 16.04 32-64 bit LTS systems, you can compile this driver easily. But you must be first update your system with these commands.

sudo apt-get update && sudo apt-get upgrade -y 

GETTING DRIVER ON UBUNTU 32-64 BIT SYSTEMS…

Читайте также:  Lg lk5400pla включить wifi

If you dont have git package then you install with this command.

GETTING SOURCE CODE FROM THIS REPOSITORY

Get this driver with git clone method from this repo. Type to terminal

sudo git clone https://github.com/muratdemirtas/MT7601u.git 

COMPILING DRIVER ON UBUNTU 32-64 BIT SYSTEMS…

Driver will download after this command to your home directory. Open downloaded driver folder with

ACCESS POINT CONFIGURATION…

if you want to change your Access Point configuration, use this command for opening. If you have nano package then you can use vim,gedit or install nano package with following command (default ssid : Rpi_Hotspot_Free, password:1234567890)

sudo apt-get install nano -y sudo nano /home/pi/mt7601u/etc/Wireless/RT2870AP/RT2870AP.dat 

Write your settings and save for configuration, press “ctrl-w” + press “y” and press enter. Compile your driver with this commands.

cd mt7601u/ sudo cp -v /lib/modules/$(uname -r)/build/Module.symvers src/os/linux sudo make clean && make all && make install sudo rm -rvf src/os/linux/Module.symvers 

AFTER COMPILING SOURCE CODE…

So you if not receive any error messages and success , driver is compiled and ready for Access Point mode. Make install command will deploy your Access Point drivers (rtnet7601Uap, mt7601Uap) to kernel automatically. But old MT7601 Chipset kernel module must be remove from Linux kernel system. Only and easy way fort his, add old mt7601 kernel module to Linux blacklist. So you can this easy with these commands.

Just open your /etc/modprobe.d/blacklist file

sudo nano /etc/modprobe.d/blacklist 

and add drivername using following syntax:

press “ctrl-w” + press “y” and press enter for save.

EDIT: In later versions since 12.10 (12.04?) the file is /etc/modprobe.d/blacklist.conf Reboot your system and use lsmod command to show the status of modules in the Linux Kernel. If you dont see any modüle as “mt7601u” then success.

alt tag

alt tag

After reboot your system, Access Point is established and wait for dhcp install.

alt tag

alt tag

At this moment, you can connect your Access Point but you can’t obtain IP adress because DHCP server isn’t installed. Install with these commands..(You may need to sudo apt-get update if the Pi can’t seem to get to the apt-get repositories)

sudo apt-get install hostapd isc-dhcp-server 

Next, we will edit /etc/dhcp/dhcpd.conf, a file that sets up our DHCP server — this allows wifi connections to automatically get IP addresses, DNS, etc. Run this command to edit the file

sudo nano /etc/dhcp/dhcpd.conf 
option domain-name "example.org"; option domain-name-servers ns1.example.org, ns2.example.org; 

and change them to add a # in the beginning so they say

#option domain-name "example.org"; #option domain-name-servers ns1.example.org, ns2.example.org; 

Find the lines that say # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented

Then scroll down to the bottom and add the following lines

subnet 192.168.42.0 netmask 255.255.255.0

Save the file by typing in Control-X then Y then return

sudo nano /etc/default/isc-dhcp-server 

and scroll down to INTERFACES=»» and update it to say INTERFACES=»ra0″

Читайте также:  Дополнительные настройки wifi адаптера ноутбука

alt tag

set static IP for your wifi card type and route packages for internet share type these commands to terminal

sudo ifconfig ra0 192.168.42.1 sudo iptables -F sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward " sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i eth0 -o ra0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i ra0 -o eth0 -j ACCEPT sudo iptables -t nat -S 

So your Access Point is ready and internet sharing will work

alt tag

ON RASPBERRY PI EMBEDDED LINUX 32-64 BIT SYSTEMS…

For compiling this module, use these commands for compiling and take a coffee.

git clone https://github.com/muratdemirtas/MT7601u.git cd mt7601u/ sudo cp -v /lib/modules/$(uname -r)/build/Module.symvers src/os/linux sudo make clean && make all && make install sudo rm -rvf src/os/linux/Module.symvers sudo ifconfig wlan0 down sudo rmmod mt7601u sudo ifconfig ra0 up sudo ifconfig ra0 192.168.42.1 sudo iptables -F sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward " sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i eth0 -o ra0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i ra0 -o eth0 -j ACCEPT sudo iptables -t nat -S sudo service isc-dhcp-server restart 

if you receive «Makefile:387: recipe for target ‘LINUX’ failed». You need to get Raspberry Pi linux headers using rpi-source.

sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source sudo chmod +x /usr/bin/rpi-source /usr/bin/rpi-source -q --tag-update sudo rpi-source 

About

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.

Источник

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.

AP driver for MT7601U dongles

License

Anthony96922/mt7601u-ap

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.

Читайте также:  Приложение мощность сигнала wifi

README.md

AP driver for MT7601U chipset based adapters

Many USB WiFi dongles advertised to have an RT5370 chipset actually have an MT7601 chipset. There is not driver in Linux that support these devices in AP mode. This driver can be used to set up a hotspot with these devices. This should compile on most kernels without issue if the API’s haven’t been changed. If you’re running Ubuntu or any of its derivatives, the kernels are most likely modified and may cause compilation errors.

Please create a pull request if you’ve worked on cleaning up some of the code as it is currently a mess to read.

$ git clone https://github.com/Anthony96922/mt7601u-ap $ cd mt7601u-ap $ make $ sudo make install $ sudo modprobe mt7601Uap

You need to add «coherent_pool=4M» to your kernel command line for this to work!

If the module has loaded then running sudo ip link set ra0 up will bring up a WiFi access point that you can connect your devices to. You can change the network name and the password by editing the file /etc/wifi/RT2870AP/RT2870AP.txt .

This can be built for a different platform by setting LINUX_SRC to the kernel source directory, CROSS_COMPILE to your compiler and ARCH to the CPU architecture you are compiling for.

About

AP driver for MT7601U dongles

Источник

Скачать драйвера на USB Wi-Fi адаптер MT 7601 и RT 5370

USB Wi-Fi адаптеры собраны на разных чипах и под эти чипы (чипсеты) нужны необходимые драйвера под вашу технику. Я много раз слышал от пользователей (к примеру в этой группе «VK» в контакте), что у них по какой то причине не подключается USB Wi-Fi адаптер к приставке (спутниковой или т2).

Без необходимого драйвера USB Wi-Fi адаптер работать не сможет. Конечно причин по которой не подключается USB Wi-Fi адаптер много. И одна из них, это — данная ТВ приставка видит USB Wi-Fi адаптер только на определённом чипе. То есть, USB Wi-Fi адаптеры собираются на разных чипах, под тот или другой чип в (т2 или спутниковой приставке) в самой прошивке должны быть вшиты драйвера. И разумеется если ваша т2 или спутниковая приставка видит USB Wi-Fi адаптер на чипе MT 7601, а сам USB Wi-Fi адаптер собран на чипе RT 5370, то и увидеть его приставка не сможет.

Загрузить дополнительный драйвер на Т2 или спутниковую приставку (как на компьютер) вы не сможете. Можно только сменить программное обеспечение вашей ТВ приставке. Иногда в более новом программном обеспечении, бывает предусмотрены оба этих драйвера. Но это не так часто бывает.

Как прошить Т2 приставку, смотрите здесь.

В большинстве случаев современные Т2 или спутниковые приставки на сегодняшний день работают на этих USB Wi-Fi адаптерах, MT 7601 и RT 5370.

А вот если вы эти USB Wi-Fi адаптеры хотите поставить на компьютер…, то возможно вам и понадобятся драйвера под них.

Как узнать, на каком чипе работает ваш USB Wi-Fi адаптере, об этом здесь.

Купить USB Wi-Fi адаптер можно здесь:

Источник

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