Treibermodule mit DKMS laden - Probleme

C

Caipirinha

Jungspund
Hallo,

ich habe ich momentan ein Problem mit meinem SLES 10 SP3 auf einem Dell R310.

Code:
linux-blqj:~ # uname -a
Linux linux-blqj 2.6.16.60-0.69.1-smp #1 SMP Fri Sep 17 17:07:54 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

Und zwar möchte ich für eine Raid-Controller PERC-H700 Karte neue Firmware und Treiber installieren. Das updaten der Firmware hat funktioniert, allerdings scheiter ich bei der Installation der Treiber. Folgende Anleitung liefert Dell aus:

3.2 Adding or Updating the Driver on a System
----------------------------------------------------------------

1. Install the DKMS rpm package if needed. Use this command
# rpm -ivh <dkms rpm package name>

NOTE: Use rpm -Uvh <package name> when updating an existing package.

2. Install the Driver package. Use this command
# rpm -ivh <driver rpm package name>

3. Verify the driver has been loaded with this system command:
# modinfo megaraid_sas

and this dkms command:
# dkms status

Der erste Schritt funktioniert, beim zweiten Schritt erhalte ich folgende FM:
Code:
Error! Your kernel source for kernel 2.6.16.60-0.69.1-smp cannot be found at
/lib/modules/2.6.16.60-0.69.1-smp/build or /lib/modules/2.6.16.60-0.69.1-smp/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.

Error! Could not locate megaraid_sas.ko for module megaraid_sas in the DKMS tree.
You must run a dkms build for kernel 2.6.16.60-0.69.1-smp (x86_64) first.

Eigentlich steht die Antwort des zweiten Errors schon in der FM drinn, allerdings bringt der nächste Befehl wieder eine (die gleiche) FM:

Code:
linux-blqj:~ # dkms build -m megaraid_sas -v v00.00.04.31.2

Error! Your kernel source for kernel 2.6.16.60-0.69.1-smp cannot be found at
/lib/modules/2.6.16.60-0.69.1-smp/build or /lib/modules/2.6.16.60-0.69.1-smp/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.

Jetzt bin ich überfragt. Ich verwende den Kernel den DKMS verlangt, was möchte DKMS mehr? Welche kernelsourcen?

Ausgabe dkms status:

Code:
linux-blqj:~ # dkms status
megaraid_sas, v00.00.04.31.2: added

Ausgabe modinfo

Code:
linux-blqj:~ # modinfo megaraid_sas
filename:       /lib/modules/2.6.16.60-0.69.1-smp/kernel/drivers/scsi/megaraid/megaraid_sas.ko
description:    LSI MegaRAID SAS Driver
author:         megaraidlinux@lsi.com
version:        00.00.04.08
license:        GPL
srcversion:     EFE8F0DCCDD6849F0D69321
alias:          pci:v00001028d00000015sv*sd*bc*sc*i*
alias:          pci:v00001000d00000413sv*sd*bc*sc*i*
alias:          pci:v00001000d00000071sv*sd*bc*sc*i*
alias:          pci:v00001000d00000073sv*sd*bc*sc*i*
alias:          pci:v00001000d00000079sv*sd*bc*sc*i*
alias:          pci:v00001000d00000078sv*sd*bc*sc*i*
alias:          pci:v00001000d0000007Csv*sd*bc*sc*i*
alias:          pci:v00001000d00000060sv*sd*bc*sc*i*
alias:          pci:v00001000d00000411sv*sd*bc*sc*i*
depends:        scsi_mod
supported:      yes
vermagic:       2.6.16.60-0.69.1-smp SMP gcc-4.1
parm:           poll_mode_io:Complete cmds from IO path, (default=0) (int)

Wie man sieht hat modinfo noch die alte Treiberversion, wärend die neue im dkms tree schon geaddet wurde, allerdings klappt der buiild warum auch immer nicht.

Kann hier jemand helfen?

Schöne Grüße

Caipi
 
Moin,

Kernel-Sourcen installiert?
Code:
rpm -qa | grep kernel
sollte sowas bringen
Code:
kernel-source-2.6.16.60-0.42.4
kernel-default-2.6.16.60-0.42.4
mfg
HeadCrash
 
Ok, danke euch beiden. Nach dem installieren der kernel-source hats geklappt.

Thx!
 
Vielleicht ein wenig OT, aber fürs Protokoll und Querleser gedacht:

Ab openSUSE 11.3 wurde (endlich) eine Trennung der Kernelquellen und der zum Bau von externen Modulen benötigten Header&Co. eingeführt.

Zum Bau eines Kernelmoduls werden nur noch zwei Headerpakete benötigt.

- kernel-devel

- kernel-$FLAVOR-devel

wobei "$FLAVOR" das bezeichnet, was bei einem

Code:
uname -r
hinter der Kernelversion steht (also z.B. default, pae, desktop, .....).

Das Paket "kernel-source" ist unter openSUSE >= 11.3 also nur noch für die Benutzer interessant, die wirklich in den Kernelquellen selbst herumstöbern wollen und _nicht_ mehr zum Bau externer Module.

Greetz,

RM
 

Ähnliche Themen

Nvidia Hybrid-Grafikkarte: 3D Beschleunigung will nicht

X startet nichtmehr

xserver startet nicht: no screens

xrandr: cant open display

dovecot und postfix Konfiguration Problem

Zurück
Oben