LinuxQuestions.org
Visit Jeremy's Blog.
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 09-26-2005, 09:25 PM   #1
AngryDwarf
LQ Newbie
 
Registered: Sep 2005
Location: My House, in the middle of the street.
Distribution: Fedora 4 currently
Posts: 2

Rep: Reputation: 0
Compiling driver files


I just installed Fedora Core 4.0 on a PIII 512 ram,
I already compiled the 2.6.13 kernel and added in generic scsi support.
I have an Initio 9100w scsi adapter that I am trying to make work. I have some driver files i got from Initio, But I don't know what to do with them. How do I compile them into the kernel?
The files are Ini9100.c Ini9100.h Ini9100.lib.
 
Old 09-28-2005, 07:05 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
huh? The FC4 kernel already comes with scsi support. Usually, scsi devices just work under linux. Before you try anything - make sure it dosn't just work all by itself.

I found this...
Quote:
from: http://www.initio.com/support/
Linux Drivers: Our source code has been included with the kernel source since kernel 2.0.32, you will find our support in the source directory on the CD.
... suggests that the drivers will be compiled into the stock kernel. Alternatively, you can download the source and just recompile you kernel to add initio support. (Unless someone happens to know support has been removed - the website is way out of date.)

And, if you have source code without a makefile or readme in the same tarball, try opening the *.c file in a text editor and reading the comments near the top.

Should there be no comments (very bad programming practise) then you may have to guess ... read the gcc man page (to understand the following). You need gcc to act on the .c file (the *.h file should be mentioned in that file after a #include statement) and you'll have to link in the .lib file. The output should be an object code file with the same name and .o suffix. Stick it with the other modules, then modprobe to insert it into the kernel.

But you shouldn't have to do that.

Generally:
You should really be updating your kernel with yum. As I said, scsi support is already present. Use the yum.conf at www.fedorafaq.org and yum update kernel. (Or yum install yumex and use the gui.)

You should also look at www.mjmwored.org for an excellent install/post install configuration of FC4 (including lots of explainations of what everything does.) And a never-fail howto for installing mplayer.
 
  


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
Compiling Joystick Driver barry2811 Linux - Software 3 06-04-2005 12:00 PM
Compiling Driver for installation bluewall21 Linux - Hardware 4 10-01-2004 09:58 PM
compiling berilios driver.... col.kowalski Linux - General 1 09-30-2004 04:15 AM
compiling video driver, tell me if this is right bosewicht Linux - Newbie 2 09-29-2003 10:38 AM
Compiling A Sound Card Driver From .h And .c Files davescafe Linux - Newbie 1 01-28-2003 07:04 PM

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

All times are GMT -5. The time now is 12:39 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