You are not logged in.

#1 2013-04-26 02:03:48

mren
Member
Registered: 2011-09-10
Posts: 8

DKMS modules and kernel updates

Hi,

for my atheros ar8161 I need the kernel module alx, which is not (yet) in the standard kernel. But it is in the AUR as dkms-alx. So I (tried to) install it, but as I had also a kernel update it failed to install the module:

>> DKMS: Module add, build, and install

Creating symlink /var/lib/dkms/alx/3.9/source ->
                 /usr/src/alx-3.9

DKMS: add completed.
Error! echo
Your kernel headers for kernel 3.8.8-1-ARCH cannot be found at
/usr/lib/modules/3.8.8-1-ARCH/build or /usr/lib/modules/3.8.8-1-ARCH/source.
error: command failed to execute correctly

Kernel update was 3.8.8-1 -> 3.8.8-2. So, dkms (or what else) doesn't find the headers for the kernel currently running, because the update removed them. If I'm right so far all seems logical to me. Sure, I can install the module after a reboot, but: What if I remove my second network card (with which I'm currently online) in that box? Will I be able to recompile this module after the next kernel update? 'Cause I think from the above I can only install it after a reboot, but then I'll have no working network. Is there a way around it? Or am I wrong with the above? Or should I stay with my second (addionally added) network card?

Offline

#2 2013-04-26 02:17:26

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: DKMS modules and kernel updates

Download and install the correct kernel headers and always reboot when you do a kernel update to overcome this trouble. 
option 2.
For a fool proof method use this http://www.linuxfoundation.org/collabor … orking/alx


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#3 2013-04-26 15:04:40

mren
Member
Registered: 2011-09-10
Posts: 8

Re: DKMS modules and kernel updates

I've installed the correct headers (for the new kernel). My question is: How am I able to update the network driver via dkms-alx, when I have no working network (because of a missing driver/module)?

I need the module to be able to access the network to download the files, but I need also the new kernel to be booted. At this time I will have no working network and therefore can't install dkms-alx. Or do I miss something?

Offline

#4 2013-04-27 01:17:36

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: DKMS modules and kernel updates

please try the second option. dkms-alx doesn't work all the time.

Last edited by hadrons123 (2013-04-27 01:17:48)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#5 2013-04-27 01:34:01

mren
Member
Registered: 2011-09-10
Posts: 8

Re: DKMS modules and kernel updates

Ok, thx, just thought there might be a way to use dkms/yaourt. But I'm fine with the second option, just wanted to be sure.

Offline

#6 2013-04-27 01:43:14

progandy
Member
Registered: 2012-05-17
Posts: 5,203

Re: DKMS modules and kernel updates

If you want to try dkms, do not reinstall dkms-alx after the kernel update. dkms-alx should work this way:
- install dkms-alx (and the kernel-headers)
- install new kernel (and headers)
- reboot --> dkms detects missing module and rebuilds it.

Last edited by progandy (2013-04-27 01:44:34)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#7 2013-05-02 12:50:05

mren
Member
Registered: 2011-09-10
Posts: 8

Re: DKMS modules and kernel updates

Just for clarity:

progandy wrote:

- install dkms-alx (and the kernel-headers)
- install new kernel (and headers)
- reboot --> dkms detects missing module and rebuilds it.


Will dkms re-install the net-driver after reboot, if no working network (due to missing module) is present? If so, it will solve all my (thinking) problems.

Offline

#8 2013-05-02 17:58:36

progandy
Member
Registered: 2012-05-17
Posts: 5,203

Re: DKMS modules and kernel updates

It should do that. Don't forget to enable dkms.service. Then all autoinstall-modules will be automatically updated. (maybe you'll need a second reboot since the service does not reload already loaded modules I think. You could also do rmmod psmouse && modprobe psmouse manually after the modules are built. ).

Last edited by progandy (2013-05-02 18:03:43)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#9 2013-05-02 20:24:59

mren
Member
Registered: 2011-09-10
Posts: 8

Re: DKMS modules and kernel updates

Thx, will try that.

Offline

Board footer

Powered by FluxBB