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

Promise Fasttrak TX4310

muzist

Newbie
Hallo Leute,

ich versuche nun schon mehrere Wochen diesen Controller unter SuSE Linux 10.0 zum laufen zu bekommen. Auf der Seite von Promise gibt es einen Source-Treiber und eine Anleitung zum compilieren, aber das ganze bricht bei mir nur mit Fehlermeldungen ab. Ich habe das Procedere mit einem SuSE-Linux 10.1x64; SuSE Linux 10.0x86 und SuSE Linux 9.0 versucht, jedes mal das gleiche. hier mal die Fehlermeldung. Wenn mir jemand da bitte helfen könnte?
linux:/tmp/tx4310_partial # make

Your are making: ASIC released version with 4 ports support...


make V=0 DRIVER_SRC_DIR=`pwd` -C /lib/modules/2.6.13-15-default/build/ SUBDIRS=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.13-15-obj/i386/default'
make -C ../../../linux-2.6.13-15 O=../linux-2.6.13-15-obj/i386/default modules
CC [M] /tmp/tx4310_partial/linux/osd_main.o
In file included from /tmp/tx4310_partial/linux/osd_main.c:333:
/tmp/tx4310_partial/linux/osd_inc.h:60:18: error: scsi.h: No such file or directory
/tmp/tx4310_partial/linux/osd_inc.h:65:23: error: scsi_cmnd.h: No such file or directory
/tmp/tx4310_partial/linux/osd_inc.h:66:23: error: scsi_host.h: No such file or directory
/tmp/tx4310_partial/linux/osd_inc.h:67:25: error: scsi_device.h: No such file or directory
In file included from /tmp/tx4310_partial/include/napa_cfg.h:9,
from /tmp/tx4310_partial/linux/osd_inc.h:77,
from /tmp/tx4310_partial/linux/osd_main.c:333:
/tmp/tx4310_partial/linux/cfg_linux.h:76:5: warning: "VDEBUG" is not defined
In file included from /tmp/tx4310_partial/linux/osd_inc.h:79,
from /tmp/tx4310_partial/linux/osd_main.c:333:
/tmp/tx4310_partial/include/gen_ds.h:38:5: warning: "VDEBUG" is not defined
/tmp/tx4310_partial/include/gen_ds.h:91:5: warning: "VDEBUG" is not defined
/tmp/tx4310_partial/include/gen_ds.h:112:5: warning: "VDEBUG" is not defined
In file included from /tmp/tx4310_partial/linux/osd_inc.h:83,
from /tmp/tx4310_partial/linux/osd_main.c:333:
/tmp/tx4310_partial/include/eng_req.h:93:5: warning: "VDEBUG" is not defined
In file included from /tmp/tx4310_partial/linux/osd_inc.h:86,
from /tmp/tx4310_partial/linux/osd_main.c:333:
/tmp/tx4310_partial/include/osd_dbg.h:156:5: warning: "VDEBUG" is not defined
In file included from /tmp/tx4310_partial/linux/osd_inc.h:94,
from /tmp/tx4310_partial/linux/osd_main.c:333:
/tmp/tx4310_partial/linux/osd_timer.h:21: warning: type qualifiers ignored on function return type
/tmp/tx4310_partial/linux/osd_timer.h:37: warning: type qualifiers ignored on function return type
In file included from /tmp/tx4310_partial/linux/osd_inc.h:96,
from /tmp/tx4310_partial/linux/osd_main.c:333:
/tmp/tx4310_partial/linux/osd_inter.h:132: error: ‘SCSI_SENSE_BUFFERSIZE’ undeclared here (not in a function)
/tmp/tx4310_partial/linux/osd_main.c:368:5: warning: "VDEBUG" is not defined
/tmp/tx4310_partial/linux/osd_main.c: In function ‘wrap_P2V’:
/tmp/tx4310_partial/linux/osd_main.c:391: warning: passing argument 1 of ‘phys_to_virt’ makes integer from pointer without a cast
/tmp/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_intr’:
/tmp/tx4310_partial/linux/osd_main.c:646: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:648:5: warning: "VDEBUG" is not defined
/tmp/tx4310_partial/linux/osd_main.c:658: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:669:5: warning: "VDEBUG" is not defined
/tmp/tx4310_partial/linux/osd_main.c:673: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_abort’:
/tmp/tx4310_partial/linux/osd_main.c:737: error: ‘SUCCESS’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c:737: error: (Each undeclared identifier is reported only once
/tmp/tx4310_partial/linux/osd_main.c:737: error: for each function it appears in.)
/tmp/tx4310_partial/linux/osd_main.c:738: warning: control reaches end of non-void function
/tmp/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_reset’:
/tmp/tx4310_partial/linux/osd_main.c:749: error: ‘SUCCESS’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c:750: warning: control reaches end of non-void function
/tmp/tx4310_partial/linux/osd_main.c: In function ‘EndRequest’:
/tmp/tx4310_partial/linux/osd_main.c:785: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c: In function ‘RAID_Return’:
/tmp/tx4310_partial/linux/osd_main.c:811: error: ‘DID_OK’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c:814: error: ‘DID_BAD_TARGET’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c:817: error: ‘DRIVER_SENSE’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c:817: error: ‘CHECK_CONDITION’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c:820: error: ‘DID_ERROR’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c: In function ‘prepare_sg_table’:
/tmp/tx4310_partial/linux/osd_main.c:846: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:847: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:848: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:848: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:868: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:868: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:868: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:868: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:882: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:887: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:961:5: warning: "VDEBUG" is not defined
/tmp/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_queue’:
/tmp/tx4310_partial/linux/osd_main.c:972: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:973: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:974: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:975: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:986: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:986: error: ‘DID_BAD_TARGET’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c:993: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:993: error: ‘DID_BUS_BUSY’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c:1005: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1006: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1012: error: ‘MAX_COMMAND_SIZE’ undeclared (first use in this function)
/tmp/tx4310_partial/linux/osd_main.c:1013: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1017: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1025:5: warning: "VDEBUG" is not defined
/tmp/tx4310_partial/linux/osd_main.c:1029:5: warning: "VDEBUG" is not defined
/tmp/tx4310_partial/linux/osd_main.c: In function ‘release_single_device’:
/tmp/tx4310_partial/linux/osd_main.c:1096: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1100: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c: At top level:
/tmp/tx4310_partial/linux/osd_main.c:1564: warning: ‘struct scsi_device’ declared inside parameter list
/tmp/tx4310_partial/linux/osd_main.c:1564: warning: its scope is only this definition or declaration, which is probably not what you want
/tmp/tx4310_partial/linux/osd_main.c:1594: error: variable ‘driver_template’ has initializer but incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1595: error: unknown field ‘module’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1595: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1595: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1596: error: unknown field ‘name’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1596: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1596: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1597: error: unknown field ‘queuecommand’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1597: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1597: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1598: error: unknown field ‘eh_abort_handler’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1598: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1598: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1599: error: unknown field ‘eh_device_reset_handler’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1599: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1599: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1600: error: unknown field ‘eh_host_reset_handler’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1600: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1600: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1601: error: unknown field ‘bios_param’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1601: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1601: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1602: error: unknown field ‘can_queue’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1602: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1602: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1603: error: unknown field ‘this_id’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1603: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1603: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1604: error: unknown field ‘sg_tablesize’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1604: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1604: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1605: error: unknown field ‘cmd_per_lun’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1605: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1605: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1607: error: unknown field ‘use_clustering’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1607: error: ‘DISABLE_CLUSTERING’ undeclared here (not in a function)
/tmp/tx4310_partial/linux/osd_main.c:1607: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1607: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c:1612: error: unknown field ‘proc_name’ specified in initializer
/tmp/tx4310_partial/linux/osd_main.c:1612: warning: excess elements in struct initializer
/tmp/tx4310_partial/linux/osd_main.c:1612: warning: (near initialization for ‘driver_template’)
/tmp/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_probe’:
/tmp/tx4310_partial/linux/osd_main.c:1659: error: implicit declaration of function ‘scsi_host_alloc’
/tmp/tx4310_partial/linux/osd_main.c:1659: warning: assignment makes pointer from integer without a cast
/tmp/tx4310_partial/linux/osd_main.c:1667: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1668: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1669: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1682: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1750: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1754: error: dereferencing pointer to incomplete type
/tmp/tx4310_partial/linux/osd_main.c:1760: error: implicit declaration of function ‘scsi_add_host’
/tmp/tx4310_partial/linux/osd_main.c:1764: error: implicit declaration of function ‘scsi_scan_host’
/tmp/tx4310_partial/linux/osd_main.c:1783: error: implicit declaration of function ‘scsi_host_put’
/tmp/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_remove’:
/tmp/tx4310_partial/linux/osd_main.c:1805: error: implicit declaration of function ‘scsi_remove_host’
make[4]: *** [/tmp/tx4310_partial/linux/osd_main.o] Error 1
make[3]: *** [_module_/tmp/tx4310_partial] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.13-15-obj/i386/default'
make: *** [default] Error 2
 

Tidirium

Newbie
Hmm...welche Treiber-Version versuchst du zu installieren?
Ist das ide-scsi Geraffel (inklusive sourcen) installiert?
Die Menge an Fehlermeldungen die auf scsi deuten sind ungewoehnlich.

Gruss
 
OP
M

muzist

Newbie
Laut der Readme des Treibers ist es ein universeller Treiber für Kernelversionen 2.6 und 2.4, erfolgreiches compilieren vorausgesetzt.

Hier mal ein Auszug aus der Readme:

/**********************************************************************************
* PROMISE FastTrak TX4310/579/779 Series Linux Driver Installation Guide
*
* PROMISE Linux support team <support@promise.com.tw> 2006/03/30
***********************************************************************************/

How to make driver for FastTrak & load it?

1.) Please ensure cc, the source compiler , version is above 3 by issuing Linux command :
# gcc -v
If you do not install the compiler, you will not be able to built Promise driver.

2.) Please ensure linux kernel source directory is "/usr/src/linux".
For SuSE EL9 platform, it always release its kernel source in /usr/src/linux-2.6.7-97.
Please make a link to the appropriate directory, for example:
# ln -s /usr/src/linux-2.6.7-97 /usr/src/linux

For RHEL4 platform, it always release its kernel source in /usr/src/kernels/2.6.9-5.EL.??? which ??? means various kernel images.

3.) Setup Kernel Compile Environment
For SuSE EL9, SuSE 10:
# cd /usr/src/linux/
# make mrproper
# cp arch/$(ARCH)/defconfig.??? .config
# Execute 'make' for a while about 5 sec. and then stop its execution. (Avoid below make menuconfig fail...)
# Execute 'make menuconfig' & exit with configuration save.
# Execute 'make' for a while about 10 sec. and then stop its execution.

For RHEL4:
DO NOTHING.

[1]. $(ARCH) means architecture, which is i386 or x86_64.
[2]. ??? is options to make choose, default, smp and bigmem, depend on your booting image.

4.) Check /lib/modules/$(UTS_RELEASE)/build directy was linked properly to /usr/src/linux.
UTS_RELEASE is the current version of your booting image. You can get it by issuing Linux command :
#uname -r

5.) Goto directory where the PROMISE driver source was located.

5.) Issue Linux command to make FastTrak driver: ftsata2.o
#make clean
#make or #make all

6.) Load PROMISE driver
# modprobe -a sd_mod
# insmod ftsata2.ko or # insmod ftsata2.o

7.) You can copy this module to /lib/modules/$(UTS_VERSION)/kernel/drivers/scsi/ for automatic load when boot system.

Note:
1. Promise partial source can be adapted on kernel 2.4 & 2.6.
2. Different OS may has different kernel source location, please do some modifications of above steps to fit their requirements.
 

Tidirium

Newbie
Auf der website des Herstellers habe ich gesehen, dass dort fuer
die verschiedenen Distris Treiber zur Verfuegung stehen.
Der Treiber fuer SuSE soll vom Mai sein..
Das sieht mir dort auch nicht so aus, als gaebe es "nur" einen
Treiber fuer alle. Das ist schoen nach Distris sortiert. Ich habe
sogar 64bit Treiber gesehen!
 
OP
M

muzist

Newbie
Genau darauf bin ich ja auch reingefallen. Wenn man aber genau liest, dann ist der SuSE-Treiber nur für SuSE Linux Enterprise Server 9 SP2 in 32 und 64-bit Ausführung und leider Gottes auch nicht in SuSE 10 bzw 10.1 oder 9.0 installierbar. Der einzige Treiber der laut Supportaussagen verwendbar wäre ist der "Linux partial source code driver", welcher allerdings selbst zu compilieren wäre. Und genau dort scheitere ich eben gerade.

P.S. man kann von Novell den SLES 9.0 runterladen, aber für das SP2 benötigt man eine "Purchased Subscription" für läppische 34X€. Ohne SP2 erkennt der SLES auch mit dem Treiber die Festplatten nicht!
 
OP
M

muzist

Newbie
Jetzt habe ich nach 2 Tagen warten von einer Novell-Supportnewsgroup folgende Antwort und werde nicht schlau draus:

> Hello to all,
> just one week i try to get the promise fasttrak 4310 serial-ata raid
> controller running in suse linux 10.0 without success. At the promise-
> homepage i found a source-code driver and an installation instruktion.
> I tried this under SuSE-Linux 10.0x86, SuSE Linux 10.1x64 an
> SuSE-Linux 9.0 and all i get are error-messages. I attache the
> messages at the end of the post, please get me a hint if someone can.
> linux:/tmp/tx4310_partial # make
>
> Your are making: ASIC released version with 4 ports support...
>
>
> make V=0 DRIVER_SRC_DIR=`pwd` -C /lib/modules/2.6.13-15-default/build/
> SUBDIRS=`pwd` modules
> make[1]: Entering directory
> `/usr/src/linux-2.6.13-15-obj/i386/default' make -C
> ../../../linux-2.6.13-15 O=../linux-2.6.13-15-obj/i386/default modules
> CC [M] /tmp/tx4310_partial/linux/osd_main.o
> In file included from /tmp/tx4310_partial/linux/osd_main.c:333:
> /tmp/tx4310_partial/linux/osd_inc.h:60:18: error: scsi.h: No such file
[...]

You do not have the kernel source installed and updated.
You have not prepped the kernel.

--
http://www.mailtrap.org.uk/
 

Tidirium

Newbie
Du hast anscheinend die das Paket "kernel-sourcen" nicht
installiert, ohne dem du keinen Treiber bauen kannst.
make ist auf die sourcen angewiesen.

Danach hatte ich ja gefragt, ob du die sourcen fuer das
Zeug installiert hast.

Mach die mit YaST drauf, dann sollte das funzen..

Gruss
 
Ich bin genauso weit bei der Installation des Treiber gekommen...
(nutze OpenSuSe 10.1)

bei mir sind auch zig Fehlermeldungen, wenn ich:

"5.) Goto directory where the PROMISE driver source was located.

5.) Issue Linux command to make FastTrak driver: ftsata2.o
#make clean
#make or #make all"

an diesem Punkt an gekommen bin.

und nach make kommt jenes:


Your are making: ASIC released version with 4 ports support...


make V=0 DRIVER_SRC_DIR=`pwd` -C /lib/modules/2.6.16.21-0.13-smp/build/ SUBDIRS=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.16.21-0.13-obj/i386/smp'
make -C ../../../linux-2.6.16.21-0.13 O=../linux-2.6.16.21-0.13-obj/i386/smp modules
CC [M] /home/tx4310_partial/linux/osd_main.o
In file included from /home/tx4310_partial/linux/osd_main.c:333:
/home/tx4310_partial/linux/osd_inc.h:60:18: error: scsi.h: No such file or directory
/home/tx4310_partial/linux/osd_inc.h:65:23: error: scsi_cmnd.h: No such file or directory
/home/tx4310_partial/linux/osd_inc.h:66:23: error: scsi_host.h: No such file or directory
/home/tx4310_partial/linux/osd_inc.h:67:25: error: scsi_device.h: No such file or directory
In file included from /home/tx4310_partial/include/napa_cfg.h:9,
from /home/tx4310_partial/linux/osd_inc.h:77,
from /home/tx4310_partial/linux/osd_main.c:333:
/home/tx4310_partial/linux/cfg_linux.h:76:5: warning: "VDEBUG" is not defined
In file included from /home/tx4310_partial/linux/osd_inc.h:79,
from /home/tx4310_partial/linux/osd_main.c:333:
/home/tx4310_partial/include/gen_ds.h:38:5: warning: "VDEBUG" is not defined
/home/tx4310_partial/include/gen_ds.h:91:5: warning: "VDEBUG" is not defined
/home/tx4310_partial/include/gen_ds.h:112:5: warning: "VDEBUG" is not defined
In file included from /home/tx4310_partial/linux/osd_inc.h:83,
from /home/tx4310_partial/linux/osd_main.c:333:
/home/tx4310_partial/include/eng_req.h:93:5: warning: "VDEBUG" is not defined
In file included from /home/tx4310_partial/linux/osd_inc.h:86,
from /home/tx4310_partial/linux/osd_main.c:333:
/home/tx4310_partial/include/osd_dbg.h:156:5: warning: "VDEBUG" is not defined
In file included from /home/tx4310_partial/linux/osd_inc.h:94,
from /home/tx4310_partial/linux/osd_main.c:333:
/home/tx4310_partial/linux/osd_timer.h:21: warning: type qualifiers ignored on function return type
/home/tx4310_partial/linux/osd_timer.h:37: warning: type qualifiers ignored on function return type
In file included from /home/tx4310_partial/linux/osd_inc.h:96,
from /home/tx4310_partial/linux/osd_main.c:333:
/home/tx4310_partial/linux/osd_inter.h:132: error: ‘SCSI_SENSE_BUFFERSIZE’ undeclared here (not in a function)
/home/tx4310_partial/linux/osd_main.c:368:5: warning: "VDEBUG" is not defined
/home/tx4310_partial/linux/osd_main.c: In function ‘wrap_P2V’:
/home/tx4310_partial/linux/osd_main.c:391: warning: passing argument 1 of ‘phys_to_virt’ makes integer from pointer without a cast
/home/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_intr’:
/home/tx4310_partial/linux/osd_main.c:646: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:648:5: warning: "VDEBUG" is not defined
/home/tx4310_partial/linux/osd_main.c:658: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:669:5: warning: "VDEBUG" is not defined
/home/tx4310_partial/linux/osd_main.c:673: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_abort’:
/home/tx4310_partial/linux/osd_main.c:737: error: ‘SUCCESS’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c:737: error: (Each undeclared identifier is reported only once
/home/tx4310_partial/linux/osd_main.c:737: error: for each function it appears in.)
/home/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_reset’:
/home/tx4310_partial/linux/osd_main.c:749: error: ‘SUCCESS’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c: In function ‘EndRequest’:
/home/tx4310_partial/linux/osd_main.c:785: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c: In function ‘RAID_Return’:
/home/tx4310_partial/linux/osd_main.c:811: error: ‘DID_OK’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c:814: error: ‘DID_BAD_TARGET’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c:817: error: ‘DRIVER_SENSE’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c:817: error: ‘CHECK_CONDITION’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c:820: error: ‘DID_ERROR’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c: In function ‘prepare_sg_table’:
/home/tx4310_partial/linux/osd_main.c:846: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:847: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:848: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:848: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:868: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:868: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:868: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:868: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:882: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:887: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:961:5: warning: "VDEBUG" is not defined
/home/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_queue’:
/home/tx4310_partial/linux/osd_main.c:972: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:973: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:974: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:975: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:986: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:986: error: ‘DID_BAD_TARGET’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c:993: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:993: error: ‘DID_BUS_BUSY’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c:1005: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1006: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1012: error: ‘MAX_COMMAND_SIZE’ undeclared (first use in this function)
/home/tx4310_partial/linux/osd_main.c:1013: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1017: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1025:5: warning: "VDEBUG" is not defined
/home/tx4310_partial/linux/osd_main.c:1029:5: warning: "VDEBUG" is not defined
/home/tx4310_partial/linux/osd_main.c: In function ‘release_single_device’:
/home/tx4310_partial/linux/osd_main.c:1096: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1100: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c: At top level:
/home/tx4310_partial/linux/osd_main.c:1564: warning: ‘struct scsi_device’ declared inside parameter list
/home/tx4310_partial/linux/osd_main.c:1564: warning: its scope is only this definition or declaration, which is probably not what you want
/home/tx4310_partial/linux/osd_main.c:1594: error: variable ‘driver_template’ has initializer but incomplete type
/home/tx4310_partial/linux/osd_main.c:1595: error: unknown field ‘module’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1595: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1595: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1596: error: unknown field ‘name’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1596: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1596: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1597: error: unknown field ‘queuecommand’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1597: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1597: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1598: error: unknown field ‘eh_abort_handler’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1598: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1598: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1599: error: unknown field ‘eh_device_reset_handler’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1599: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1599: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1600: error: unknown field ‘eh_host_reset_handler’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1600: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1600: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1601: error: unknown field ‘bios_param’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1601: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1601: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1602: error: unknown field ‘can_queue’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1602: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1602: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1603: error: unknown field ‘this_id’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1603: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1603: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1604: error: unknown field ‘sg_tablesize’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1604: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1604: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1605: error: unknown field ‘cmd_per_lun’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1605: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1605: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1607: error: unknown field ‘use_clustering’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1607: error: ‘DISABLE_CLUSTERING’ undeclared here (not in a function)
/home/tx4310_partial/linux/osd_main.c:1607: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1607: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c:1612: error: unknown field ‘proc_name’ specified in initializer
/home/tx4310_partial/linux/osd_main.c:1612: warning: excess elements in struct initializer
/home/tx4310_partial/linux/osd_main.c:1612: warning: (near initialization for ‘driver_template’)
/home/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_probe’:
/home/tx4310_partial/linux/osd_main.c:1659: error: implicit declaration of function ‘scsi_host_alloc’
/home/tx4310_partial/linux/osd_main.c:1659: warning: assignment makes pointer from integer without a cast
/home/tx4310_partial/linux/osd_main.c:1667: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1668: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1669: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1682: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1750: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1754: error: dereferencing pointer to incomplete type
/home/tx4310_partial/linux/osd_main.c:1760: error: implicit declaration of function ‘scsi_add_host’
/home/tx4310_partial/linux/osd_main.c:1764: error: implicit declaration of function ‘scsi_scan_host’
/home/tx4310_partial/linux/osd_main.c:1783: error: implicit declaration of function ‘scsi_host_put’
/home/tx4310_partial/linux/osd_main.c: In function ‘fasttrak_remove’:
/home/tx4310_partial/linux/osd_main.c:1805: error: implicit declaration of function ‘scsi_remove_host’
make[4]: *** [/home/tx4310_partial/linux/osd_main.o] Error 1
make[3]: *** [_module_/home/tx4310_partial] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16.21-0.13-obj/i386/smp'
make: *** [default] Error 2


und das obwohl die Kernel-Source und alle Entwicklertools die ich damit in Verbindung bringen konnte installiert habe...


....unter OpenSuse 10.2 alpha3 funzt der Kontroller prima...
RAID-Verbund und alles läuft bei mir...

Ach übrigens: siehe ct Ausgabe 10-06: RAID-Controller Test
(auch TX4310) Seite 191-192 und die Implemention des OpenSource Treiber ist erst ab Kernel 2.6.17...

tja, evtl muß man wohl noch bis Dezember warten, bis die Release
Version rauskommt......

Heute ist übrigens die OpenSuse 10.2 alpha4 rausgekommen... werd´s gleich mal austesten...
 
OP
M

muzist

Newbie
Das klingt ja nicht sehr vielversprechend. Ich habe gerade noch einen Thread mit Clive Eisen aus dem Novell-Supportforum offen. Mal sehen ob das etwas ergibt. Parallel dazu werde ich gleich mal die 10.2A4 runterladen.
 
OP
M

muzist

Newbie
Hallo Leute,

nach mehrtägigem Mailwechsel mit dem Novell-Supportforum nun endlich die auch funktionierende Lösung mit bestem Dank an Clive Eisen!

1. kernel-sourcen installieren
2. c-Compiler installieren
3. checken ob glibc-devel installiert ist
4. source treiber herunterladen und entpacken in beliebiges Verzeichnis
5. nach usr/src/linux wechseln
6. checken ob symlink gesetzt ist
7. make cloneconfig
8. make prepare
9. in den Ordner mit dem entpackten source-Treiber wechseln
10. die Datei osd_inc.h suchen und folgende Zeilen ändern:
> >> change
> >> #include <scsi.h>
> >> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
> >> #include <sd.h>
> >> #include <hosts.h>
> >> #else
> >> #include <scsi_cmnd.h>
> >> #include <scsi_host.h>
> >> #include <scsi_device.h>
> >>
> >> to read
> >>
> >> #include <scsi/scsi.h>
> >> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
> >> #include <sd.h>
> >> #include <hosts.h>
> >> #else
> >> #include <scsi/scsi_cmnd.h>
> >> #include <scsi/scsi_host.h>
> >> #include <scsi/scsi_device.h>
11. make clean
12. make (bringt zwar massiv Warnungen aber erstellt die nötigen module)
13. modprobe -a sd_mod
14. insmod ftsata2.o oder insmod ftsata2.ko jenachdem was gebraucht wird.

15. optional Treiber-Updatedisk erstellen zur neuinstallation
16. Treiber in die startliste einbinden

ES FUNKTIONIERT WIRKLICH :)
 
Funktioniert auch WEB_PAM ???

... und vieleicht ´ne Idee was leistungseffektiver ist?

Habe zwei 500GB Western Digital CAVIAR WD5000YS RE SATA II 16MB
an dem Kontroller... sollte man die:

1. einzelnd betreiben

2. oder im Raidverbund (striped) laufen lassen
(der Kontroller soll laut ct´ die CPU stark belasten)

... ich frage nur, weil meine Systemfestplatte
(73,4GB Western Digital Raptor WD740ADFD SATA)
einen wesendlich höheren Datendurchsatz über den
Onboard-ICHR-5 hat, als die beiden 500er im RAID-Verbund
(SuSE-Alpha3) ...

Oder vieleicht ist der Datendurchsatz auch mit dem selbstkompilerten Treiber
besser...?
 
OP
M

muzist

Newbie
Zum Problem Web-PAM: keine Ahnung, habe ich noch nicht probiert.
Zum Thema Raidverbund:
Raid 0(Striped) sollte in jedem Fall einen höheren Datenduchsatz bringen als der Einzelbetrieb.
Das Risiko ist natürlich:
Stirb eine Festplatte des Raidverbundes, sind alle Daten im Eimer.
 
Also bei mir hat FAST alles geklappt, aber
weder Kontroller, noch die Festplatte erscheinen
bei mir.... bis zum Kompilieren bin ich gekommen,
ftsata.ko ftsata.o liegen im Verzeichnis...

Ach so, ich bin erstmal wieder auf die ct-Linux Vollversion von Suse 10.1
umgestiegen, die Alpha-Versionen waren mir zu buggy.

Also ab den Punkt Treiber Diskette und Treiber einbinden
bitte noch mal ein wenig genauer...
da fehlen mir noch einige Grundkenntnisse.


Nachtrag:
Also heute Nacht habe ich den Treiber "per Hand " hochgeladen :idea:,
dann kann ich zwar die Festplatten sehen, aber beide haben 0 MB
unter YAST2...
... und WebPAM funktioniert dann auch nur eingeschränkt, so das ich die
Einrichtungsparameter der Festplatte zwar verändern kann
(RAID 0, RAID 1 oder JBOD), aber nicht partitionieren :(



NOCH EIN NACHTRAG:

ES FUNZT 100%ig UNTER SUSE 10.2...!!!!!!!!!!!!!!!!! :)
der Treiber ist im Kernel enthalten.
 

v1p4lin

Newbie
sprechen Sie English?

Hello there,

I'm really sorry for posting in english, but I can't write the german language, I can read it though (I'm from Belgium). I read this topic carefully because I had the same problem as muzist and Speedfreak73. I followed his 16 steps guide carefully but I am stuck at step 12, I changed osd_inc.h though.

I got webpam installed, but I can't see the card there.

I've got Suse 10.2 with kernel 2.6.18.8

Can someone please help me?

modinfo output:

Code:
annelies:/tmp/fasttrak/tx4310_partial # modinfo sata-promise filename: /lib/modules/2.6.18.8-0.3-default/kernel/drivers/ata/sata_promise.ko author: Jeff Garzik description: Promise ATA TX2/TX4/TX4000 low-level driver license: GPL version: 1.04 vermagic: 2.6.18.8-0.3-default SMP mod_unload 586 REGPARM gcc-4.1 supported: yes depends: libata alias: pci:v0000105Ad00003371sv*sd*bc*sc*i* alias: pci:v0000105Ad00003570sv*sd*bc*sc*i* alias: pci:v0000105Ad00003571sv*sd*bc*sc*i* alias: pci:v0000105Ad00003373sv*sd*bc*sc*i* alias: pci:v0000105Ad00003375sv*sd*bc*sc*i* alias: pci:v0000105Ad00003376sv*sd*bc*sc*i* alias: pci:v0000105Ad00003574sv*sd*bc*sc*i* alias: pci:v0000105Ad00003D75sv*sd*bc*sc*i* alias: pci:v0000105Ad00003D73sv*sd*bc*sc*i* alias: pci:v0000105Ad00003318sv*sd*bc*sc*i* alias: pci:v0000105Ad00003319sv*sd*bc*sc*i* alias: pci:v0000105Ad00003515sv*sd*bc*sc*i* alias: pci:v0000105Ad00003519sv*sd*bc*sc*i* alias: pci:v0000105Ad00003D17sv*sd*bc*sc*i* alias: pci:v0000105Ad00003D18sv*sd*bc*sc*i* alias: pci:v0000105Ad00006629sv*sd*bc*sc*i* alias: pci:v0000105Ad00003577sv*sd*bc*sc*i* srcversion: 152ECEEF24B938A862C0B35

lsmod output:

Code:
annelies:/tmp/fasttrak/tx4310_partial # lsmod | grep sata sata_promise 16388 0 libata 119700 1 sata_promise
 

v1p4lin

Newbie
jengelh schrieb:
Do you even need that external driver in 10.2? sata_promise does fine, does not it?
Well I don't see my card in webpam, so I figured something is wrong? (I only see a local ip, not the tree beneath it with the card settings)

Also when I check webpam status the "Promise SNMP subservice" is not running, but google hasn't even heard of the Promise SNMP subservice, so I don't really know what to do...
 

Tarrian

Newbie
v1p4lin schrieb:
jengelh schrieb:
Do you even need that external driver in 10.2? sata_promise does fine, does not it?
Well I don't see my card in webpam, so I figured something is wrong? (I only see a local ip, not the tree beneath it with the card settings)

Ich habe auch ein Suse 10.2 am laufen mit einem fasttrak 4310.
Hatte vorher das onboard-Raid 378 des Asus-Boards benutzt mit einem Raid 1.
Suse hat zwar erst nach abschalten des onboard-Raids gebootet, dafür aber das mit dem 378er formatierte Raid im 4310 erkannt unsd sofort gebootet.
Nun möchte ich aber von den 2 160er Raid1 Platten auf 3 500er Raid5 wechseln.

Ich dachte WebPam würde das schon machen. Ich habe eine der 160er drin gelassen und die drei 500er dazugepackt. Bootet zwar critical aber läuft.

Nur WebPam (2.2.0.29) zeigt nur die IP-Adresse an.
Ich benutze den Suse sata_promise, da der auf der CD jawohl für SES9 sein soll und der Controller sonst alles macht.
Yast kann auch Raids erstellen.

Nur muß ich ja irgendwie migrieren. Die Frage ist nur wie ?

Hat jemand eine Idee ??
Vielen Dank im Voraus.
mfg
 

thsc77

Newbie
Hallo zusammen,

hat rein zufällig jemand schon eine Startdisk für Opensuse 10.3 erstellt. Er erkennt zwar nach längerem Booten einen Kontroller und hängt auch irgendwas unter /dev/src0 ein, doch leider bekomme ich dort keinen Zugriff. auf die Partition im Raid. Suse sagt immer, das keine Festplatten vorhanden sind. Ich kann auch während der Install nichts anderes als /dev/hda oder /dev/hdb auswählen. Hat damit jemand Erfahrungen?

Gruss

Tom

Nachtrag:
Ich habe inzwischen herausgefunden, dass es nicht am Treiber oder am Kontroller liegt. Beide werden geladen, bzw. auch in der Hardwareinfo angezeigt. Das Problem scheint die Erkennung des Raid Verbundes unter Linux zu sein. Ich bekomme folgende Fehlermeldung:

Nov 14 14:53:00 linux kernel: ata1.00: failed to read native max address (err_mask=0x100)
Nov 14 14:53:00 linux kernel: ata1.00: revalidation failed (errno=-5)
Nov 14 14:53:00 linux kernel: ata1.00: disabled
Nov 14 14:53:00 linux kernel: ata3: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xa frozen
Nov 14 14:53:01 linux kernel: ata3: hotplug_status 0x44
Nov 14 14:53:01 linux kernel: ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Nov 14 14:53:01 linux kernel: ata4.00: failed to read native max address (err_mask=0x100)
Nov 14 14:53:01 linux kernel: ata4.00: revalidation failed (errno=-5)
Nov 14 14:53:01 linux kernel: ata4: limiting SATA link speed to 1.5 Gbps
Nov 14 14:53:01 linux kernel: ata4.00: limiting speed to UDMA7:pIO5
Nov 14 14:53:01 linux kernel: ata4: failed to recover some devices, retrying in 5 secs
Nov 14 14:53:01 linux kernel: ata1: EH pending after completion, repeating EH (cnt=2)
Nov 14 14:53:01 linux kernel: ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xa frozen
Nov 14 14:53:01 linux kernel: ata1: hotplug_status 0x11
Nov 14 14:53:01 linux kernel: ata1: hard resetting link
Nov 14 14:53:01 linux kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Nov 14 14:53:01 linux kernel: ata2.00: failed to read native max address (err_mask=0x100)
Nov 14 14:53:01 linux kernel: ata2: failed to recover some devices, retrying in 5 secs
Nov 14 14:53:01 linux kernel: ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Nov 14 14:53:01 linux kernel: ata1.00: failed to read native max address (err_mask=0x100)
Nov 14 14:53:01 linux kernel: ata1: failed to recover some devices, retrying in 5 secs


kann damit jemand was anfangen?
 
Oben