ivanovborislav / rtl8188eu

Realtek RTL8188EU v5.13.3 (2021-06-15) Wireless Lan Driver for Linux
GNU General Public License v2.0
113 stars 29 forks source link

Idea: Add dkms support? #8

Open Jibun-no-Kage opened 1 year ago

Jibun-no-Kage commented 1 year ago

Just for your consideration (this example assumes x86/x86_64):

# cd /root # git clone https://github.com/ivanovborislav/rtl8188eu.git # cd rtl8188eu

# nano dkms.conf PACKAGE_NAME="rtl8188eu" PACKAGE_VERSION="5.13.3" MAKE[0]="'make' -j$(nproc) KVER=${kernelver} KSRC=/lib/modules/${kernelver}/build" CLEAN="'make' clean" BUILT_MODULE_NAME[0]="8188eu" DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless" AUTOINSTALL="yes"

# mkdir -p /usr/src/rtl8188eu-5.13.3/ # cp -ar /root/rtl8188eu/* /usr/src/rtl8188eu-5.13.3/ # dkms add -m rtl8188eu -v 5.13.3 # dkms build -m rtl8188eu -v 5.13.3 # dkms install -m rtl8188eu -v 5.13.3 # dkms status

# dkms status rtl8188eu, 5.13.3, 5.10.0-19-686-pae, i686: installed

# dkms status rtl8188eu, 5.13.3, 5.10.0-19-amd64, x86_64: installed

Of course for Pi would need to change Makefile. But the same basic steps should work. By the way, I have seen a couple of Makefiles that figure out the architecture, so you don't have to do the Pi specific tweaks of the Makefile.

Would not be to hard to create a install-driver and remove-driver scripts. If your are open to a PR?

ivanovborislav commented 1 year ago

OK, i will add dkms support.

Jibun-no-Kage commented 1 year ago

That is really cool. Thanks for doing it.

ivanovborislav commented 1 year ago

Thank you for your wonderful idea!

Jibun-no-Kage commented 1 year ago

Sure, I just noticed that a few other drivers I use for WiFi USB adapters/dongles on Github, implemented DKMS, and wondered why you project did not, so figured I ask. :)