Ben al enige tijd bezig om de op mijn Lanparty pro875B bord aanwezige Highpoint controller onder een Linux distro aan de praat te krijgen. Heb eerst Suse92 geprobeerd, maar ben toch weer teruggekomen op mijn eerste Linux liefde Mandrake. Welnu, heb een aantal keren met Highpoint gemaild en geprobeerd de raid controller aan de praat te krijgen. Hieronder een verslag van dat proces (realiseer je dat ik eerst Suse geinstalleerd heb en nu met Mandrake 10.1 draai) :
V1) On Mon, 6 Dec 2004 21:02:16 +0000 (GMT)
I want to install Suse linux 9.2 on my computer with a lanparty pro875B motherboard. Kernel 2.6 which comes with suse 9.2 does not support the hpt372. Are you going to bring out drivers for the raid controller which can be used with the linux kernel 2.6 ?
Thx in advance
A1) You can use the OpenSource driver to build the driver for the HPT372 under SuSE 9.2 system. You may refer the attached file to do it.
V2 ) On Sat, 11 Dec 2004 09:08:36 +0000 (GMT)
When I try to compile I get these errors :
#suse92:~/hpt/hpt3 # make KERNELDIR=/usr/src/linux
cat: /usr/src/linux/include/linux/version.h: No such file or directory
gcc -DDRIVER_VERSION=\"2.0\" -DLIST_H_INCLUDED
-DMODVERSIONS -DMODULE -DLINUX -D_LINUX_
-D__KERNEL__=1 -DCONFIG_PCI -DNO_CROSS_CTRL=1
-DSUPPORT_ARRAY -DSUPPORT_OLD_ARRAY -Wall -O2
-Wstrict-prototypes -fomit-frame-pointer -I.
-I/usr/src/linux/include -I/usr/src/linux/drivers/scsi
-c hpt.c -o hpt.o
In file included from hpt.c:2:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should
not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files
directly for the compilation ofkernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now
uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working
kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files
are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently
running kernel. They shouldonly be"
/usr/include/linux/version.h:10:2: #error "included
via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs
should not directly include
> or"
/usr/include/linux/version.h:12:2: #error "
as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build
kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the
kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make
sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "
/lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the
matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o
Configure kernel sources:"
/usr/include/linux/version.h:23:2: #error " - cd
/usr/src/linux"
/usr/include/linux/version.h:24:2: #error " - make
mrproper"
/usr/include/linux/version.h:25:2: #error " - make
cloneconfig"
/usr/include/linux/version.h:26:2: #error " - make
dep"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " o When
compiling, make sure to use the following"
/usr/include/linux/version.h:29:2: #error " compiler
option to use the correct include files:"
/usr/include/linux/version.h:30:2: #error ""
/usr/include/linux/version.h:31:2: #error "
-I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:32:2: #error ""
/usr/include/linux/version.h:33:2: #error " instead
of"
/usr/include/linux/version.h:34:2: #error ""
/usr/include/linux/version.h:35:2: #error "
-I/usr/include/linux"
/usr/include/linux/version.h:36:2: #error ""
/usr/include/linux/version.h:37:2: #error " Please
adjust the Makefile accordingly."
/usr/include/linux/version.h:38:2: #error
"======================================================="
hpt.c:4:41: missing binary operator before token "("
hpt.c:7:41: missing binary operator before token "("
In file included from /usr/include/asm/smp.h:18,
from
/usr/src/linux/include/linux/smp.h:17,
from
/usr/src/linux/include/linux/sched.h:23,
from
/usr/src/linux/include/linux/module.h:10,
from hpt.c:11:
/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such
file or directory
In file included from /usr/include/asm/smp.h:18,
from
/usr/src/linux/include/linux/smp.h:17,
from
/usr/src/linux/include/linux/sched.h:23,
from
/usr/src/linux/include/linux/module.h:10,
from hpt.c:11:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types
for `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous
declaration of `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types
for `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous
declaration of `mp_bus_id_to_pci_bus'
In file included from /usr/include/asm/smp.h:20,
from
/usr/src/linux/include/linux/smp.h:17,
from
/usr/src/linux/include/linux/sched.h:23,
from
/usr/src/linux/include/linux/module.h:10,
from hpt.c:11:
/usr/include/asm/io_apic.h:160: error:
`MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/io_apic.h:160: error: conflicting
types for `mp_irqs'
/usr/include/asm/mpspec.h:22: error: previous
declaration of `mp_irqs'
In file included from
/usr/src/linux/include/linux/smp.h:17,
from
/usr/src/linux/include/linux/sched.h:23,
from
/usr/src/linux/include/linux/module.h:10,
from hpt.c:11:
/usr/include/asm/smp.h:71:26: mach_apicdef.h: No such
file or directory
hpt.c:13:43: linux/modversions.h: No such file or
directory
hpt.c:19:40: missing binary operator before token "("
In file included from
/usr/src/linux/include/linux/irq.h:20,
from /usr/include/asm/hardirq.h:6,
from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such
file or directory
In file included from /usr/include/asm/hardirq.h:6,
from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/src/linux/include/linux/irq.h:70: error:
`NR_IRQS' undeclared here (not ina function)
In file included from
/usr/src/linux/include/linux/irq.h:72,
from /usr/include/asm/hardirq.h:6,
from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS'
undeclared here (not in afunction)
/usr/include/asm/hw_irq.h:32: error: `NR_IRQS'
undeclared here (not in a function)
/usr/include/asm/hw_irq.h: In function
`x86_do_profile':
/usr/include/asm/hw_irq.h:87: error: `prof_buffer'
undeclared (first use in this function)
/usr/include/asm/hw_irq.h:87: error: (Each undeclared
identifier is reported only once
/usr/include/asm/hw_irq.h:87: error: for each function
it appears in.)
/usr/include/asm/hw_irq.h:100: error: `prof_shift'
undeclared (first use in this function)
/usr/include/asm/hw_irq.h:106: error: `prof_len'
undeclared (first use in this function)
In file included from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/src/linux/include/linux/hardirq.h:12:1: warning:
"PREEMPT_MASK" redefined
In file included from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/hardirq.h:42:1: warning: this is the
location of the previous definition
In file included from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/src/linux/include/linux/hardirq.h:13:1: warning:
"HARDIRQ_MASK" redefined
In file included from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/hardirq.h:43:1: warning: this is the
location of the previous definition
In file included from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/src/linux/include/linux/hardirq.h:14:1: warning:
"SOFTIRQ_MASK" redefined
In file included from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/hardirq.h:44:1: warning: this is the
location of the previous definition
hpt.c:37:40: missing binary operator before token "("
hpt.c:46:40: missing binary operator before token "("
In file included from hpt.c:49:
/usr/src/linux/drivers/scsi/hosts.h:1:2: warning:
#warning "This file is obsolete, please use
instead"
hpt.c:55:41: missing binary operator before token "("
hpt.c: In function `sd_inuse':
hpt.c:105: error: structure has no member named
`host_queue'
hpt.c:107: error: structure has no member named
`access_count'
hpt.c:109: error: structure has no member named `next'
hpt.c:116:41: missing binary operator before token "("
hpt.c:118:43: missing binary operator before token "("
In file included from entry.c:7,
from hpt.c:129:
oslinux.h:117:41: missing binary operator before token
"("
oslinux.h:131:40: missing binary operator before token
"("
In file included from hpt.c:129:
entry.c:19:49: missing binary operator before token
"("
entry.c:27:41: missing binary operator before token
"("
entry.c:38:80: missing binary operator before token
"("
entry.c:42:41: missing binary operator before token
"("
entry.c:91:41: missing binary operator before token
"("
entry.c:94:40: missing binary operator before token
"("
entry.c:101:41: missing binary operator before token
"("
entry.c:124:40: missing binary operator before token
"("
In file included from hpt.c:129:
entry.c: In function `OsSendCommand':
entry.c:264: error: structure has no member named
`channel'
entry.c:264: error: structure has no member named
`target'
entry.c: In function `hpt3xx_QueueCommand':
entry.c:372: error: structure has no member named
`channel'
entry.c:372: error: structure has no member named
`target'
entry.c:372: error: structure has no member named
`lun'
entry.c:375: error: structure has no member named
`channel'
entry.c:375: error: structure has no member named
`target'
entry.c:451:40: missing binary operator before token
"("
entry.c:458:40: missing binary operator before token
"("
entry.c: In function `hpt3xx_Detect':
entry.c:479: warning: implicit declaration of function
`scsi_init_malloc'
entry.c:479: warning: assignment makes pointer from
integer without a cast
entry.c:519:40: missing binary operator before token
"("
entry.c:528:41: missing binary operator before token
"("
entry.c:550:40: missing binary operator before token
"("
entry.c:559:41: missing binary operator before token
"("
entry.c:582:40: missing binary operator before token
"("
entry.c:591:41: missing binary operator before token
"("
entry.c:649:41: missing binary operator before token
"("
entry.c:653:40: missing binary operator before token
"("
entry.c: In function `hpt3xx_Reset':
entry.c:689: error: structure has no member named
`target'
entry.c:689: error: structure has no member named
`lun'
entry.c:689: error: structure has no member named
`flags'
entry.c: In function `hpt3xx_Abort':
entry.c:737: error: structure has no member named
`target'
entry.c:737: error: structure has no member named
`lun'
entry.c:737: error: structure has no member named
`flags'
entry.c: In function `hpt3xx_cleanup':
entry.c:762: warning: implicit declaration of function
`unregister_reboot_notifier'
entry.c:762: error: `hpt_notifier' undeclared (first
use in this function)
entry.c:779: warning: implicit declaration of function
`scsi_init_free'
entry.c:804:41: missing binary operator before token
"("
entry.c:834:41: missing binary operator before token
"("
entry.c:854:41: missing binary operator before token
"("
entry.c:880:41: missing binary operator before token
"("
entry.c:882:43: missing binary operator before token
"("
entry.c: In function `fOsBuildSgl':
entry.c:887: error: structure has no member named
`address'
entry.c:1050:41: missing binary operator before token
"("
entry.c:1052:43: missing binary operator before token
"("
entry.c: In function `hpt_worker_thread':
entry.c:1059: error: structure has no member named
`session'
entry.c:1060: error: structure has no member named
`pgrp'
entry.c:1200:40: missing binary operator before token
"("
entry.c:1207:42: missing binary operator before token
"("
entry.c: At top level:
entry.c:1217: error: `hpt3xx_ProcInfo26' undeclared
here (not in a function)
entry.c:1217: error: initializer element is not
constant
entry.c:1217: error: (near initialization for
`driver_template.proc_info')
entry.c:1224:40: missing binary operator before token
"("
entry.c:1335:41: missing binary operator before token
"("
entry.c:1357:41: missing binary operator before token
"("
In file included from hpt.c:130:
hptproc.c:10:40: missing binary operator before token
"("
hptproc.c:452:40: missing binary operator before token
"("
In file included from hpt.c:130:
hptproc.c: In function `get_sd_name':
hptproc.c:470: warning: implicit declaration of
function `get_bdev'
hptproc.c:470: warning: initialization makes pointer
from integer without a cast
hptproc.c:474: error: parse error before "__BDEV_RAW"
hptproc.c:579:41: missing binary operator before token
"("
make: *** [hpt.o] Error 1
# suse92:~/hpt/hpt3 #
Please help....
A2) From the information, you didn't have version.h file. You can do "make" after you "make oldconfig". After you get the version.h file, you can stop it and do "make KERNELDIR=/usr/src/linux".
V3) On Mon, 13 Dec 2004 12:22:40 +0000 (GMT)
I did do a make cloneconfig just like it says in the document.
A3) As you didn't get the version.h file, you need do "make" after you "make cloneconfig".
V4) On Mon, 13 Dec 2004 23:21:54 +0000 (GMT)
I have succeded in building the kernel drivers (see below) and what do I haven to do furthermore to get my hpt372 working ??
#suse92:~/downloads/hpt/hpt3
# make KERNELDIR=/usr/src/linux
cp -f raid.o raid.obj
make -C /usr/src/linux SUBDIRS=`pwd` modules
make[1]: Entering directory
`/usr/src/linux-2.6.8-24.5'
WARNING: Symbol version dump
/usr/src/linux-2.6.8-24.5/Module.symvers is missing, modules will have CONFIG_MODVERSIONS disabled.
CC [M] /root/downloads/hpt/hpt3/hpt.o
In file included from /root/downloads/hpt/hpt3/hpt.c:49:
drivers/scsi/hosts.h:1:2: warning: #warning "This file is obsolete, please use <scsi/scsi_host.h> instead"
LD [M] /root/downloads/hpt/hpt3/hpt37x2.o
Building modules, stage 2.
MODPOST
CC /root/downloads/hpt/hpt3/hpt37x2.mod.o
LD [M] /root/downloads/hpt/hpt3/hpt37x2.ko
make[1]: Leaving directory `/usr/src/linux-2.6.8-24.5'
A4) Your kernel source directory may be /usr/src/linux-2.6.8-24.5.
If yes, you need do "make KERNELDIR=/usr/src/linux-2.6.8-24.5".
If you didn't have version.h file, you must do "make" after you "make
oldconfig".
V5) On Tue, 14 Dec 2004 15:04:26 +0000 (GMT)
I said it maked the modules, but how do I load the during system startup...
In other words what are the next steps to have my suse recognize the hpt
controller ? When I do a make menuconfig I do not see the newly build kernel
drivers from highpoint.
A5) If you do "make oldconfig", you needn't do "make menuconfig".
After you get hpt37x2.ko, you can do "modprobe sd_mod, scsi_mod", then
"insmod hpt37x2.ko".
V6) On Wed, 15 Dec 2004 17:30:13 +0000 (GMT)
When I do a "modprobe sd_mod, scsci_mod" this is the result :
#suse92:/usr/src/linux/drivers/scsi # modprobe sd_mod, scsi_mod
FATAL: Module sd_mod, not found.
And when I do a "modprobe scsi_mod" this is the result :
#suse92:/usr/src/linux/drivers/scsi # modprobe scsi_mod
#suse92:/usr/src/linux/drivers/scsi #
And then "insmod hpt37x2.ko" then it only works when I
do it from the directory where I downloaded the open
source divers (in which I did a make KERNELDIR="/usr/src/linux"
How do I save it so that it remembers the drivers when I reboot ?
A6) You can do the following steps:
Er zitten (nog) geen raid configuraties aan de controller. Wel gewoon master en slave hd's.
V1) On Mon, 6 Dec 2004 21:02:16 +0000 (GMT)
I want to install Suse linux 9.2 on my computer with a lanparty pro875B motherboard. Kernel 2.6 which comes with suse 9.2 does not support the hpt372. Are you going to bring out drivers for the raid controller which can be used with the linux kernel 2.6 ?
Thx in advance
A1) You can use the OpenSource driver to build the driver for the HPT372 under SuSE 9.2 system. You may refer the attached file to do it.
V2 ) On Sat, 11 Dec 2004 09:08:36 +0000 (GMT)
When I try to compile I get these errors :
#suse92:~/hpt/hpt3 # make KERNELDIR=/usr/src/linux
cat: /usr/src/linux/include/linux/version.h: No such file or directory
gcc -DDRIVER_VERSION=\"2.0\" -DLIST_H_INCLUDED
-DMODVERSIONS -DMODULE -DLINUX -D_LINUX_
-D__KERNEL__=1 -DCONFIG_PCI -DNO_CROSS_CTRL=1
-DSUPPORT_ARRAY -DSUPPORT_OLD_ARRAY -Wall -O2
-Wstrict-prototypes -fomit-frame-pointer -I.
-I/usr/src/linux/include -I/usr/src/linux/drivers/scsi
-c hpt.c -o hpt.o
In file included from hpt.c:2:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should
not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files
directly for the compilation ofkernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now
uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working
kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files
are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently
running kernel. They shouldonly be"
/usr/include/linux/version.h:10:2: #error "included
via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs
should not directly include
> or"
/usr/include/linux/version.h:12:2: #error "
as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build
kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the
kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make
sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "
/lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the
matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o
Configure kernel sources:"
/usr/include/linux/version.h:23:2: #error " - cd
/usr/src/linux"
/usr/include/linux/version.h:24:2: #error " - make
mrproper"
/usr/include/linux/version.h:25:2: #error " - make
cloneconfig"
/usr/include/linux/version.h:26:2: #error " - make
dep"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " o When
compiling, make sure to use the following"
/usr/include/linux/version.h:29:2: #error " compiler
option to use the correct include files:"
/usr/include/linux/version.h:30:2: #error ""
/usr/include/linux/version.h:31:2: #error "
-I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:32:2: #error ""
/usr/include/linux/version.h:33:2: #error " instead
of"
/usr/include/linux/version.h:34:2: #error ""
/usr/include/linux/version.h:35:2: #error "
-I/usr/include/linux"
/usr/include/linux/version.h:36:2: #error ""
/usr/include/linux/version.h:37:2: #error " Please
adjust the Makefile accordingly."
/usr/include/linux/version.h:38:2: #error
"======================================================="
hpt.c:4:41: missing binary operator before token "("
hpt.c:7:41: missing binary operator before token "("
In file included from /usr/include/asm/smp.h:18,
from
/usr/src/linux/include/linux/smp.h:17,
from
/usr/src/linux/include/linux/sched.h:23,
from
/usr/src/linux/include/linux/module.h:10,
from hpt.c:11:
/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such
file or directory
In file included from /usr/include/asm/smp.h:18,
from
/usr/src/linux/include/linux/smp.h:17,
from
/usr/src/linux/include/linux/sched.h:23,
from
/usr/src/linux/include/linux/module.h:10,
from hpt.c:11:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types
for `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous
declaration of `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES'
undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types
for `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous
declaration of `mp_bus_id_to_pci_bus'
In file included from /usr/include/asm/smp.h:20,
from
/usr/src/linux/include/linux/smp.h:17,
from
/usr/src/linux/include/linux/sched.h:23,
from
/usr/src/linux/include/linux/module.h:10,
from hpt.c:11:
/usr/include/asm/io_apic.h:160: error:
`MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/io_apic.h:160: error: conflicting
types for `mp_irqs'
/usr/include/asm/mpspec.h:22: error: previous
declaration of `mp_irqs'
In file included from
/usr/src/linux/include/linux/smp.h:17,
from
/usr/src/linux/include/linux/sched.h:23,
from
/usr/src/linux/include/linux/module.h:10,
from hpt.c:11:
/usr/include/asm/smp.h:71:26: mach_apicdef.h: No such
file or directory
hpt.c:13:43: linux/modversions.h: No such file or
directory
hpt.c:19:40: missing binary operator before token "("
In file included from
/usr/src/linux/include/linux/irq.h:20,
from /usr/include/asm/hardirq.h:6,
from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such
file or directory
In file included from /usr/include/asm/hardirq.h:6,
from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/src/linux/include/linux/irq.h:70: error:
`NR_IRQS' undeclared here (not ina function)
In file included from
/usr/src/linux/include/linux/irq.h:72,
from /usr/include/asm/hardirq.h:6,
from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS'
undeclared here (not in afunction)
/usr/include/asm/hw_irq.h:32: error: `NR_IRQS'
undeclared here (not in a function)
/usr/include/asm/hw_irq.h: In function
`x86_do_profile':
/usr/include/asm/hw_irq.h:87: error: `prof_buffer'
undeclared (first use in this function)
/usr/include/asm/hw_irq.h:87: error: (Each undeclared
identifier is reported only once
/usr/include/asm/hw_irq.h:87: error: for each function
it appears in.)
/usr/include/asm/hw_irq.h:100: error: `prof_shift'
undeclared (first use in this function)
/usr/include/asm/hw_irq.h:106: error: `prof_len'
undeclared (first use in this function)
In file included from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/src/linux/include/linux/hardirq.h:12:1: warning:
"PREEMPT_MASK" redefined
In file included from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/hardirq.h:42:1: warning: this is the
location of the previous definition
In file included from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/src/linux/include/linux/hardirq.h:13:1: warning:
"HARDIRQ_MASK" redefined
In file included from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/hardirq.h:43:1: warning: this is the
location of the previous definition
In file included from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/src/linux/include/linux/hardirq.h:14:1: warning:
"SOFTIRQ_MASK" redefined
In file included from
/usr/src/linux/include/linux/hardirq.h:8,
from
/usr/src/linux/include/linux/interrupt.h:11,
from hpt.c:29:
/usr/include/asm/hardirq.h:44:1: warning: this is the
location of the previous definition
hpt.c:37:40: missing binary operator before token "("
hpt.c:46:40: missing binary operator before token "("
In file included from hpt.c:49:
/usr/src/linux/drivers/scsi/hosts.h:1:2: warning:
#warning "This file is obsolete, please use
instead"
hpt.c:55:41: missing binary operator before token "("
hpt.c: In function `sd_inuse':
hpt.c:105: error: structure has no member named
`host_queue'
hpt.c:107: error: structure has no member named
`access_count'
hpt.c:109: error: structure has no member named `next'
hpt.c:116:41: missing binary operator before token "("
hpt.c:118:43: missing binary operator before token "("
In file included from entry.c:7,
from hpt.c:129:
oslinux.h:117:41: missing binary operator before token
"("
oslinux.h:131:40: missing binary operator before token
"("
In file included from hpt.c:129:
entry.c:19:49: missing binary operator before token
"("
entry.c:27:41: missing binary operator before token
"("
entry.c:38:80: missing binary operator before token
"("
entry.c:42:41: missing binary operator before token
"("
entry.c:91:41: missing binary operator before token
"("
entry.c:94:40: missing binary operator before token
"("
entry.c:101:41: missing binary operator before token
"("
entry.c:124:40: missing binary operator before token
"("
In file included from hpt.c:129:
entry.c: In function `OsSendCommand':
entry.c:264: error: structure has no member named
`channel'
entry.c:264: error: structure has no member named
`target'
entry.c: In function `hpt3xx_QueueCommand':
entry.c:372: error: structure has no member named
`channel'
entry.c:372: error: structure has no member named
`target'
entry.c:372: error: structure has no member named
`lun'
entry.c:375: error: structure has no member named
`channel'
entry.c:375: error: structure has no member named
`target'
entry.c:451:40: missing binary operator before token
"("
entry.c:458:40: missing binary operator before token
"("
entry.c: In function `hpt3xx_Detect':
entry.c:479: warning: implicit declaration of function
`scsi_init_malloc'
entry.c:479: warning: assignment makes pointer from
integer without a cast
entry.c:519:40: missing binary operator before token
"("
entry.c:528:41: missing binary operator before token
"("
entry.c:550:40: missing binary operator before token
"("
entry.c:559:41: missing binary operator before token
"("
entry.c:582:40: missing binary operator before token
"("
entry.c:591:41: missing binary operator before token
"("
entry.c:649:41: missing binary operator before token
"("
entry.c:653:40: missing binary operator before token
"("
entry.c: In function `hpt3xx_Reset':
entry.c:689: error: structure has no member named
`target'
entry.c:689: error: structure has no member named
`lun'
entry.c:689: error: structure has no member named
`flags'
entry.c: In function `hpt3xx_Abort':
entry.c:737: error: structure has no member named
`target'
entry.c:737: error: structure has no member named
`lun'
entry.c:737: error: structure has no member named
`flags'
entry.c: In function `hpt3xx_cleanup':
entry.c:762: warning: implicit declaration of function
`unregister_reboot_notifier'
entry.c:762: error: `hpt_notifier' undeclared (first
use in this function)
entry.c:779: warning: implicit declaration of function
`scsi_init_free'
entry.c:804:41: missing binary operator before token
"("
entry.c:834:41: missing binary operator before token
"("
entry.c:854:41: missing binary operator before token
"("
entry.c:880:41: missing binary operator before token
"("
entry.c:882:43: missing binary operator before token
"("
entry.c: In function `fOsBuildSgl':
entry.c:887: error: structure has no member named
`address'
entry.c:1050:41: missing binary operator before token
"("
entry.c:1052:43: missing binary operator before token
"("
entry.c: In function `hpt_worker_thread':
entry.c:1059: error: structure has no member named
`session'
entry.c:1060: error: structure has no member named
`pgrp'
entry.c:1200:40: missing binary operator before token
"("
entry.c:1207:42: missing binary operator before token
"("
entry.c: At top level:
entry.c:1217: error: `hpt3xx_ProcInfo26' undeclared
here (not in a function)
entry.c:1217: error: initializer element is not
constant
entry.c:1217: error: (near initialization for
`driver_template.proc_info')
entry.c:1224:40: missing binary operator before token
"("
entry.c:1335:41: missing binary operator before token
"("
entry.c:1357:41: missing binary operator before token
"("
In file included from hpt.c:130:
hptproc.c:10:40: missing binary operator before token
"("
hptproc.c:452:40: missing binary operator before token
"("
In file included from hpt.c:130:
hptproc.c: In function `get_sd_name':
hptproc.c:470: warning: implicit declaration of
function `get_bdev'
hptproc.c:470: warning: initialization makes pointer
from integer without a cast
hptproc.c:474: error: parse error before "__BDEV_RAW"
hptproc.c:579:41: missing binary operator before token
"("
make: *** [hpt.o] Error 1
# suse92:~/hpt/hpt3 #
Please help....
A2) From the information, you didn't have version.h file. You can do "make" after you "make oldconfig". After you get the version.h file, you can stop it and do "make KERNELDIR=/usr/src/linux".
V3) On Mon, 13 Dec 2004 12:22:40 +0000 (GMT)
I did do a make cloneconfig just like it says in the document.
A3) As you didn't get the version.h file, you need do "make" after you "make cloneconfig".
V4) On Mon, 13 Dec 2004 23:21:54 +0000 (GMT)
I have succeded in building the kernel drivers (see below) and what do I haven to do furthermore to get my hpt372 working ??
#suse92:~/downloads/hpt/hpt3
# make KERNELDIR=/usr/src/linux
cp -f raid.o raid.obj
make -C /usr/src/linux SUBDIRS=`pwd` modules
make[1]: Entering directory
`/usr/src/linux-2.6.8-24.5'
WARNING: Symbol version dump
/usr/src/linux-2.6.8-24.5/Module.symvers is missing, modules will have CONFIG_MODVERSIONS disabled.
CC [M] /root/downloads/hpt/hpt3/hpt.o
In file included from /root/downloads/hpt/hpt3/hpt.c:49:
drivers/scsi/hosts.h:1:2: warning: #warning "This file is obsolete, please use <scsi/scsi_host.h> instead"
LD [M] /root/downloads/hpt/hpt3/hpt37x2.o
Building modules, stage 2.
MODPOST
CC /root/downloads/hpt/hpt3/hpt37x2.mod.o
LD [M] /root/downloads/hpt/hpt3/hpt37x2.ko
make[1]: Leaving directory `/usr/src/linux-2.6.8-24.5'
A4) Your kernel source directory may be /usr/src/linux-2.6.8-24.5.
If yes, you need do "make KERNELDIR=/usr/src/linux-2.6.8-24.5".
If you didn't have version.h file, you must do "make" after you "make
oldconfig".
V5) On Tue, 14 Dec 2004 15:04:26 +0000 (GMT)
I said it maked the modules, but how do I load the during system startup...
In other words what are the next steps to have my suse recognize the hpt
controller ? When I do a make menuconfig I do not see the newly build kernel
drivers from highpoint.
A5) If you do "make oldconfig", you needn't do "make menuconfig".
After you get hpt37x2.ko, you can do "modprobe sd_mod, scsi_mod", then
"insmod hpt37x2.ko".
V6) On Wed, 15 Dec 2004 17:30:13 +0000 (GMT)
When I do a "modprobe sd_mod, scsci_mod" this is the result :
#suse92:/usr/src/linux/drivers/scsi # modprobe sd_mod, scsi_mod
FATAL: Module sd_mod, not found.
And when I do a "modprobe scsi_mod" this is the result :
#suse92:/usr/src/linux/drivers/scsi # modprobe scsi_mod
#suse92:/usr/src/linux/drivers/scsi #
And then "insmod hpt37x2.ko" then it only works when I
do it from the directory where I downloaded the open
source divers (in which I did a make KERNELDIR="/usr/src/linux"
How do I save it so that it remembers the drivers when I reboot ?
A6) You can do the following steps:
- #modprobe sd_mod
- #modprobe scsi_mod
- #modprobe hpt37x2.ko
- Configure System to Automatically Load the Driver
- Most likely, you will not want to type in "insmod hpt37x2.ko" each time
- you boot up the system. You can add the driver to the initial RAM disk image to load the driver
- at boot time:
- 1) Edit file /etc/sysconfig/kernel and add hpt372 module to the line
- INITRD_MODULES=... , e.g:
- INITRD_MODULES="reiserfs hpt372"?2) Run mkinitrd to update the initrd file:
- # mkinitrd
- 3) If you are using lilo boot loader, run lilo again:
- # lilo
Er zitten (nog) geen raid configuraties aan de controller. Wel gewoon master en slave hd's.