Mediatek wifi driver linux

Mediatek wifi driver linux

Как известно wi-fi адаптеры от компании Mediatek, плохо совместимы с операционной системой Linux. Ниже приведена краткая инструкция о том, как заставить работать Mediatek MT7630E.

Официально компанией Mediatek бал выпущен работающий драйвер для Mediatek MT7630E для Linux, поддерживающий только ядра версии 3.13 и 3.14. В данном руководстве будет рассмотрен модифицированный драйвер, совместимый с версией ядра Linux 4.2 и выше.

Скачивание драйвера

Скачать драйвер можно отсюда (это модифицированная версия оригинального драйвера которую очень легко установить).

Установка

Для установки драйвера Mediatek MT7630E просто следуйте нижеприведенным инструкциям:

  1. Распакуйте скачанный архив домашнюю или любую директорию;
  2. Откройте терминал и перейдите в распакованную директорию:
  3. Теперь выполните команды одна за другой

Введи свой пароль и ждите завершения установки.

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

Еще можно установить драйвер с динамической поддрержкой модулей ядра Linux (dkms), что позволит не переустанавливать его каждый раз, когда ядро будет обновлено. Для этого следует устанавливать драйвер используя следующие команды:

У вас недостаточно прав для того чтобы тут гадить.

Источник

Не могу установить драйвер MediatekMT7630e на Linux Kali

Пишет все возможные ошибки не знаю что и делать

Пишет все возможные ошибки не знаю что и делать

Если не нужны пентесты — не использовать Кали. Кстати, это официальная позиция разработчиков, это _узкоспециальный_ дистрибутив, не для опытных и не для новичков:

If you are looking for a Linux distribution to learn the basics of Linux and need a good starting point, Kali Linux is not the ideal distribution for you. You may want to begin with Ubuntu, Mint, or Debian instead. If you’re interested in getting hands-on with the internals of Linux, take a look the “Linux From Scratch” project.

Если нужны, то два вопроса: есть ли сеть по проводам и вывод команд

как ты на убунте настраивал (см. прошлую тему ТС)? какие ошибки пишет?

Прошлая тема — дубль текущей. Уже зарепортил в спецтопик, не беспокойся. А его прошлый акк я не знаю.

Ты создал две одинаковых темы про Кали в один день. Я сообшил модераторам, и дублирование было устранено. Не беспокойся, ты не потерял ни ответов на вопрос, ни score.

А про прошлый акк — в связи с появлением довольно заметного числа тех, кто использует Кали для того, чтобы выпендриться («я кулхацкер и ломанул WiFi соседу», а то и вовсе просто хвастаться фактом установки), а не по делу (пентестинг), в сообществе к его пользователям стали плохо относиться. Поэтому иные его пользователи каждый раз постят под новым именем, можно подумать, что это поможет.

кали глючная — надо ставить дебиан, в нем есть все калийные пакеты и человеческая стабильность.

Сетки соседу ломать Тестить безопасность можно и без кала. Хоть с убунты.

Я хотел поставить кали не для хакерских атак. Просто друг попросил установить кали ему. И вот я решил установить сначала себе для проверки, но возникла такая ситуация

Источник

Mediatek wifi driver linux

This repository is not maintained by @neurobin any more. If anyone is interested to take over, please leave a comment at https://github.com/neurobin/MT7630E/issues/90

Читайте также:  Кто может заходить по ssh linux

Easy installation package for Mediatek MT7630E Wifi + Bluetooth Combo Linux Driver. The official driver was found at http://www.mediatek.com/en/downloads/mt7630-pcie/ (this link no longer exists)

  • rt2x00: Wi-Fi driver source code
  • btloader: Bluetooth firmware loader source code
  • firmware: Firmware binary code (MT7650E234.bin is for Wi-Fi, mt76x0.bin is for Bluetooth)

You need kernel headers to build the driver

As an example, on Debian and derivatives, assuming you’re on an amd64 system:

That’s all for dependencies.

First give some file execution permission:

Now to install it, run:

To test it without installing, run:

To uninstall, run:

To install with dkms:

The driver will automatically load at startup.

Installing inside a container (chroot) environment

Pass the kernel version as an argument with install or uninstall script:

With make , the argument shall be KERNEL=kernel-version

For kernel 3.13 — 3.16 bluetooth may work without any extra efforts, but for higher kernels it may not work at all. A kernel patch for the bluetooth driver may be needed to get it up and working.

If wifi works after installing the driver but bluetooth doesn’t, you should first check if bluetooth is hard/soft blocked. If it is blocked then remove the block, but if that’s not the case then we have a patch for you that you can apply to your kernel.

Test blocking state:

To check if bluetooth is hard/soft blocked, run rfkill list . It will show you something like this:

If it is soft blocked, you can unblock it with:

If it is hard blocked then check if your PC has some kind of switch to turn it on or may be a key combination or a little haggle in the BIOS settings (you will have to investigate).

If there is no block or unblocking from blocked state didn’t do any good, then you should try the patch.

Without running all those commands manually, you can use the bpatch script to automatically patch it for you.

Try the bpatch script

The bpatch script downloads the kernel source and tries to patch the bluetooth driver and insert the compiled module in the right place automatically. To apply patch with the bpatch script all you need to do is run it with root privilege.

If you want to undo this patch:

If you have already downloaded the kernel source, then give the source directory path as an argument to the bpatch script with -sd option:

Note: The bpatch script is for debian based systems and make sure to enable source code repository before running it. For Ubuntu this link may help you enabling the source repository.

Troubleshooting when upgrading kernel

If you installed the driver with the install script, you will have to reinstall the drivers when you upgrade your kernel.

If you don’t uninstall, you will face problems like this:

If you install with dkms then you won’t need to uninstall/install for minor kernel updates. Major kernel updates may still need update/uninstall/install though.

Not being signed, this driver is not expected to work on secure boot.

Note: Even though the original source was taken from kuba-moo, it no longer resembles that of the original. If you want to apply a patch that works with other sources, be ware that the line number and content may or may not match i.e you will have to be careful applying patches.

Читайте также:  Acer aspire 515 55 установка windows 10

Please do all pull requests against the master branch. The release branch is for releases only.

Источник

Component¶

Installation¶

You need kernel headers to build the driver

As an example, on Debian and derivatives, assuming you’re on an amd64 system:

That’s all for dependencies.

First give some file execution permission:

Now to install it, run:

To test it without installing, run:

To uninstall, run:

To install with dkms:

The driver will automatically load at startup.

Installing inside a container (chroot) environment¶

Pass the kernel version as an argument with install or uninstall script:

With make , the argument shall be KERNEL=kernel-version

Bluetooth¶

For kernel 3.13 — 3.16 bluetooth may work without any extra efforts, but for higher kernels it may not work at all. A kernel patch for the bluetooth driver may be needed to get it up and working.

If wifi works after installing the driver but bluetooth doesn’t, you should first check if bluetooth is hard/soft blocked. If it is blocked then remove the block, but if that’s not the case then we have a patch for you that you can apply to your kernel.

Test blocking state:В¶

To check if bluetooth is hard/soft blocked, run rfkill list . It will show you something like this:

If it is soft blocked, you can unblock it with:

If it is hard blocked then check if your PC has some kind of switch to turn it on or may be a key combination or a little haggle in the BIOS settings (you will have to investigate).

If there is no block or unblocking from blocked state didn’t do any good, then you should try the patch.

Without running all those commands manually, you can use the bpatch script to automatically patch it for you.

Try the bpatch script¶

The bpatch script downloads the kernel source and tries to patch the bluetooth driver and insert the compiled module in the right place automatically. To apply patch with the bpatch script all you need to do is run it with root privilege.

If you want to undo this patch:

If you have already downloaded the kernel source, then give the source directory path as an argument to the bpatch script with -sd option:

Note: The bpatch script is for debian based systems and make sure to enable source code repository before running it. For Ubuntu this link may help you enabling the source repository.

Troubleshooting when upgrading kernel¶

Install script¶

If you installed the driver with the install script, you will have to reinstall the drivers when you upgrade your kernel.

If you don’t uninstall, you will face problems like this:

DKMS¶

If you install with dkms then you won’t need to uninstall/install for minor kernel updates. Major kernel updates may still need update/uninstall/install though.

Secure Boot¶

Not being signed, this driver is not expected to work on secure boot.

Source:В¶

Note: Even though the original source was taken from kuba-moo, it no longer resembles that of the original. If you want to apply a patch that works with other sources, be ware that the line number and content may or may not match i.e you will have to be careful applying patches.

Pull Requests¶

Please do all pull requests against the master branch. The release branch is for releases only.

Источник

Mediatek wifi driver linux

Mediatek launched a working driver for their wireless device MT7630E for Linux Mint/Ubuntu which was officially supported only for kernel 3.13 and 3.14. The modified driver I am going to use can be installed upto kernel 4.4.*

Читайте также:  Самые лучшие приложения для windows

Download the driver from here (It’s a modification of the original driver for easy installation)

Now follow the instructions below:

1. extract the archive in your Downloads directory (or any other directory).

2 . In terminal run:

/Downloads/MT7630E-release (change the path if you extracted in another folder)

3. now run these commands one by one:

sudo chmod +x install
sudo ./install

It will prompt for your password. Put your password and wait to finish the installaion.

After installation has been completed the wifi will appear in the networkmanager and bluetooth will be available for use. The driver will load at startup automatically, so you don’t need to load the driver every time you reboot.

Comments

Thank you ! (Asus S551L + LinuxMint Tara)

If wifi works after installing the driver but bluetooth doesn’t, you should check «Readme.md» in driver file directory (/Downloads/MT7630E-release).

There is a instruction how to run a script that turn bluetooth on.
It is good activate kernel repository in software source, script download and patch kernel for you.

Works for me on Asus X550V.

Sorry for my bad english, it is not my native lanquage.

It works fine for me thanks..
Kernel 4.6.0
Mint 18

@FLLM that’s odd. Try the dkms install. commands

@jefreesujit
something is wrong with your environment (not the driver) i.e it failed even before starting to compile the driver. Better post this at Ubuntu Forums

Wifi is not working for MT7630E in ubuntu 15.10. I followed the instructions, but it doesnt work.

i got this error.

make -C /lib/modules/`uname -r`/build M=/home/jefree/Documents/new wifi/MT7630E-release/rt2x00 modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.2.0-23-generic’
arch/x86/Makefile:138: CONFIG_X86_X32 enabled but no binutils support
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[1]: *** No rule to make target ‘wifi/MT7630E-release/rt2x00’. Stop.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.2.0-23-generic’
Makefile:8: recipe for target ‘all’ failed
make: *** [all] Error 2
cp -v firmware/*/* /lib/firmware/
‘firmware/BT/mt76x0.bin’ -> ‘/lib/firmware/mt76x0.bin’
‘firmware/Wi-FI/MT7650E234.bin’ -> ‘/lib/firmware/MT7650E234.bin’
cp rt2x00/mt7630e.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
cp: cannot stat ‘rt2x00/mt7630e.ko’: No such file or directory
Makefile:16: recipe for target ‘install’ failed
make: *** [install] Error 1
modprobe: ERROR: could not insert ‘mt7630e’: Invalid argument
modprobe: ERROR: could not insert ‘mt76xx’: Invalid argument

@crack25
wifi works on the new kernels with this driver, but the bluetooth problem still persists. We haven’t found any cause-and-solution for that yet.

Wifi is working with LM17.2 (kernel 4.2.0-18) ASUS TP500LN. Bluetooth does not work.

I just used this for Linux Mint 17.2 on a newly purchased ASUS X555LB-NS51 laptop and it worked for me. Thank you! Quick note: the ./install command also needed sudo.

The driver has been updated and the kernel support has been extended. This driver seems to be installable even in kernel 4.0

That’s upto mediatek, if they start supporting ubuntu 14.10 then you will be able to do what you want.

It will only work with kernel version 13 and 14. So it will not work on Ubuntu 14.10 which has kernel 3.16

@ freezx,
yeah, many laptops, specially asus laptops are facing that problem. It’s because of the main driver is not that resource efficient. You have to wait until mediatek releases an efficient version of the driver.
Bug report for this problem and related discussions

Источник

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