Page 1 of 1

[SOLVED] Problem with dkms modules

PostPosted: Aug 23rd, '11, 09:08
by kamil
Hi!

I've got a problem with DKMS modules. They are rpm-installable, but not loadable.

I've got this problem with my VirtualBox and Broadcom-wl drivers, here is a log for boadcom-wl:

Code: Select all
# LC_ALL=C urpmi -v  dkms-broadcom-wl
getting lock on urpmi
using mirror http://ftp.sh.cvut.cz/MIRRORS/mageia/distrib/1/x86_64
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Mageia - 1 - x86_64 DVD.cz]
examining synthesis file [/var/lib/urpmi/Core Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Updates/synthesis.hdlist.cz]
getting exclusive lock on rpm
found package(s): dkms-broadcom-wl-5.100.82.38-3.mga1.x86_64


retrieving rpm files from medium "Nonfree Release"...
    $MIRRORLIST: media/nonfree/release/dkms-broadcom-wl-5.100.82.38-3.mga1.x86_64.rpm
retrieved $MIRRORLIST media/nonfree/release dkms-broadcom-wl-5.100.82.38-3.mga1.x86_64.rpm
...retrieving done
installing dkms-broadcom-wl-5.100.82.38-3.mga1.x86_64.rpm from /var/cache/urpmi/rpms
starting installing packages
created transaction for installing on / (remove=0, install=0, upgrade=1)
Preparing...                     #############################################
      1/1: dkms-broadcom-wl      #############################################
+ /usr/sbin/dkms --rpm_safe_upgrade add -m broadcom-wl -v 5.100.82.38-3.mga1

Creating symlink /var/lib/dkms/broadcom-wl/5.100.82.38-3.mga1/source ->
                 /usr/src/broadcom-wl-5.100.82.38-3.mga1

DKMS: add Completed.
+ /usr/sbin/dkms --rpm_safe_upgrade build -m broadcom-wl -v 5.100.82.38-3.mga1

Preparing kernel 2.6.38.8-desktop-4.mga for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper....
using /proc/config.gz
make oldconfig....
make prepare....

Building module:
cleaning build area....
make KERNELRELEASE=2.6.38.8-desktop-4.mga -C /lib/modules/2.6.38.8-desktop-4.mga/build M=$(pwd)....
cleaning build area....
cleaning kernel tree (make mrproper)....

DKMS: build Completed.
+ /usr/sbin/dkms --rpm_safe_upgrade install -m broadcom-wl -v 5.100.82.38-3.mga1

wl.ko.gz:
 - Installation
   - Installing to /lib/modules/2.6.38.8-desktop-4.mga/dkms/3rdparty/broadcom-wl/

modinfo: could not find module wl    [<-------------- HERE!]

DKMS: install Completed.
removing installed rpms (dkms-broadcom-wl-5.100.82.38-3.mga1.x86_64.rpm) from /var/cache/urpmi/rpms
unlocking urpmi database
unlocking rpm database


Code: Select all
# modprobe wl
FATAL: Module wl not found.


Code: Select all
# cd /lib/modules/2.6.38.8-desktop-4.mga/dkms/3rdparty/broadcom-wl
# ls
wl.ko.gz

Shouldn't it be wl.ko?

Now I have to manualy correct this and on every reboot type:
Code: Select all
# gunzip wl.ko.gz
# insmod wl.ko


Code: Select all
# rpm -qa |egrep "dkms"
dkms-fglrx-8.850-3.mga1
dkms-broadcom-wl-5.100.82.38-3.mga1
dkms-minimal-2.0.19-24.mga1
dkms-virtualbox-4.0.6-4.mga1
dkms-2.0.19-24.mga1

Re: Problem with dkms modules

PostPosted: Aug 24th, '11, 01:46
by djennings
Shouldn't it be wl.ko?


No, modprobe will install .ko.gz modules All the modules in /lib/modules/2.6.38.8-desktop-4.mga are .ko.gz

Can you confirm your running kernel is actually 2.6.38.8-desktop-4.mga I wonder if you are building modules for a kernel other than the one running.

Re: Problem with dkms modules

PostPosted: Aug 24th, '11, 01:54
by kamil
Code: Select all
$ uname -r -v
2.6.38.8-desktop-4.mga #1 SMP Fri Jul 8 01:37:23 UTC 2011

Re: Problem with dkms modules

PostPosted: Aug 24th, '11, 10:13
by djennings
Does it work if you do
Code: Select all
depmod -a
modprobe wl

Re: Problem with dkms modules

PostPosted: Aug 24th, '11, 10:23
by kamil
Yes, it works!