SOLVED: D-Link DWA-172 & Debian

Getting your soundcard to work, using Debian on non-i386 hardware, etc

SOLVED: D-Link DWA-172 & Debian

Postby phantomlord » 2015-03-27 20:07

I am trying to make this USB wireless adapter to work with my Debian Sid. It has a RTL8811au chip. My kernel is 3.16.0-4-686-pae.
So, I searched the internet and found how to install the necessary driver:

apt-get install git
git clone https://github.com/abperiasamy/rtl8812A ... _linux.git
cd rtl8812AU_8821AU_linux
make
make install


All went fine, no errors. Than I insert the module:

modprobe -v 8812au
insmod /lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless/8812au.ko

lsmod |grep 8812
8812au 852252 0
cfg80211 350041 1 8812au
usbcore 170994 9 ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,gspca_main,usbhid,8812au,gspca_zc3xx,xhci_hcd



All looks fine, but:

iwconfig
lo no wireless extensions.
eth0 no wireless extensions.

ifup wlan0
Ignoring unknown interface wlan0=wlan0.


There is no wlan0 interface and I need help to make it work. Any ideas, please?
Last edited by phantomlord on 2015-04-28 18:39, edited 1 time in total.
User avatar
phantomlord
 
Posts: 26
Joined: 2006-10-29 17:38

Re: D-Link DWA-172 & Debian

Postby stevepusser » 2015-03-28 17:50

Maybe the driver source from here would work?

https://github.com/Braklet/rtl8811AU_rtl8821A-linux
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.2, Pale Moon 27.9.3, wine-staging 3.10, QuiteRSS 0.18.11, Linux kernel 4.17, Krita 4.0.4
User avatar
stevepusser
 
Posts: 9648
Joined: 2009-10-06 05:53

Re: D-Link DWA-172 & Debian

Postby phantomlord » 2015-03-30 18:41

Oh, pfff... I tried this one before, it is the worst case! I advice anybody to not use this driver. It causes hanging and freezing of Linux when inserting the module, even on booting. I had to use a life distro in order to delete the module from /lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless/ and make my Debian boot.
User avatar
phantomlord
 
Posts: 26
Joined: 2006-10-29 17:38

Re: D-Link DWA-172 & Debian

Postby phantomlord » 2015-03-30 19:06

Now I tried another one: https://github.com/abperiasamy/rtl8812A ... _linux.git
The situation with it is the same as in my first post. By the way:

Code: Select all
lshw
.........
*-usb UNCLAIMED
                   description: Generic USB device
                   product: 11ac adapter
                   vendor: D-Link Corporation
                   physical id: 5
                   bus info: usb@3:5
                   version: 2.00
                   serial: 00e04c000001
                   capabilities: usb-2.10
                   configuration: maxpower=500mA speed=480Mbit/s
......

lsusb
.....
Bus 003 Device 004: ID 2001:3318 D-Link Corp.
....

# lsmod |grep 8812
8812au                852252  0
cfg80211              350041  1 8812au
usbcore               170994  9 ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,gspca_main,usbhid,8812au,gspca_zc3xx,xhci_hcd

root@debian:/lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless# rmmod 8812au
root@debian:/lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless# modprobe -v 8812au
insmod /lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless/8812au.ko
root@debian:/lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless# dmesg
[ 1735.507874] usbcore: deregistering interface driver rtl8812au
[ 1740.263050] usbcore: registered new interface driver rtl8812au
root@debian:/lib/modules/3.16.0-4-686-pae/kernel/drivers/net/wireless#iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

User avatar
phantomlord
 
Posts: 26
Joined: 2006-10-29 17:38

Re: D-Link DWA-172 & Debian

Postby mpoly » 2015-04-18 19:48

Hi,

I have a good news for you. I own a D-Link DWA-172 too and I found the way to make it works.
I use https://github.com/abperiasamy/rtl8812AU_8821AU_linux (rtl8812AU_8821AU_linux-master.zip)
Then you'll need to edit the file os_dep/linux/usb_intf.c to add :

{USB_DEVICE(0x2001, 0x3318),.driver_info = RTL8821}, /* D-Link DWA-172 */

in the #ifdef CONFIG_RTL8821A section. Then compile, install and enjoy :)
mpoly
 
Posts: 1
Joined: 2015-04-18 19:36

Re: D-Link DWA-172 & Debian

Postby phantomlord » 2015-04-27 21:47

Thanks, I will try this soon and will reply
User avatar
phantomlord
 
Posts: 26
Joined: 2006-10-29 17:38

Re: D-Link DWA-172 & Debian

Postby phantomlord » 2015-04-28 18:12

Nice, it worked! Thank you mpoly!

*-usb
description: Wireless interface
product: 11ac adapter
vendor: D-Link Corporation
physical id: 1
bus info: usb@4:1
logical name: wlan1
version: 2.00
serial: 00e04c000001
capabilities: usb-2.10 ethernet physical wireless
configuration: broadcast=yes driver=rtl8812au driverversion=3.16.0-4-686-pae firmware=N/A ip=192.168.0.101 link=yes maxpower=500mA multicast=yes speed=480Mbit/s wireless=IEEE 802.11AC
User avatar
phantomlord
 
Posts: 26
Joined: 2006-10-29 17:38

Re: SOLVED: D-Link DWA-172 & Debian

Postby phantomlord » 2015-05-15 19:47

For 4.* kernels one must use this driver:
https://github.com/csssuf/rtl8812au

Yet adding
{USB_DEVICE(0x2001, 0x3318),.driver_info = RTL8821}, /* D-Link DWA-172 */


in the #ifdef CONFIG_RTL8821A section of os_dep/linux/usb_intf.c is required
User avatar
phantomlord
 
Posts: 26
Joined: 2006-10-29 17:38

Re: SOLVED: D-Link DWA-172 & Debian

Postby katun79 » 2015-08-15 11:23

Thanks for this useful solution!
I post a git pull request to include your change into the repository https://github.com/csssuf/rtl8812au.

Thanks. :D
katun79
 
Posts: 1
Joined: 2015-08-15 11:18

Re: SOLVED: D-Link DWA-172 & Debian

Postby wimy » 2018-04-24 08:02

please, help me. when I type make in terminal, I recever iformation, the path not direct or not found. can you explant from command make, ... to install. thank you very much
wimy
 
Posts: 6
Joined: 2018-04-24 07:57

Re: SOLVED: D-Link DWA-172 & Debian

Postby stevepusser » 2018-04-24 18:19

You need to set up a kernel module build environment first, which requires extra packages to be installed. Do you have a net connection? It is a big pain without one.

If you do have a wired connection, install module-assistant and run as root or with sudo:
Code: Select all
m-a prepare


to set up the build environment.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.2, Pale Moon 27.9.3, wine-staging 3.10, QuiteRSS 0.18.11, Linux kernel 4.17, Krita 4.0.4
User avatar
stevepusser
 
Posts: 9648
Joined: 2009-10-06 05:53

Re: SOLVED: D-Link DWA-172 & Debian

Postby wimy » 2018-04-25 04:45

thanks but I don't know how to install pakage which then modify. as I can't install module. Can you show me from comman make and make install. thanks you very much
wimy
 
Posts: 6
Joined: 2018-04-24 07:57

Re: SOLVED: D-Link DWA-172 & Debian

Postby wimy » 2018-04-25 05:00

wimy
 
Posts: 6
Joined: 2018-04-24 07:57

Re: SOLVED: D-Link DWA-172 & Debian

Postby stevepusser » 2018-04-25 16:45

We can't help you if you won't provide vital information.

For the second time, do you have any sort of Net connection in your Debian or not?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.2, Pale Moon 27.9.3, wine-staging 3.10, QuiteRSS 0.18.11, Linux kernel 4.17, Krita 4.0.4
User avatar
stevepusser
 
Posts: 9648
Joined: 2009-10-06 05:53

Re: SOLVED: D-Link DWA-172 & Debian

Postby wimy » 2018-04-26 15:38

Thanks, maybe I will try my best again.
wimy
 
Posts: 6
Joined: 2018-04-24 07:57

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable