FreedomBen / rtl8188ce-linux-driver

This modified version of the RealTek WiFi driver fixes some issues with RealTek cards on Linux.
GNU General Public License v2.0
489 stars 107 forks source link

Building dkms with Debian 8 (jessie) - Backported kernel (4.6.0-0.bpo.1-amd64) #95

Open alv000h opened 8 years ago

alv000h commented 8 years ago

I am trying to build the kernel module via DKMS in Debian Jessie without success. My kernel version is (from backports):

$ uname -a
Linux midgar 4.6.0-0.bpo.1-amd64 #1 SMP Debian 4.6.3-1~bpo8+1 (2016-07-13) x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.5 (jessie)
Release:    8.5
Codename:   jessie

I followed the steps explained in the Readme.md: (Follow steps 0-2 in the "Manual Installation" section below.)

And then, I executed the next DKMS commands:

root@midgar:/opt/drivers/rtl8188ce-linux-driver# cd ..

root@midgar:/opt/drivers# ls -la
total 4
drwxr-xr-x  3 root root   35 Aug 10 01:15 .
drwxr-xr-x  5 root root   45 Aug 10 01:15 ..
drwxr-xr-x 19 root root 4096 Aug 10 01:18 rtl8188ce-linux-driver

root@midgar:/opt/drivers# dkms add ./rtl8188ce-linux-driver

Creating symlink /var/lib/dkms/rtlwifi/1.0.0/source ->
                 /usr/src/rtlwifi-1.0.0

DKMS: add completed.

root@midgar:/opt/drivers# sudo dkms install rtlwifi/1.0.0
Error!  The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.

After that I run additional tests without success:

root@midgar:/opt/drivers# sudo dkms install rtlwifi/1.0.0 -k 4.6.0-0.bpo.1-amd64
Error!  The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
root@midgar:/opt/drivers# sudo dkms install rtlwifi/1.0.0 -k 4.6.0-0.bpo.1/amd64
Error!  The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
root@midgar:/opt/drivers# sudo dkms install rtlwifi/1.0.0 -k 4.6.3-1-amd64

Automatic installation (install.sh), compiles the modules OK. I just having problems with DKMS build.

jcdenton2k commented 8 years ago

I'm confused. You're using a Linux-based OS and going through significant technical steps yet you missed the error message explaining what is going on?

"Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built."

So open up the dkms.conf and remove the build_exclusive stuff. See if that works out.

Also I personally stay the hell away from backports and unstable builds for obvious reasons. Even IF you ONLY backport security fixes, they generally aren't stable enough for everyday use. I'm curious why you are using a known stable distribution (Debian Jessie) but then doing stuff like using a backported kernel.

If you can replicate this with a standard non-backported kernel then this may be worth checking out. Also try to look into that dkms.conf and see what it says. Generally there are reasons they put 'build_exclusive' parts into those files to prevent people like you from making your system unbootable.