Fedora Linux Support Community & Resources Center
  #1  
Old 22nd December 2006, 10:53 AM
Snufkin Offline
Registered User
 
Join Date: Apr 2005
Posts: 9
Kernel module for RocketRaid 2320

I have a x86_64 box with a HighPoint RocketRaid 2320 card that I've just updated from FC 4 to FC 6. I've been struggeling for days to compile a kernel module for it from the source code provided by HighPoint. Didn't have any problems when I did it for FC4.

First was the problem with version.h that I solved with help from this thread http://fedoraforum.org/forum/showthread.php?t=133540

Then the compilation failed on that it couldn't find config.h
[mli@zeus linux]$ make
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/os_linux.o
In file included from /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/os_linux.c:6:
/home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/osm_linux.h:11:26: error: linux/config.h: No such file or directory
make[2]: *** [/home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/os_linux.o] Error 1
make[1]: *** [_module_/home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
make: *** [rr232x.ko] Error 2

There was a configfs.h but no config.h. I just tried to see what would happen if I made it use configfs.h instead of config.h. I made it a bit further
[mli@zeus linux]$ make
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/os_linux.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/osm_linux.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/div64.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/hptinfo.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/config.o
LD [M] /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.o
Building modules, stage 2.
MODPOST
WARNING: could not find /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/.os_linux.o.cmd for /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/os_linux.o
WARNING: "page_to_pfn" [/home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.ko] undefined!
LD [M] /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'

So I googled a bit for page_to_pfn and found this note that page_to_pfn was a duplicate to be removed http://lwn.net/Articles/186223/
I might also be reading it wrong.

So I mailed HighPoint a couple of days ago to ask for help, but haven't heard anything back yet.

Any one on the forum that might have some advice on how to make this compile?
Reply With Quote
  #2  
Old 31st December 2006, 10:45 AM
CybKnight Offline
Registered User
 
Join Date: Dec 2006
Posts: 3
I don't know if this of any help. I recently compiled the driver for my FC5, and had like you some trouble. I did however not solve the problem the same way.

With regard to the version.h, this error dissapear if you use 'make KERNEL_VER=2.6'.
When googling for the config.h problem, the solution I found was simple, just touch config.h in the required folder.
While googling for answers, I also found a lot of people with other distros, not being able to compile for 2.6.18, and that is why I compiled on a 2.6.19.1 vanilla kernel, just to be sure.

My next step now is to make a driver disk for the installation of FC6 in near future, so if you manage to figure out how to compile the driver module, please post solution here.
Reply With Quote
  #3  
Old 2nd January 2007, 07:14 PM
Snufkin Offline
Registered User
 
Join Date: Apr 2005
Posts: 9
Thanks for mentioning the KERNEL_VER=2.6, with that I got a bit further, now the build looks like this

[mli@zeus linux]$ make KERNEL_VER=2.6
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/os_linux.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/osm_linux.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/div64.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/osm/linux/hptinfo.o
CC [M] /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/config.o
LD [M] /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.o
Building modules, stage 2.
MODPOST
WARNING: could not find /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/.os_linux.o.cmd for /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/os_linux.o
LD [M] /home/mli/Desktop/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-x86_64'
[mli@zeus linux]$

Even though the warning it produces a kernel module that can be loaded. When loaded it produces the following nice lines in /var/log/messages
Jan 2 18:59:57 zeus kernel: rr232x:0: channel [0,4] started successfully
Jan 2 18:59:57 zeus kernel: rr232x:0: channel [0,5] started successfully
Jan 2 18:59:57 zeus kernel: rr232x:0: channel [0,6] started successfully
Jan 2 18:59:57 zeus kernel: rr232x:0: channel [0,7] started successfully
Jan 2 18:59:57 zeus kernel: scsi5 : rr232x
Jan 2 18:59:57 zeus kernel: Vendor: HPT Model: DISK_5_0 Rev: 4.00
Jan 2 18:59:57 zeus kernel: Type: Direct-Access ANSI SCSI revision: 00

But I can not mount the filesystem and when I try to start hptsvr it says "Driver is not loaded.", even though the module rr232x is loaded.

If I try to remove the module and reload it will say
Jan 2 20:07:34 zeus kernel: rr232x:0: RocketRAID 232x controller driver v1.03 (Jan 1 2007 22:29:08)
Jan 2 20:07:34 zeus kernel: rr232x:0: adapter at PCI 6:4:0, IRQ 58
Jan 2 20:07:34 zeus kernel: rr232x:0: out of memory

So something is still missing in the puzzle.
Reply With Quote
  #4  
Old 3rd January 2007, 07:12 PM
CybKnight Offline
Registered User
 
Join Date: Dec 2006
Posts: 3
I got the following log, and everything seems ok:

make[1]: Entering directory `/usr/src/kernels/linux-2.6.19.1'
CC [M] /usr/src/rr232x-linux-src-1.03/osm/linux/os_linux.o
CC [M] /usr/src/rr232x-linux-src-1.03/osm/linux/osm_linux.o
/usr/src/rr232x-linux-src-1.03/osm/linux/osm_linux.c: In function ‘hpt_detect’:
/usr/src/rr232x-linux-src-1.03/osm/linux/osm_linux.c:357: warning: passing argument 2 of ‘request_irq’ from incompatible
pointer type
CC [M] /usr/src/rr232x-linux-src-1.03/osm/linux/div64.o
CC [M] /usr/src/rr232x-linux-src-1.03/osm/linux/hptinfo.o
CC [M] /usr/src/rr232x-linux-src-1.03/product/rr232x/linux/config.o
LD [M] /usr/src/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: could not find /usr/src/rr232x-linux-src-1.03/product/rr232x/linux/.build/.os_linux.o.cmd for /usr/src/rr232x-l
inux-src-1.03/product/rr232x/linux/.build/os_linux.o
LD [M] /usr/src/rr232x-linux-src-1.03/product/rr232x/linux/.build/rr232x.ko
make[1]: Leaving directory `/usr/src/kernels/linux-2.6.19.1'

If you still experience problems, maybe you should compile a 2.6.19+ vanilla kernel just to check.
Reply With Quote
  #5  
Old 3rd January 2007, 07:23 PM
CybKnight Offline
Registered User
 
Join Date: Dec 2006
Posts: 3
My system log states the following:

Jan 3 20:06:24 lunar kernel: rr232x: module license 'Proprietary' taints kernel.
Jan 3 20:06:24 lunar kernel: rr232x:1: RocketRAID 232x controller driver v1.03 (Dec 18 2006 22:56:55)
Jan 3 20:06:24 lunar kernel: ACPI: PCI Interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16
Jan 3 20:06:24 lunar kernel: rr232x:1: adapter at PCI 2:4:0, IRQ 16
Jan 3 20:06:24 lunar kernel: rr232x:1: start channel [0,0]
Jan 3 20:06:24 lunar kernel: rr232x:1: start channel [0,1]
Jan 3 20:06:24 lunar kernel: rr232x:1: start channel [0,2]
Jan 3 20:06:24 lunar kernel: rr232x:1: start channel [0,3]
Jan 3 20:06:24 lunar kernel: rr232x:1: channel [0,0] started successfully
Jan 3 20:06:24 lunar kernel: rr232x:1: channel [0,1] started successfully
Jan 3 20:06:24 lunar kernel: rr232x:1: channel [0,2] started successfully
Jan 3 20:06:24 lunar kernel: rr232x:1: channel [0,3] started successfully
Jan 3 20:06:24 lunar kernel: scsi8 : rr232x
Jan 3 20:06:24 lunar kernel: scsi 8:0:0:0: Direct-Access HPT DISK_8_0 4.00 PQ: 0 ANSI: 0
Jan 3 20:06:24 lunar kernel: SCSI device sdb: 2343567360 512-byte hdwr sectors (1199906 MB)
Jan 3 20:06:24 lunar kernel: sdb: Write Protect is off
Jan 3 20:06:24 lunar kernel: SCSI device sdb: drive cache: write through
Jan 3 20:06:24 lunar kernel: SCSI device sdb: 2343567360 512-byte hdwr sectors (1199906 MB)
Jan 3 20:06:24 lunar kernel: sdb: Write Protect is off
Jan 3 20:06:24 lunar kernel: SCSI device sdb: drive cache: write through
Jan 3 20:06:24 lunar kernel: sdb: sdb1
Jan 3 20:06:24 lunar kernel: sd 8:0:0:0: Attached scsi disk sdb
Jan 3 20:06:24 lunar kernel: sd 8:0:0:0: Attached scsi generic sg1 type 0

I load the module during kernel boot, where I load it with initrd and --builtin parameter (don't know if I actually need it) and added scsi device to modprobe.conf. This is because I run the root from the array.

By the way I have also upgrade firmware from version 1 to 1.4 that came with the adapter. I don't know if it will make any difference, but I have done this. I also set up the array in BIOS before building the module, so I don't know if building array from linux works how it supposed to.
Reply With Quote
Reply

Tags
2320, kernel, module, rocketraid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RocketRaid 2220 Kernel 2.6.29 fix Dr.Diesel Hardware & Laptops 0 11th April 2009 09:54 PM
Rocketraid 2224 driver for 2.6.25.x kernel nomisunrider Hardware & Laptops 2 7th August 2008 10:11 PM
Highpoint Rocketraid 2320 + Fedora 8 cmygfx Hardware & Laptops 1 12th April 2008 06:14 AM
RocketRAID 2320 problem - Fedora 8 uwsublime Hardware & Laptops 1 31st January 2008 02:45 AM
How do I install the RocketRaid driver into the new kernel hkec Using Fedora 1 10th March 2006 03:34 PM


Current GMT-time: 07:38 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat