Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Add dkms support? #8

Open
Jibun-no-Kage opened this issue Nov 21, 2022 · 4 comments
Open

Idea: Add dkms support? #8

Jibun-no-Kage opened this issue Nov 21, 2022 · 4 comments

Comments

@Jibun-no-Kage
Copy link

Jibun-no-Kage commented Nov 21, 2022

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
Copy link
Owner

OK, i will add dkms support.

@Jibun-no-Kage
Copy link
Author

That is really cool. Thanks for doing it.

@ivanovborislav
Copy link
Owner

Thank you for your wonderful idea!

@Jibun-no-Kage
Copy link
Author

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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants