Установка драйвера wifi raspberry pi

How do I install the drivers for a WiFi dongle with the RealTek 8812AU chipset on Raspbian? [duplicate]

I have recently purchased an Edimax EW7811UTC AC WiFi adapter for use with my Raspberry Pi 3b running Raspbian Jessie with Pixel desktop. This WiFi dongle uses the rtl8812au chipset and the driver for this chipset is not included in Raspbian releases. (It is included in distributions like OpenELEC) Google is absolutely filled with people trying, troubleshooting and failing to get the driver downloaded or installed for chipsets like rtl8812au. Where do I get the driver for this chipset and how do I install this driver after I’ve acquired it?

This question is not a duplicate, as the linked question encounters an error while installing a driver and is about an error in make during installation of the driver both OP and I are talking about.

This is one of the many questions about building the driver from https://github.com/gnab/rtl8812au . In a couple of years the driver (or the Raspbian build environment) will change again, the answers here will stop working and there will be a time for yet another question about it.

@DmitryGrigoryev I disagree. Not only are Realtek drivers there to stay, the other questions you link are about the Unix-specific build process, regardless of what driver is being installed. Indeed; in a couple of years, everything will change and most answers will stop working at one point or another, I cannot take you seriously in that aspect of your argument.

Читайте также:  Wi fi таттелеком через телефон

2 Answers 2

«In normal circumstances there is NEVER a need to run rpi-update as it always gets you to the leading edge firmware and kernel and because that may be a testing version it could leave your RPi unbootable». https://www.raspberrypi.org/forums/viewtopic.php?p=916911#p916911 Even the rpi-update documentation now warns «Even on Raspbian you should only use this with a good reason. This gets you the latest bleeding edge kernel/firmware.»

The best and easiest way to handle this problem is as following

  1. sudo wget http://downloads.fars-robotics.net/wifi-drivers/install-wifi -O /usr/bin/install-wifi — Downloads the installation file
  2. sudo chmod +x /usr/bin/install-wifi — makes it executable
  3. Installation process
    • sudo install-wifi -c rpi-update — check for driver if rpi-update is run.
    • sudo rpi-update — if a driver is available you can run rpi-update to update firmware.
    • sudo install-wifi -u rpi-update — then update the driver for the new kernel installed by rpi-update.
    • sudo reboot — now reboot to update the kernel with the new wifi driver.

Please stop posting identical (first, second, this one is third) answers to multiple questions. Instead please answer once and mark the other questions as duplicates.

After hours of reading threads and following guides here and there, the definitive guide that got the driver working was here. Following the steps listed in that post:

$ # install necessary software $ sudo apt-get update $ sudo apt-get install bc git $ # download raspbian kernel sources, takes some minutes $ sudo wget "https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source" -O /usr/bin/rpi-source $ sudo chmod 755 /usr/bin/rpi-source $ rpi-source $ # download the rtl8812au kernel driver and compile it, takes some minutes $ git clone "https://github.com/gnab/rtl8812au" $ cd rtl8812au $ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile $ sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile $ make $ # copy the driver and use it $ sudo cp 8812au.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless $ sudo depmod -a $ sudo modprobe 8812au $ # check wlan0 interface appeared $ ifconfig $ iwconfig 

The last comment says #check wlan0 interface appeared but if you still have the RPi on-board WiFi activated, the dongle will appear as wlan1 . I recommend that you disable the on-board WiFi chip in order to save power and avoid causing interference if you’ll be using a 2.4Ghz band.

Читайте также:  Ростелеком wifi пароли доступа

These steps worked out flawlessly and soon after and I was connected to an ASUS AC1900 (802.11ac dual-band 5Ghz) router. As of the latest edit to this post I have been using the dongle for about 2 days for about 10 hours a day without problems.

Side note: There are many posts by MrEngman on the Raspberry Pi forums answering questions related to the Realtek WiFi chipset drivers and you’ll encounter many 404’d Dropbox links to drivers and install-wifi shell scripts attributed to MrEngman. I didn’t follow any of them as the information was too fragmented and he does not seem active anymore. When following any of his tips or hints, be sure to go to his site first and follow the information there; don’t go forum diving in old threads. Especially when there’s different drivers, kernels and versions at play.

Источник

После приобретения Raspberry Pi естественно каждый задумывается о покупке usb Wi-Fi модема и заглянув в RPi VerifiedPeripherals обнаруживает совместимые и работающие «out-of-the-box» адаптеры. Собственно, увидев в списке D-Link DWA-125, купил его, не посмотрев на ревизию. Оказалась rev. D1. В списке dmesg устройство определилось, установка ralink-firmware не помогла, нужный драйвер продолжал отсутствовать. Все попытки заставить работать провалились, ifconfig не определял wlan0. Сняв корпус, увидел чип Ralink RTL8188EVT. На GitHub лежат исходники драйвера rtl8188eu. «Познакомившись» с компиляцией и столкнувшись со множеством ошибок, нашел топик на raspberrypi.org, где описана проблема с другим устройством на этом же чипе — TP-Link TL-WN725N V2. Остается сказать спасибо MrEngman за созданный пост с обновлениями драйвера rtl8188eu под Raspbian.

Читайте также:  Ultra hd через wifi

И так начнем установку.
Определяем версию ядра и сборку:

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.10.24+ #614 PREEMPT Thu Dec 19 20:38:42 GMT 2013 armv6l GNU/Linux
pi@raspberrypi ~ $
3.6.11+ #371 до #520 включительно — 8188eu-20130209.tar.gz
3.6.11+ #524, #528, #532 — 8188eu-20130815.tar.gz
3.6.11+ #538, #541, #545, #551, #557 — 8188eu-20130830.tar.gz
3.10.18+ #577 — 8188eu-20131105.tar.gz
3.10.18+ #579, #585 — 8188eu-20131106.tar.gz
3.10.18+ #587 — 8188eu-20131110.tar.gz
3.10.18+ #590, #592 — 8188eu-20131111.tar.gz
3.10.18+ #594, #596 — 8188eu-20131113.tar.gz
3.10.19+ #600 — 8188eu-20131113.tar.gz
3.10.21+ #602, #604 — 8188eu-20131113.tar.gz
3.10.22+ #606 — 8188eu-20131206.tar.gz
3.10.23+ #608 — 8188eu-20131209.tar.gz
3.10.24+ #610 — 8188eu-20131209.tar.gz
3.10.24+ #614 — 8188eu-20131219.tar.gz
3.10.25+ #616, #618, #622, #624 — 8188eu-20131223.tar.gz
3.10.26+ #628 — 8188eu-20140110.tar.gz
3.10.27+ #630 — 8188eu-20140117.tar.gz
3.10.28+ #632, #634 — 8188eu-20140128.tar.gz
3.10.29+ #636, #638 — 8188eu-20140209.tar.gz
3.10.30+ #640 — 8188eu-20140214.tar.gz
wget dl.dropboxusercontent.com/u/80256631/8188eu-201xyyzz.tar.gz
tar -zxvf 8188eu-201xyyzz.tar.gz

Источник

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