[SOLVED] Problem with dkms modules

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] Problem with dkms modules

Postby kamil » Aug 23rd, '11, 09:08

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
kamil
 
Posts: 5
Joined: Aug 14th, '11, 20:45

Re: Problem with dkms modules

Postby djennings » Aug 24th, '11, 01:46

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.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Problem with dkms modules

Postby kamil » Aug 24th, '11, 01:54

Code: Select all
$ uname -r -v
2.6.38.8-desktop-4.mga #1 SMP Fri Jul 8 01:37:23 UTC 2011
kamil
 
Posts: 5
Joined: Aug 14th, '11, 20:45

Re: Problem with dkms modules

Postby djennings » Aug 24th, '11, 10:13

Does it work if you do
Code: Select all
depmod -a
modprobe wl
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: Problem with dkms modules

Postby kamil » Aug 24th, '11, 10:23

Yes, it works!
kamil
 
Posts: 5
Joined: Aug 14th, '11, 20:45


Return to Advanced support

Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest

cron