LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-25-2006, 01:41 PM   #1
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
Installing drivers for a HD controller


I need to install a hard drive controller on Suse 10.1. (Highpoint rocketraid 2220) The mfr. link provides modules, source and instructions.

When I try to insmod the provided suse module I get a "-1 invalid module" error. I assume this means they are no good with my setup and I have to use the source. Yast is worthless as it only shows me the generic sata_mv module which doesn't work.

So from what I can tell, I can use the source to patch the kernel or make a module. I don't care which as long as it works. When I try to make the module, it needs to know where config, version.h, and autoconf.h are. The readme suggests I look in /boot, but they ain't there. When I try to patch the kernal, it also wants a "full kernel source tree" whatever that means.

I am new to linux (aside from the hours I've spent trying to understand this situation) and my patience is running thin with this super-easy operating system. If I can't get this working then my new array will be NTFS. Please help me out here.


Some information:
# uname -r
2.6.16.13-4-default


# /sbin/lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 03)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1a)
00:07.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1a)
00:07.4 Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 50)
00:09.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
00:0a.0 Mass storage controller: Silicon Image, Inc. SiI 3112 [SATALink/SATARaid] Serial ATA Controller (rev 02)
00:0c.0 SCSI storage controller: Marvell Technology Group Ltd. MV88SX6081 8-port SATA II PCI-X Controller (rev 07)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev a1)

Notice how the SATAII controller is not identified correctly.

Last edited by pxumsgdxpcvjm; 08-25-2006 at 02:30 PM.
 
Old 08-25-2006, 02:29 PM   #2
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
Quote:
"-1 invalid module" error.
Nearly all modules have to be built for a specfic kernel. So unless you are using the same version as the one the module was built with it won't work.

Quote:
it needs to know where config, version.h, and autoconf.h are. The readme suggests I look in /boot, but they ain't there.
They are in the boot folder in the source that the kernel was built with.

Quote:
When I try to patch the kernal, it also wants a "full kernel source tree"
This is as it says the source that the kernel was built from. This method would patch whichever compatible kernel source with the correct information for the hardware.

I would suggest that you read this to understand how to build a custom kernel http://www.digitalhermit.com/linux/K...ild-HOWTO.html

 
Old 08-25-2006, 02:45 PM   #3
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Each distribution either comes with the kernel source installed by default, or provides a way of installing it later. I believe SuSE does the latter. Look for a package in your package utility (whatever that may be) called kernel-source (or something similar). If multiple versions of the kernel are available, you want the one closest to and with the same version number as the output from uname.

SuSE probably provides instructions describing how to do this.

Once the kernel source is installed, your module will compile cleanly and easily.

I'd recommend compiling the module as opposed to patching the kernel. It is possible that their patch will not apply cleanly, since they produced it for a different kernel version. Compiling the module, on the other hand, will work with any 2.6.X kernel.
 
Old 08-26-2006, 11:21 AM   #4
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Original Poster
Rep: Reputation: 30
Well, zhangmaike's advice was on the money. After installing 200+ MB of source I was able to compile and install the driver. But it still wasnt working, getting all kinds of timeouts and errors on booting. Plus my drive cage alarm was screaming its head off. So I ghosted back my windows and had the thing installed and working in a few minutes. I'll say nothing more but it should be clear where my loyalties lie at this point.
 
  


Reply



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
MAC-Controller drivers? kiwisaotome Linux - Networking 2 04-10-2006 01:03 PM
KERNELDIR and raid controller drivers melbell Debian 1 12-02-2005 01:35 PM
Drivers for playstation 2 controller linmith Linux - Hardware 1 03-20-2005 09:44 AM
IDE Controller Drivers Giax Linux - Hardware 5 01-18-2005 02:19 PM
Need drivers for HPT374 controller DaDdY SnEb Linux - Hardware 12 09-09-2002 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:52 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
Open Source Consulting | Domain Registration