Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Driver/firmware for Realtek RTL8814U WiFi USB Adapter?

2,075 views
Skip to first unread message

Larry Dighera

unread,
Jul 5, 2017, 2:50:06 PM7/5/17
to
Which Debian Stretch package provides firmware for the Realtek
RTL8814U chip? In particular, the Comfast CF-917AC 1750Mbps USB3
adapter: https://www.amazon.com/dp/B01B75MHR0 .

Kali Linux supports the RTL8814 natively:
https://www.kali.org/news/kali-linux-20171-release/ . Further, there
are some clues here: https://bugs.kali.org/view.php?id=3260
https://github.com/diederikdehaas/rtl8812AU
https://github.com/astsam/rtl8812au
https://github.com/lwfinger/rtlwifi_new

But, I'm looking for an "official" Debian firmware package.

I wasn't able to find the rt8814 mentioned here:
https://www.debian.org/distrib/packages nor here:
http://linux-wless.passys.nl/query_chipset.php?chipset=Realtek
nor here: https://wireless.wiki.kernel.org/en/users/drivers

Ulf Volmer

unread,
Jul 5, 2017, 3:00:06 PM7/5/17
to
On 05.07.2017 20:41, Larry Dighera wrote:

> Which Debian Stretch package provides firmware for the Realtek
> RTL8814U chip? In particular, the Comfast CF-917AC 1750Mbps USB3
> adapter: https://www.amazon.com/dp/B01B75MHR0 .

Have you firmware-realtek installed? It is available in the non-free repos.

best regards
Ulf

Brian

unread,
Jul 5, 2017, 3:20:05 PM7/5/17
to
It might be, but RTL8814U is not listed. Typo? RTL8814AU? That is not
listed either.

Michael Lange

unread,
Jul 5, 2017, 5:30:07 PM7/5/17
to
Well, the kali linux page the OP mentioned says:
"These drivers are not part of the standard Linux kernel"
The kali realtek-rtl88xxau-dkms package probably just
downloads the driver from github and installs it for the running kernel.
Since the github projects do not refer to firmware files I assume there
are no special firmware files needed.

Regards

Michael

.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.

Blast medicine anyway! We've learned to tie into every organ in the
human body but one. The brain! The brain is what life is all about.
-- McCoy, "The Menagerie", stardate 3012.4

Jason Wittlin-Cohen

unread,
Jul 5, 2017, 7:00:05 PM7/5/17
to
I have the Edimax EW-7822UAC (2x2 802.11ac) which uses the rtl8812AU chipset.  I can confirm that the firmware-realtek package does not contain support for the rtl8812AU chipset, and presumably also does not support the RTL8814U chipset.  Neither are listed on https://wiki.debian.org/rtl819x.  In contrast, Ubuntu and its derivatives, such as Mint, do package this driver.  For example, see https://packages.ubuntu.com/xenial/kernel/rtl8812au-dkms.

Fortunately, I was able to compile and install the rtl8812AU driver from https://github.com/diederikdehaas/rtl8812AU without difficulty.  I have been using this wireless card on a desktop system with Stretch.  It has been reliable and I had no problem configuring it with networks running WPA2-PSK and WPA2-Enterprise (EAP-TLS).  I'm getting speeds around 300 Mbit/sec @ 65-70 dbm when connected to a Ubiquiti AC-LR.  In contrast, Mint installed the driver for me without issue but had constant issues with EAP-TLS due to bugs in network-manager.

Larry Dighera

unread,
Jul 6, 2017, 11:50:06 AM7/6/17
to

>On Wed, Jul 5, 2017 at 2:41 PM, Larry Dighera <LDig...@att.net> wrote:
>
>> Which Debian Stretch package provides firmware for the Realtek
>> RTL8814U chip? In particular, the Comfast CF-917AC 1750Mbps USB3
>> adapter: https://www.amazon.com/dp/B01B75MHR0 .
>>
>> Kali Linux supports the RTL8814 natively:
>> https://www.kali.org/news/kali-linux-20171-release/ . Further, there
>> are some clues here: https://bugs.kali.org/view.php?id=3260
>> https://github.com/diederikdehaas/rtl8812AU
>> https://github.com/astsam/rtl8812au
>> https://github.com/lwfinger/rtlwifi_new
>>
>> But, I'm looking for an "official" Debian firmware package.
>>
>> I wasn't able to find the rt8814 mentioned here:
>> https://www.debian.org/distrib/packages nor here:
>> http://linux-wless.passys.nl/query_chipset.php?chipset=Realtek
>> nor here: https://wireless.wiki.kernel.org/en/users/drivers
>>
On Wed, 5 Jul 2017 18:57:44 -0400, Jason Wittlin-Cohen
<jwittl...@gmail.com> wrote:

>I have the Edimax EW-7822UAC (2x2 802.11ac) which uses the rtl8812AU
>chipset. I can confirm that the firmware-realtek package does not contain
>support for the rtl8812AU chipset, and presumably also does not
>support the RTL8814U
>chipset. Neither are listed on https://wiki.debian.org/rtl819x. In
>contrast, Ubuntu and its derivatives, such as Mint, do package this
>driver. For example, see
>https://packages.ubuntu.com/xenial/kernel/rtl8812au-dkms.
>
>Fortunately, I was able to compile and install the rtl8812AU driver from
>https://github.com/diederikdehaas/rtl8812AU without difficulty. I have
>been using this wireless card on a desktop system with Stretch. It has
>been reliable and I had no problem configuring it with networks running
>WPA2-PSK and WPA2-Enterprise (EAP-TLS). I'm getting speeds around 300
>Mbit/sec @ 65-70 dbm when connected to a Ubiquiti AC-LR. In contrast, Mint
>installed the driver for me without issue but had constant issues with
>EAP-TLS due to bugs in network-manager.
>

Hello Jason,

Thank you for the information you have provided.

Is there a chance the rtl8814AU driver might be available as a backport?

I was hoping that I wouldn't have to compile the driver, but your experience
has left little doubt that it will be necessary. Although I have
successfully built several Software Defined Radio applications, I've never
been successful in building drivers. Will ModuleAssistant
<https://wiki.debian.org/ModuleAssistant> assist in building the driver? Or
is there another "assistant" package that may be of help?

Best regards,
Larry

Jason Cohen

unread,
Jul 6, 2017, 8:20:05 PM7/6/17
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Larry,

The drivers you need are not available as a backport because no Debian
release packages said drivers.  You'll need to compile them
yourself.  However, the process should be fairly easy.

I think you want the drivers from here: https://github.com/astsam/rtl88
12au

1) This is the easy way but will only work for your existing kernel,
and presumably any future ABI compatible kernel

#Install dependencies
sudo apt-get install linux-headers-$(uname -r) build-essential git

#Clone the git repository
git clone https://github.com/astsam/rtl8812au.git
cd rtl8812au

#Compile driver for your hardware
make RTL8814=1

#Install Module
make install

#Load Module (I compiled this myself and the created module appears to
be 8812au, not rtl8814. If this doesn't work, just reboot with the
device connected, and it will load the correct module.)
modprobe 8812au

I don't have your hardware so I can only test the compilation, which
worked on my Debian Stretch system. This appears to be the driver that
is used by Kali Linux, so it should work for you.

2) This method is a bit more involved but will use DKMS to ensure that
the drivers are recompiled when your kernel is updated.

#Install dependencies
sudo apt-get install linux-headers-$(uname -r) build-essential dkms git

#Set environmental variables for DKMS
DRV_NAME=rtl8814
DRV_VERSION=4.3.21

#Make directory for driver
mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}

#Clone the git repository
git clone https://github.com/astsam/rtl8812au.git
/usr/src/${DRV_NAME}-${DRV_VERSION}

#Use DKMS to build and install the driver
dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
dkms install -m ${DRV_NAME} -v ${DRV_VERSION}

Note: I don't know if these DKMS steps will work for you since it may
compile the driver for 8812au and not 8814. YMMV.

Sources:

Driver Source: https://github.com/astsam/rtl8812au
DKMS Instructions for rtl8812au: https://edimax.freshdesk.com/support/s
olutions/articles/14000041287-how-to-install-ew-78xx-11ac-adapter-in-
linux-with-kernel-higher-than-v4-1
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEq7ncLkwZsndhZmLWsskfuEl+i10FAlle0qkACgkQsskfuEl+
i11RcQ//WAbNE8IjLbBMqJLCRlwD2jOLB52MKIBrQRWvUXZyRvuvHJgK1XTRaDBf
qTY5KR69Ct9NG7TKmvVGuBqb8CZAOAH5ukuz323ophxVefZS9FpSSi6SUDNhrlrg
cW1jas87IjVihiXnNaiU0Lza14fUSR6+dP0MjixgSC9tbX2o/mIZasReb0pjII2Y
Zw6O+whVbjm+7DjD2PRaslSon+xvVtpI90dhDVqghqQZr3d6tJIE9aFsgGj/MvF+
WV9fVXgWKyGDaUmqMPyxMj++kWahei4Bj4UM77XOMYpWHYQuVkGgv3hdIUFy7s5z
uKeZmtwOkQHYiOdhBk6TE2DJJ+TMuJ6P4La/SVLKKdff/0lqLgifjPl2W/fSxHxN
xc4T9byFkLiRiARv075JI/hGBqZRV7oani1aWXl7SawkMhx5PlDRlSedOYg2WXTB
IMMqZmXV4saOGVgKpYxWOWI2H89t0W6dis2qBFWVp6jaTryOh3zLCs0MLAGxc3GZ
28msgv4u+cLHCIlDT/MNRIkvwF2BWAVd4aTEjmAf2KrmjoPSKvtNCU1fk0y8y5L3
i10qgT1Dhid9K7xXcVtxBBb/1atiOvG+AXxcKmsGGD7qBuDFprl8zcDq63xB2fX9
uXI3WdAJ9jQf91qTsHo2ImInAVE1oT3XVDqIgJVZpMwxZuBCaWU=
=CGy1
-----END PGP SIGNATURE-----

Jason Cohen

unread,
Jul 7, 2017, 8:50:05 PM7/7/17
to
Hi Larry,

Sorry for sending you down a rabbit hole. The reason the DKMS steps
didn't work is that the git repository for the rtl8814au lacks the
configuration file(s) for DKMS. Specifically, if you check your logs,
you'll see that if failed to locate DKMS.conf. I thought it would work
because the rtl8814au driver appears to be based off the driver here:
https://github.com/gnab/rtl8812au. That driver does have the
configuration files to support DKMS (Makefile.dkms and dkms.conf). I
don't know enough about DKMS to modify the configuration files in the
above repository to make it work with the rtl8814au git repository.

Fortunately, you can still compile the package for your existing
kernel. The only downside of this step is that you will need to
re-compile the drivers if you install a new kernel which is not ABI
compatible. For example, the current Stretch kernel for AMD64 is
linux-image-4.9.0-3-amd64 (4.9.30-2+deb9u2). Thus, it should work with
any future kernel starting with linux-image-4.9.0-3, but if you see
4.9.0-4, you would likely have to recompile. I haven't actually tested
this, but it's what I've read.

In any case, since you've already installed the build dependencies, you
just need to do the following:

#Clone the git repository (again) - Might as well work from a fresh
directory
git clone https://github.com/astsam/rtl8812au.git
cd rtl8812au

#Compile driver for your hardware
make RTL8814=1

#Install Module
make install

#With Wifi adapter connected, load Module (If this fails, reboot and it
should load the correct module.)
modprobe 8812au

Regards,

Jason




signature.asc

Larry Dighera

unread,
Jul 9, 2017, 7:00:05 PM7/9/17
to
Hello Jason,

After spending way too much time attempting to install the Realtek
RTL8814 driver module with DKMS, I took your advice and successfully
built and loaded it with the commands you kindly provided above.

My AMD_X86 system has an Intel 3168NGWG WiFi and BlueTooth PCIe card
installed, so I have been using it. After loading the 8812au module,
WiFi will no longer connect while in CommandLine mode, but when
running in X11 mode, WiFi still works fine with the Intel adapter. I
haven't tried removing the Intel iwiwfi module, as lsmod reported
three items associated with it, and I'm unfamiliar with that sort of
configuration. I suspect removing the Intel iwiwfi module and loading
the 8812au module may overcome that issue.

The new device naming conventions are driving me mad. I can no longer
'ls -l /dev/w*' to list the wireless devices, and don't know where to
find them anymore, although 'find' does help. Unfortunately 'find'
didn't find a second (consecutively numbered) WiFi device, nor did
'ip' nor 'iwconfig'. Of course the new 8812au USB adapter is still
listed in the 'lsusb' output as before loading the new module.

So currently, while I now have the 8812au driver module active, I'm
still unable to use the new Comfast CF-917AC WiFi USB adapter
hardware, and without a device name for it, I'm at a loss to diagnose
the issue further.

Thank you for submitting the Feature Request to have the driver
included in the Debian package repository, and all your very detailed
and assistance.

I'll attach a notes text file (kali_driver.txt) of related information
in the hope you may find it of interest.

Best regards,
Larry
kali_driver.txt
0 new messages