Highpoint IDE Raid Card
Rick Stevens
rstevens at vitalstream.com
Tue Feb 14 18:29:04 UTC 2006
On Mon, 2006-02-13 at 20:52 -0500, Mark McCulligh wrote:
> Rick Stevens wrote:
>
> >On Mon, 2006-02-13 at 18:36 -0500, Mark McCulligh wrote:
> >
> >
> >>Hi Group,
> >>
> >>I have a Hightpoint RocketRAID 133 raid card that I am trying to
> >>install. I downloaded the driver from their website and I have to
> >>configure it with the kernel source.
> >>
> >>make KERNELDIR=/usr/src/linux-2.6.4-52-default [from their readme file]
> >>
> >>To get my kernel source as I know it is no longer part of the default
> >>install I did the following commands.
> >>up2date --get-source kernel
> >>rpm -Uvh kernel-2.6.12-1-1381_FC3.src.rpm
> >>cd /usr/src/redhat/SPECS
> >>rpmbuild -bp --target=i586 kernel-2.6.spec
> >>cd /usr/src/redhat/BUILD/kernel-2.6.12/linux-2.6.12/configs
> >>cp kernel-2.6.12-i586.config ./.config
> >>cd ..
> >>make oldconfig
> >>
> >>At this point I am lost. Where do I tell highpoint where my kernel
> >>source is?
> >>
> >>I tried this:
> >>make KERNELDIR=/usr/src/redhat/BUILD/kernel-2.6.12/linux-2.6.12
> >>but I just got a lot of errors.
> >>
> >>Has anyone used this card and can get me an idea on what I need to do.
> >>
> >>
> >
> >It'd help if we could see some of the errors you got. You probably need
> >to actually build the kernel and modules...some 3rd party drivers need a
> >real kernel and not just the configured source:
> >
> > # cd /usr/src/redhat/BUILD/kernel-2.6.12/linux-2.6.12
> > # make bzImage;make modules
> >
> >After that, your make command for the driver should work.
> >
> >
> I ran the "make bzImage;make modules" commands then build the driver.
> See below for the output. I then ran insmod to load the driver and got a
> Invalid module format error. I see a couple warnings in building the
> driver. Any ideas what to do next. First time building my own drivers.
> Thanks for your help.
>
> [root at calonweb003 drivers]# make KERNELDIR=/usr/src/redhat/BUILD/kernel-2.6.12/linux-2.6.12 RR1520=0
> cp -f raid.o raid.obj
> make -C /usr/src/redhat/BUILD/kernel-2.6.12/linux-2.6.12 SUBDIRS=`pwd`
> modules
> make[1]: Entering directory
> `/usr/src/redhat/BUILD/kernel-2.6.12/linux-2.6.12'
> CC [M] /usr/local/src/highpoint/drivers/hpt.o
> In file included from /usr/local/src/highpoint/drivers/hpt.c:49:
> drivers/scsi/hosts.h:1:2: warning: #warning "This file is obsolete, please
> use <scsi/scsi_host.h> instead"
> In file included from /usr/local/src/highpoint/drivers/hpt.c:129:
> /usr/local/src/highpoint/drivers/entry.c: In function `fOsBuildSgl':
> /usr/local/src/highpoint/drivers/entry.c:903: warning: implicit
> declaration of function `scsi_to_pci_dma_dir'
> In file included from /usr/local/src/highpoint/drivers/hpt.c:130:
> /usr/local/src/highpoint/drivers/hptproc.c: In function `hpt_set_info':
> /usr/local/src/highpoint/drivers/hptproc.c:230: warning: `verify_area' is
> deprecated (declared at include/asm/uaccess.h:105)
> /usr/local/src/highpoint/drivers/hptproc.c:236: warning: `verify_area' is
> deprecated (declared at include/asm/uaccess.h:105)
> /usr/local/src/highpoint/drivers/hptproc.c:242: warning: `verify_area' is
> deprecated (declared at include/asm/uaccess.h:105)
> In file included from /usr/local/src/highpoint/drivers/hpt.c:130:
> /usr/local/src/highpoint/drivers/hptproc.c:260: warning: ignoring return
> value of `copy_from_user', declared with attribute warn_unused_result
> /usr/local/src/highpoint/drivers/hptproc.c:268: warning: ignoring return
> value of `copy_to_user', declared with attribute warn_unused_result
> /usr/local/src/highpoint/drivers/hptproc.c:272: warning: ignoring return
> value of `copy_to_user', declared with attribute warn_unused_result
> In file included from /usr/local/src/highpoint/drivers/ioctl.c:6,
> from /usr/local/src/highpoint/drivers/hpt.c:131:
> /usr/local/src/highpoint/drivers/gui_lib.c: In function `get_array_info':
> /usr/local/src/highpoint/drivers/gui_lib.c:271: warning: ISO C90 forbids
> mixed declarations and code
> LD [M] /usr/local/src/highpoint/drivers/hpt37x2.o
> Building modules, stage 2.
> MODPOST
> Warning: could not find /usr/local/src/highpoint/drivers/.raid.obj.cmd for
> /usr/local/src/highpoint/drivers/raid.obj
Note the message above.
> *** Warning: "scsi_to_pci_dma_dir"
> [/usr/local/src/highpoint/drivers/hpt37x2.ko] undefined!
And that one.
> CC /usr/local/src/highpoint/drivers/hpt37x2.mod.o
> LD [M] /usr/local/src/highpoint/drivers/hpt37x2.ko
> make[1]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.6.12/linux-2.6.12'
> [root at calonweb003 drivers]# modprobe sd_mod
> [root at calonweb003 drivers]# insmod ./hpt37x2.o
> insmod: error inserting './hpt37x2.o': -1 Invalid module format
First off, Mark, 2.6 kernels use ".ko" modules, not ".o" modules, so
your forced "insmod ./htp37x2.o" is invalid. If there's a "htp37x2.ko"
module, try to insmod that instead.
Second, it looks suspiciously like the .ko has an issue with an
undefined global, "scsi_to_pci_dma_dir" as denoted in the second line
I said to not. This may be caused by the missing file mentioned in the
first line I said to note. I don't know if it's fatal or not.
As I said, if there's a ".ko" module, insmod that and see if things
work.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- Squawk! Pieces of Seven! Pieces of Seven! Parity Error! -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list