LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2011, 01:21 AM   #1
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Rep: Reputation: 5
trouble compiling rocketraid module


Hello

Im having some trouble compiling a rocketraid module for highpoint rocket raid 620.

Im running OpenSuse 11.4.

The installer doesnt work: I think because its set for a different kernel version so Im trying to use their universal linux driver.

Im getting this error:

Code:
petreuss@linux-6cwi:/toinstall/rr62x-linux-src-v1.1/product/rr62x/linux> make                                                        
grep: /lib/modules/2.6.37.1-1.2-desktop/build/include/linux/version.h: No such file or directory                                     
expr: syntax error                                                                                                                   
../../../inc/linux/Makefile.def:85: *** Only kernel 2.4/2.6 is supported but you use 2..  Stop.
Am I missing my header files? If so how do I get them under OpenSuse(Ive been searching but cant find a guide)

I have compiled a kernel before but don't know how to install a module into the kernel list.

Im official lost. Can someone help or point me into the right direction?
 
Old 07-06-2011, 01:52 AM   #2
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Here is some extra information.

These are the instructions but I cant understand what to do.

Quote:
To build driver modules for a specific kernel, you shall use same
configuration for the kernel and the driver. Otherwise, the driver may
be unable to load, or behave abnormally.

- For Linux kernel 2.6 -

On most distributions based on kernel 2.6, an exploded source tree is not
required to build a driver against the currently in-use kernel. As long
as the system has kernel headers setup under /lib/modules/`uname -r`/build,
you can simply run "make" to build the driver.

If you want to build the driver against a custom kernel source, you must
setup the kernel source manually and run "make" under kernel source tree
to setup kernel headers.
 
Old 07-06-2011, 02:08 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Simply install the package 'kernel-devel' : And you will have
/lib/modules/2.6.37.*-*.*-desktop/build/include/linux/version.h

# zypper in kernel-desktop kernel-desktop-devel
.. An updated kernel that matches the new kernel-devel is required.

Then reboot to use the new kernel / the development files.

..

Last edited by knudfl; 07-06-2011 at 02:11 AM.
 
1 members found this post helpful.
Old 07-06-2011, 06:42 AM   #4
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Thank you.

Now I have the version.h file but have a new error

Quote:
make[1]: Entering directory `/usr/src/linux-2.6.37.6-0.5-obj/x86_64/desktop'
make -C ../../../linux-2.6.37.6-0.5 O=/usr/src/linux-2.6.37.6-0.5-obj/x86_64/desktop/. modules
make[2]: *** No rule to make target `modules'. Stop.
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.37.6-0.5-obj/x86_64/desktop'
make: *** [rr62x.ko] Error 2
 
Old 07-06-2011, 08:36 AM   #5
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Ok.

I got the module to compile rebooted my system and now it freezes on Loading CPUFreq modules for some reason.

cant boot into my regular or safe mode system.
 
Old 07-06-2011, 08:43 AM   #6
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Actualy thats not correct.

Its freezing at random points.
 
Old 07-06-2011, 08:51 AM   #7
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
I can't say for sure on SUSE but with Fedora 14 I don't need to install the drivers to use the drives connected to the controller. It will present the drives to the system like a HBA without any of the RAID things available in the "driver".

The fact that the RAID is software based anyway I figure we might as well use the more efficient software raid built into the linux kernel. That's actually what we're using on our backup servers at the moment. It's actually quite nice having a setup like md(x) -> LVM -> Filesystem (XFS, EXT) as it's possible to expand the raid array and increase/decrease the LVM at any time. We're using XFS so we can't decrease the filesystem (limitation of XFS) but can increase it at any time. So when we need more space we just add more drives, drop them in the RAID array and expand the filesystem. All of which can be done while the system is running.
 
1 members found this post helpful.
Old 07-06-2011, 09:13 AM   #8
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
many posts one after another.

I'm back into my system. I had to physicaly remove the card and the module.

Still not sure how to get this thing to work.
 
Old 07-06-2011, 05:54 PM   #9
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by travisdh1 View Post
I can't say for sure on SUSE but with Fedora 14 I don't need to install the drivers to use the drives connected to the controller. It will present the drives to the system like a HBA without any of the RAID things available in the "driver".

The fact that the RAID is software based anyway I figure we might as well use the more efficient software raid built into the linux kernel. That's actually what we're using on our backup servers at the moment. It's actually quite nice having a setup like md(x) -> LVM -> Filesystem (XFS, EXT) as it's possible to expand the raid array and increase/decrease the LVM at any time. We're using XFS so we can't decrease the filesystem (limitation of XFS) but can increase it at any time. So when we need more space we just add more drives, drop them in the RAID array and expand the filesystem. All of which can be done while the system is running.
Thank you for your reply.

I would software raid. I'm currently using LVM on another 3 drives on my system. However, my RocketRaid card is not detected without the drivers installed.

Now I'm able to build the kernel module but when it's built the system hangs on boot with a kernel panic after loading the module. The only way I have been able to fix this is to physically take out the card(so that I can boot) and then delete the module.

Any advice?
 
Old 07-07-2011, 08:25 AM   #10
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
Well, I'll say this. If you do get a good compile of those drivers please let me know! Even though I'm not using them I'd like to have the option (tried following the instructions on their support website and had no more luck with it than you've had.)
 
Old 07-08-2011, 05:09 AM   #11
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by travisdh1 View Post
Well, I'll say this. If you do get a good compile of those drivers please let me know! Even though I'm not using them I'd like to have the option (tried following the instructions on their support website and had no more luck with it than you've had.)
How are you using the drives?

I have dmraid installed but still no drives showing up.
 
Old 07-09-2011, 09:38 PM   #12
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Ive been trying with no success.

I am able to compile the module and load it and I can patch it into the kernel but whenever the card is inserted and the module loads linux cant boot.

I keep getting an error of kernel panic and it shows 2 of my 4 cores on my processor and freezes.

If anyone has any suggestions please let me know.

I also just sent a tec support ticket to HighPoint about the issue but because Im using linux I really dont think they are going to help.
 
  


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
cannot compile rocketraid 1520 module from source on >2.6.17-r8 pauljunod Linux - Kernel 10 05-08-2007 11:14 AM
Having trouble compiling spca5xx module Cage47 Linux - Kernel 1 11-19-2006 09:35 PM
Having trouble compiling omnibook module on toshiba satelite dr_zayus69 Linux - Software 3 06-18-2006 06:47 PM
Trouble Compiling Kernel Module... Elric of Grans Linux - General 2 05-31-2006 12:57 AM
Trouble Compiling Linux Module damonkohler Linux - Software 9 03-05-2006 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration