• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Festplatten Controller AIC-7902 U320

bo

Newbie
Hallo,
aktuell verwende ich den Treiber Adaptec AIC-79XX PCI-X SCSI HBA rev. 1.3.11. Als OS SLES 9 SP2, Kernel 2.6.5-7.201. Weil der Rechner ab und zu SCSI Fehler bringt und abstürzt, wurde mir
empfohlen den auf 2.0.15 upzudaten. Mit rpm funktioniert es nicht,
deswegen habe ich die Source für SLES 9 Kernel 2.6 von Adaptec herruntergeladen. Habe es versucht mit angepassten Makefile:
KBUILD_EXTMOD=/opt/Source
make -f Makefile modules
in /usr/src/linux zu erstellen. Leider ohne Erfolg:
*** missing separetor. Stop.
make: *** Error 2
Ist die Source falsch (habe nichts anderes gefunden) oder mache ich was falsch ?
Danke und Gruß
 

Gimpel

Guru
kernel und kernel-source müssen exakt selbe versionsnummern haben

und vom fhler output bräuchten wir etwas mehr, das is so nicht verwertbar
 
OP
B

bo

Newbie
Die Kernel und Source Versionen übereinstimmen 2.6.5-7.201.
Ich starte es folgend:
cd /usr/src/linux
make -f Makefile modules


Domino:/usr/src/linux # make -f Makefile modules
Makefile:439: .config: No such file or directory

WARNING: Symbol version dump /usr/src/linux-2.6.5-7.201/Module.symvers is missing, modules will have CONFIG_MODVERSIONS disabled.

scripts/Makefile.build:13: /opt/aic79xxx/Makefile: No such file or directory
make[1]: *** No rule to make target `/opt/aic79xxx/Makefile'. Stop.
make: *** [_module_/opt/aic79xxx] Error 2
Domino:/usr/src/linux #

Ich habe nur das /usr/src/Makefile angepasst.

Ist das die korrekte Stelle zum make starten? Die .config steht im
Domino:/usr/src/linux-2.6.5-7.201-obj/i386/bigsmp # ls -la
total 436
drwxr-xr-x 6 root root 224 Oct 21 16:22 .
drwxr-xr-x 7 root root 168 Oct 21 16:22 ..
-rw-r--r-- 1 root root 55665 Aug 25 13:08 .config
-rw-r--r-- 1 root root 325 Aug 25 13:09 Makefile
-rw-r--r-- 1 root root 381970 Aug 26 08:30 Module.symvers
drwxr-xr-x 3 root root 72 Oct 21 16:22 arch
drwxr-xr-x 4 root root 120 Oct 21 16:22 include
drwxr-xr-x 2 root root 72 Oct 21 16:22 include2
drwxr-xr-x 5 root root 320 Oct 21 16:23 scripts

Der Symlink /usr/src/linux zeigt auf
Domino:/usr/src # ls -l
total 1
drwxr-xr-x 7 root root 272 Oct 21 16:23 .
drwxr-xr-x 13 root root 400 Oct 20 13:37 ..
drwxr-xr-x 4 root root 96 Oct 20 13:38 kernel-modules
lrwxrwxrwx 1 root root 17 Oct 21 16:23 linux -> linux-2.6.5-7.201
drwxr-xr-x 20 root root 744 Oct 25 08:37 linux-2.6.5-7.201
drwxr-xr-x 3 root root 72 Aug 25 13:10 linux-2.6.5-7.201-obj
drwxr-xr-x 3 root root 72 Oct 21 16:23 linux-2.6.5-7.97
lrwxrwxrwx 1 root root 21 Oct 21 16:23 linux-obj -> linux-2.6.5-7.201-obj
drwxr-xr-x 7 root root 168 Jul 28 08:20 packages
Domino:/usr/src #

Warum verlangt er noch ein Makefile in /opt/aic79xxn, wo die Source steht ?

Danke für Hilfe.
 

Gimpel

Guru
bo schrieb:
Die Kernel und Source Versionen übereinstimmen 2.6.5-7.201.
Ich starte es folgend:
cd /usr/src/linux
make -f Makefile modules


Domino:/usr/src/linux # make -f Makefile modules
Makefile:439: .config: No such file or directory

Du musst die kernel-source noch konfigurieren mit
Code:
cd /usr/src/linux && zcat /proc/config.gz > .config && make oldconfig && make prepare

WARNING: Symbol version dump /usr/src/linux-2.6.5-7.201/Module.symvers is missing, modules will have CONFIG_MODVERSIONS disabled.

scripts/Makefile.build:13: /opt/aic79xxx/Makefile: No such file or directory
make[1]: *** No rule to make target `/opt/aic79xxx/Makefile'. Stop.
make: *** [_module_/opt/aic79xxx] Error 2
Domino:/usr/src/linux #

Ich habe nur das /usr/src/Makefile angepasst.

hö? was macht das Makefile in /usr/src???

Ist das die korrekte Stelle zum make starten? Die .config steht im
Domino:/usr/src/linux-2.6.5-7.201-obj/i386/bigsmp # ls -la
total 436
drwxr-xr-x 6 root root 224 Oct 21 16:22 .
drwxr-xr-x 7 root root 168 Oct 21 16:22 ..
-rw-r--r-- 1 root root 55665 Aug 25 13:08 .config
-rw-r--r-- 1 root root 325 Aug 25 13:09 Makefile
-rw-r--r-- 1 root root 381970 Aug 26 08:30 Module.symvers
drwxr-xr-x 3 root root 72 Oct 21 16:22 arch
drwxr-xr-x 4 root root 120 Oct 21 16:22 include
drwxr-xr-x 2 root root 72 Oct 21 16:22 include2
drwxr-xr-x 5 root root 320 Oct 21 16:23 scripts

Der Symlink /usr/src/linux zeigt auf
Domino:/usr/src # ls -l
total 1
drwxr-xr-x 7 root root 272 Oct 21 16:23 .
drwxr-xr-x 13 root root 400 Oct 20 13:37 ..
drwxr-xr-x 4 root root 96 Oct 20 13:38 kernel-modules
lrwxrwxrwx 1 root root 17 Oct 21 16:23 linux -> linux-2.6.5-7.201
drwxr-xr-x 20 root root 744 Oct 25 08:37 linux-2.6.5-7.201
drwxr-xr-x 3 root root 72 Aug 25 13:10 linux-2.6.5-7.201-obj
drwxr-xr-x 3 root root 72 Oct 21 16:23 linux-2.6.5-7.97
lrwxrwxrwx 1 root root 21 Oct 21 16:23 linux-obj -> linux-2.6.5-7.201-obj
drwxr-xr-x 7 root root 168 Jul 28 08:20 packages
Domino:/usr/src #

Warum verlangt er noch ein Makefile in /opt/aic79xxn, wo die Source steht ?

Danke für Hilfe.

make musst du wohl in /usr/src/linux ausführen, wo ja auch die eigentliche kernel-source liegt
 
OP
B

bo

Newbie
Hallo,
danke für die schnelle Antwort.
make oldconfig bringt die Meldung
make: *** No rule to make target 'oldconfig'. Stop.
Wie ich das richtig vertstehe, versucht er mit 'oldconfig' den neuen Kernel mit alter Config zu konfigurieren.

Das Makefile ist schon im /usr/src/linux war mein Tip Fehler. :oops:
Es wird doch das Makefile in /usr/src/linux benutzt oder? Warum will er
ein Makefile in /opt/aic79xxx ? In der Treiber Source ein Teil nennt sich schon Makefile ?
Danke.
 

Gimpel

Guru
bo schrieb:
Hallo,
danke für die schnelle Antwort.
make oldconfig bringt die Meldung
make: *** No rule to make target 'oldconfig'. Stop.
Wie ich das richtig vertstehe, versucht er mit 'oldconfig' den neuen Kernel mit alter Config zu konfigurieren.
richtig, ausführen muss man das in der kernel-source /usr/src/linux

Das Makefile ist schon im /usr/src/linux war mein Tip Fehler. :oops:
Es wird doch das Makefile in /usr/src/linux benutzt oder? Warum will er
ein Makefile in /opt/aic79xxx ? In der Treiber Source ein Teil nennt sich schon Makefile ?
Danke.

was der treiber in /opt macht, frag ich mich auch, wenns eine source ist, gehört die nach /usr/src/aic... normalerweise
 
OP
B

bo

Newbie
Habe make oldconfig laufen lassen, war Fehler im Makefile.
Aber make -f Makefile modules bringt

Domino:/usr/src/linux # make -f Makefile modules
scripts/Makefile.build:13: /usr/src/aic79xxx/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/aic79xxx/Makefile'. Stop.
make: *** [_module_/usr/src/aic79xxx] Error 2

Wie oben beschrieben, die Source die ich von Adaptec runtergeladen habe, enthält ein Teil das Makefile heisst.
Aber kein seperates Makefile.

Habe probiert das File nach Makefile umzubennen.
Domino:/usr/src/linux # make -f Makefile modules
/usr/src/aic79xxx/Makefile:1: warning: NUL character seen; rest of line ignored
/usr/src/aic79xxx/Makefile:1: *** missing separator. Stop.
make: *** [_module_/usr/src/aic79xxx] Error 2
 

Gimpel

Guru
hmmm... so interessehalber hab ich mir mal die source des treibers gezogen: aic7Yxx-2.0.15-6.3.11-linux-2.6.tgz

sieht so aus als kopiert man den inhalt des ordners über den im ordner /usr/src/linux/drivers/scsi/aic7xxx und hat somit den neuesten code im kernel direkt. dann kann man den kernel neu bauen, und hat den treiber..

die README.xxxx werden wohl nach
./Documentation/scsi/aic79xx.txt
./Documentation/scsi/aic7xxx.txt

kopiert

kA welche methode du verwendest o_O, denn für SLES9 gibts dort nix, nur bis SLES8

allerdings wenn ich das modul dann baue, gibts nen haufen fehler :p
 
OP
B

bo

Newbie
Hallo,
vielen Dank für die Hilfe.
Werde jetzt mal abwarten, was mein HW Lieferant dazu sagt.
Bis jetzt höre ich von denen gar nichts.

Nochmal vielen Dank.
 
OP
B

bo

Newbie
Nach langem hin und her, sind wir zurück auf SLES 8.0 gegangen.
Seitdem läuft einwandfrei.
 
Oben