HOWTO: build install a DKMS module?

Read:



https://wiki.archlinux.org/title/Dynamic_Kernel_Module_Support
https://help.ubuntu.com/community/DKMS

I Want to use a TP-LINK TL-WN722N Usb Wifi adapter. How can I install it?
Followed the steps here: https://abhijeet2096.dev/TL-WN722N-V2/
But got error 2 In the step 4
Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
‘make’ all…(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.0-14-amd64 (x86_64)
Consult /var/lib/dkms/8188eu/1.2/build/make.log for more information.

Edit:
Info about the TP-LINK TLWN722N V2

The driver for linux. Published Date: 2016-12-12
Operating System: Linux Kernel 2.6.18~3.19.3

seems like that’s your answer

In accordance to this relatively old link: https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.15-Staging you should follow this guide: https://www.foxplex.com/sites/stabile-verbindung-mit-realtek-rtl8188eu-unter-linux/.

But please take a look at: https://github.com/lwfinger/rtl8188eu/issues/259. For example:

git clone https://github.com/lwfinger/rtl8188eu.git
cd rtl8188eu

Etc., perhaps helps, I just guess that you’ve used the wrong guide. This link should be useful as well, adjust as necessary: https://support.dlink.com/resource/products/dwa-140/REVB/. It is your turn now.

Thanks. I don get what means error 2 on make.log file
Would you ?

Thanks Quarnero. You’re right. The old post I followed is for kernel 4.xx
according to uname -r my Kernel Release
5.10.0-14-amd64
my Kernel Version: uname -v
1 SMP Debian 5.10.113-1 (2022-04-29

The instructions on phoronix for kernel 5.15 could be applicable to my kernel version (5.10.113-1)?

1 Like

almost certainly more applicable than ones for kernel 4.x

1 Like

Yes and in addition this sentence from @lwfinger is related: “Beginning on November 4, 2019, I will NO LONGER support people that have downloaded the source as a zip file.” Which means that git clone https://github.com/lwfinger/rtl8188eu.git is better place to start.

And even this post: Purism on IBM T420 should work there for you, as optional one, confirming that the “r8188eu” driver (inside of firmware-realtek package) is now, I think, integrated, thanks to lwfinger, for … as here linked phoronix.com article describes.

EDIT: https://packages.debian.org/bullseye/firmware-realtek.

This is a log file you can open in a text editor and read, there will be error messages in there telling you what the problem is.