maccuaa / asus-ac53-rtl8822bu

Asus AC53 Nano - RTL8822BU
36 stars 6 forks source link

how to add it in dkms? #3

Closed tester1969 closed 4 years ago

tester1969 commented 4 years ago

this

maccuaa commented 4 years ago

https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support

maccuaa commented 4 years ago

@tester1969 I tried adding DKMS support a couple weeks ago but couldn't figure it out. If you managed to get it working then post the instructions here or open a PR and i'll get it added to this repo.

tester1969 commented 4 years ago

Did half the road. Somehow it doesn't rebuild auto when a new kernel is installed. I changed some things and i will wait next kernel update to check

tester1969 commented 4 years ago

Hello, create the dkms.conf with the following data:

dkms.conf

PACKAGE_NAME="rtl88x2bu"
PACKAGE_VERSION="5.3.1"
BUILT_MODULE_NAME="88x2bu"
DEST_MODULE_LOCATION="/kernel/drivers/net/wireless/"
REMAKE_INITRD="yes"
AUTOINSTALL="yes"
MAKE="'make' all KVER=${kernelver}"
CLEAN="make clean"

and put the file in your root directory (the same directory that has the Makefile). Then issue:

$ dkms add -m 88x2bu -v 5.3.1

This should copy also the source files to /var/lib/dkms/rtl88x2bu/5.3.1/source. If not copy them yourself.

$ dkms build -m 88x2bu -v 5.3.1
$ dkms install -m 88x2bu -v 5.3.1

After that point with any upgrade this should compile the new module and put it in initrd. I have only a fedora, so I can't test on other flavors Cheers

maccuaa commented 4 years ago

Awesome, thanks @tester1969! I'll give that a shot sometime this week.

tester1969 commented 4 years ago

Just a small note. You must be root to run the commands, or sudo them