HOWTO: build install a DKMS module?


I Want to use a TP-LINK TL-WN722N Usb Wifi adapter. How can I install it?
Followed the steps here:
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.

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: you should follow this guide:

But please take a look at: For example:

git clone
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: 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
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 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 article describes.


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.