LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-08-2013, 02:43 PM   #1
nickgw
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Rep: Reputation: Disabled
help compiling drivers for HPT RocketRaid 2720 on 3.8


Hi, I'm trying to build a driver for the Highpoint RR 2720 on the new Linux kernel 3.8

I've downloaded the drivers from the highpoint site: http://highpoint-tech.com/USA_new/pr...pport_sas6.htm (I used the Linux Open Source 1.4 driver.) I had the card working on 3.5.0-21 but now when I run make the makefile yells at me saying it only works on 2.4, 2.6 and 3.0 ...

Anybody have any expertise or can I provide some more info?

Thanks!
 
Old 03-08-2013, 05:10 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,910

Rep: Reputation: Disabled
The problematic code is in rr272x_1x-linux-src-v1.4/inc/linux_64mpa/Makefile.def. It's supposed to detect the major and minor kernel versions, but it depends on a kernel header file called "version.h" which no longer exists.

It's possible to work around that problem but there are a few other incompatibilities as well. Unless someone knowledgeable updates the source code, the driver just won't compile.
 
Old 03-08-2013, 05:13 PM   #3
nickgw
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. If I modified makefile.def to not check for the header version, would it build (albeit not necessarily correctly)? I did get it to build for 3.5, but I don't remember exactly what mods I made to get it to work...
 
Old 03-08-2013, 05:19 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,910

Rep: Reputation: Disabled
You can fudge the version detection by manually defining KERNEL_VER_MAJOR and KERNEL_VER_MINOR in Makefile.def.

I tried compiling under 3.7.3 and got this:
Code:
  CC [M]  /usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.o
/usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.c: In function 'os_kmap_sgptr':
/usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.c:206:31: error: 'KM_BIO_SRC_IRQ' undeclared (first use in this function)
/usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.c:206:31: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.c:206:5: error: too many arguments to function 'kmap_atomic'
In file included from include/linux/highmem.h:34:0,
                 from include/linux/pagemap.h:10,
                 from include/linux/blkdev.h:13,
                 from /usr/src/rr272x_1x-linux-src-v1.4/osm/linux/osm_linux.h:61,
                 from /usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.c:6:
/usr/src/linux-3.7.3/arch/x86/include/asm/highmem.h:64:7: note: declared here
/usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.c: In function 'os_kunmap_sgptr':
/usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.c:216:35: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
/usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.c:216:3: error: 'kunmap_atomic' undeclared (first use in this function)
make[2]: *** [/usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build/os_linux.o] Error 1
make[1]: *** [_module_/usr/src/rr272x_1x-linux-src-v1.4/product/rr272x/linux/.build] Error 2
make[1]: Leaving directory `/usr/src/linux-3.7.3'
make: *** [rr272x_1x.ko] Error 2
 
Old 03-08-2013, 05:21 PM   #5
nickgw
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
fudge... Can I take the compiled driver from 3.5.0-21 and use it in 3.8 without recompiling? I see it in /lib/modules/3.5.0-21-generic/kernel/driver/scsi/ but I think I need to apply it to initrd, which I'm unsure of...
 
Old 03-08-2013, 05:33 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,910

Rep: Reputation: Disabled
You could try, but it's not very likely to work. If you can successfully insmod the old module in a more recent kernel, it could be worth a shot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble compiling rocketraid module Adol Linux - Newbie 11 07-09-2011 09:38 PM
Hpt 370 waynejkruse10 Linux - Hardware 1 10-29-2005 04:02 AM
RocketRAID 1520 driver compiling problems on Kernel 2.6.11-8 Icedman Linux - Hardware 8 09-08-2005 09:27 PM
Hpt 370 Raid Thom_Redhat Linux - Hardware 1 09-11-2003 02:50 AM
RH 7.3 with HPT 370 raid RedHat Linux - General 2 05-16-2002 05:03 AM


All times are GMT -5. The time now is 05:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration