rtl8812au driver install..
#7
Hi everyone, 
This is my first posting here:

I just wanted to share what I did to make RTL8812AU working in dual-band mode on Rock64 running Xenial Mate Community Build Image.

The following information is based on the personal blog I found on the net:
https://ameblo.jp/gabriel1225/entry-12337005303.html

The page is in Japanese only, so I summarise the relevant parts here.

1) Obtain the source code:

>$ git clone https://github.com/gnab/rtl8812au.git

[This will create a directory called rtl8812au in your home directory.]

2) Move to this newly created rtl8812au directory:

>$ cd rtl8812au

3) Using your text editor, edit some entries in file called Makefile so that it can run without error on Rock64.

[Disable energy saving around line 40]

CONFIG_POWER_SAVING = y
     ↓
CONFIG_POWER_SAVING = n 


[Change platform setting around line 53]

CONFIG_PLATFORM_I386_PC = y
     ↓
CONFIG_PLATFORM_I386_PC = n


[Add the following platform setting immediately under the above line]

CONFIG_PLATFORM_ARM_PC = y


[Add the following command around line 662]

ifeq ($(CONFIG_PLATFORM_ARM_PC), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
SUBARCH := arm64
ARCH ?= arm64
CROSS_COMPILE ?=
KVER ?= $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build/
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
endif


[Remove "modules" part from the following command around line 1065]

$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd)  modules
                  ↓
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd)
 

4) Compile:

>$ make

5) Register the newly created driver:

>$ sudo insmod 8812au.ko


In order to automate this driver compiling process after each version update, use DKSM function.

1) Unload the driver:

>$ sudo rmmod 8812au


2) Install dkms:

>$ sudo apt-get install dkms -y

8) Since dkms is managed in /usr/src directory, copy dkms into there.

>$ sudo cp dkms /usr/src

9)  Type:

>$ make clean

>$ sudo cp -R . /usr/src/8812au-4.2.2

10) Register module:

[First, move to the working directory]

>$ cd ../../usr/src

[Type]

>$ sudo dkms add -m 8812au -v 4.2.2

11) Build:

>$ sudo dkms build -m 8812au -v 4.2.2

12) Install:

>$ sudo dkms install -m 8812au -v 4.2.2

Now your driver will be self-build in the next kernel update, so you do not have to repeat this cumbersome operation again. Big Grin
  Reply


Messages In This Thread
rtl8812au driver install.. - by 11b2p508 - 02-24-2018, 09:43 PM
RE: rtl8812au driver install.. - by evilbunny - 02-24-2018, 10:06 PM
RE: rtl8812au driver install.. - by 11b2p508 - 02-25-2018, 08:07 AM
RE: rtl8812au driver install.. - by 11b2p508 - 02-26-2018, 05:31 AM
RE: rtl8812au driver install.. - by elik745i - 02-26-2018, 07:19 AM
RE: rtl8812au driver install.. - by 11b2p508 - 02-27-2018, 06:13 AM
RE: rtl8812au driver install.. - by HackerKitty - 03-03-2018, 09:04 AM
RE: rtl8812au driver install.. - by evilbunny - 03-03-2018, 03:45 PM
RE: rtl8812au driver install.. - by brajul - 05-19-2018, 05:14 PM
RE: rtl8812au driver install.. - by evilbunny - 05-20-2018, 12:23 AM
RE: rtl8812au driver install.. - by brajul - 05-20-2018, 01:36 AM
RE: rtl8812au driver install.. - by brajul - 05-20-2018, 12:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 Debian 11 (Bullseye) install problem jbize 15 11,180 10-12-2023, 05:14 PM
Last Post: tpaul
  Managed to install Kubernetes digitaldaz 3 4,966 08-16-2022, 02:44 AM
Last Post: mmarkgilbert
  on-board ethernet driver michaelanburaj 0 2,074 03-26-2020, 12:01 PM
Last Post: michaelanburaj
  How Can Install Unify controller in rock64? gedas07 0 2,058 03-23-2020, 08:41 AM
Last Post: gedas07
  Can Anyone help me install Wine latest on Rock64 Rock90 1 3,392 08-10-2019, 06:18 AM
Last Post: OnyxxOr
  8812au wifi driver OS pane 9 12,666 11-19-2018, 02:46 AM
Last Post: pane
  apt --fix-broken install KC7NOA 1 3,018 10-29-2018, 09:17 PM
Last Post: KC7NOA
  HELP I want install a desktop but I don't Know how can I do gedas07 11 14,536 10-02-2018, 01:34 PM
Last Post: jovval
  OMV wifi setup (driver issue) six9 0 2,534 07-25-2018, 03:34 PM
Last Post: six9
  How can I get a driver to support my USB wifi dongle Rocklobster 4 6,669 04-19-2018, 12:55 PM
Last Post: Rocklobster

Forum Jump:


Users browsing this thread: 3 Guest(s)