You are not logged in.

#1 2012-10-17 19:47:40

Syl
Member
Registered: 2009-06-24
Posts: 43

DKMS - module not compiled after kernel update

Hello all,

I'm using a USB Wifi Adapter which has very bad support : D-Link DWA160 B2
I have followed the instruction from this excellent guide to add the driver sources to DKMS, to get it compiled automatically after all kernel update:
http://bernaerts.dyndns.org/linux/229-u … er-to-dkms

Unfortunatly the 2 last kernel upgrade did not trigger the driver compile.
There is no DKMS logs, and everything seems to be well configured.

My DKMS conf file:

 /root/driver-dkms
[root@purelight driver-dkms]# more dkms.conf 
MAKE="make KERNELDIR=/lib/modules/${kernelver}/build"
CLEAN="make clean"
BUILT_MODULE_NAME=rt5572sta
BUILT_MODULE_LOCATION=os/linux/
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
PACKAGE_NAME=rt5572sta
PACKAGE_VERSION=2.601
REMAKE_INITRD=no
[root@purelight 2.601]# pwd
/var/lib/dkms/rt5572sta/2.601
[root@purelight 2.601]# ls -lsa
total 24
4 drwxr-xr-x  6 root root 4096 Oct 17 20:54 .
4 drwxr-xr-x  3 root root 4096 Oct 17 20:54 ..
4 drwxr-xr-x  3 root root 4096 Oct  6 20:44 3.5.4-1-ARCH
4 drwxr-xr-x  3 root root 4096 Oct  9 20:43 3.5.6-1-ARCH
4 drwxr-xr-x  3 root root 4096 Oct 17 20:54 3.6.2-1-ARCH
4 drwxr-xr-x 11 root root 4096 Oct 17 20:54 build
0 lrwxrwxrwx  1 root root   24 Oct  6 20:42 source -> /usr/src/rt5572sta-2.601
 
[root@purelight 2.601]# dkms build -m rt5572sta -v 2.601
Module rt5572sta/2.601 already built for kernel 3.6.2-1-ARCH/4 

It seems that there is nothing relevant in the logs:

[root@purelight log]# grep dkms /var/log/*
auth.log:Oct 17 20:52:53 purelight sudo:      syl : TTY=pts/2 ; PWD=/var/lib/dkms/rt5572sta/2.601 ; USER=root ; COMMAND=/usr/sbin/dkms build -m rt5572sta -v 2.601
auth.log:Oct 17 20:54:14 purelight sudo:      syl : TTY=pts/2 ; PWD=/var/lib/dkms/rt5572sta/2.601 ; USER=root ; COMMAND=/usr/sbin/dkms install -m rt5572sta -v 2.601
pacman.log:[2012-10-06 20:42] Running 'pacman -S dkms'
pacman.log:[2012-10-06 20:42] installed dkms (2.2.0.3-12)

Any help would be nice, thanks!


広島のお好み焼きおたくです

Offline

#2 2012-10-17 21:14:27

derhamster
Member
Registered: 2012-07-08
Posts: 86

Re: DKMS - module not compiled after kernel update

I have no experience using DKMS under Arch but I doubt there is any automatism triggering rebuilds on kernel updates. You probably have to tell DKMS to rebuild your modules manually.

Offline

#3 2012-10-18 11:19:59

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: DKMS - module not compiled after kernel update

Are you using systemd? If so, you might have to reboot twice. The catalyst-dkms package (video driver for amd cards) in [community] currently has the same problems. I'd suggest for you to read the last few pages in that thread to see background information:

https://bbs.archlinux.org/viewtopic.php?id=57084&p=177


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#4 2012-10-18 13:05:45

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,599

Re: DKMS - module not compiled after kernel update

Hi, I've been having some issues with dkms-bbswitch not being recompiled at new kernel install.

Please take a look at this thread, might shed a light, or even an answer!

Offline

#5 2012-10-18 15:19:32

Syl
Member
Registered: 2009-06-24
Posts: 43

Re: DKMS - module not compiled after kernel update

Thanks guys, I'll have a look at all your advices and update this thread.


広島のお好み焼きおたくです

Offline

#6 2012-10-18 15:38:00

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: DKMS - module not compiled after kernel update

Offline

#7 2012-10-21 16:43:48

Syl
Member
Registered: 2009-06-24
Posts: 43

Re: DKMS - module not compiled after kernel update

Unia wrote:

Are you using systemd? If so, you might have to reboot twice. The catalyst-dkms package (video driver for amd cards) in [community] currently has the same problems. I'd suggest for you to read the last few pages in that thread to see background information:

https://bbs.archlinux.org/viewtopic.php?id=57084&p=177


Yes I do use systemd. Since I'm using a quite recent installation, it was included by default.
At the next kernel upgrade I'll try this trick of reboot twice, and see if it works.

Cheers!


広島のお好み焼きおたくです

Offline

#8 2012-10-21 16:45:36

Syl
Member
Registered: 2009-06-24
Posts: 43

Re: DKMS - module not compiled after kernel update

Lekensteyn wrote:

Thanks Lekensteyn!
I'll try the new tricks ;-)

Last edited by Syl (2012-10-21 16:49:52)


広島のお好み焼きおたくです

Offline

#9 2012-10-25 13:10:55

Syl
Member
Registered: 2009-06-24
Posts: 43

Re: DKMS - module not compiled after kernel update

Ok, so I tested the following during the upgrade of my kernel (from version 3.6.2-1 to 3.6.3-1).

Before I launche the upgrade, I enabled the dkms service, just to be sure that it is up:

# systemctl enable dkms.service

Right after I launched:

# dkms autoinstall

But nothing happened.
So I rebooted twice.
Nothing changed ...
So I had to re-compile the driver by hand.

Curisouly the logs do not show anything related to DKMS.



Thanks for your advices.


広島のお好み焼きおたくです

Offline

#10 2012-10-26 13:36:22

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: DKMS - module not compiled after kernel update

@Syl updated wiki, try appending "-k NEW_KERNEL_VER" where NEW_KERNEL_VER is something like 3.6.3-1-ARCH.

Last edited by Lekensteyn (2012-10-26 13:36:30)

Offline

#11 2012-10-27 08:17:26

Syl
Member
Registered: 2009-06-24
Posts: 43

Re: DKMS - module not compiled after kernel update

Lekensteyn wrote:

@Syl updated wiki, try appending "-k NEW_KERNEL_VER" where NEW_KERNEL_VER is something like 3.6.3-1-ARCH.


Thanks Lekensteyn!
Will try it asap.


広島のお好み焼きおたくです

Offline

#12 2012-11-03 18:34:45

Syl
Member
Registered: 2009-06-24
Posts: 43

Re: DKMS - module not compiled after kernel update

Ok, tried with the lastest kernel update (3.6.5-1), with the "-k NEW_KERNEL_VER" but nothing happen.
Nothing in the logs either.
Nothing visible or obvious.


広島のお好み焼きおたくです

Offline

Board footer

Powered by FluxBB