LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 12-01-2004, 05:53 PM   #1
The Belgain
LQ Newbie
 
Registered: Dec 2004
Posts: 17

Rep: Reputation: 1
Errors compiling Highpoint drivers from source under Fedora...


Hi there... first time posted, so please go easy on me

I have a Highpoint Rocket 1540 controller card. This is a 4-port SATA PCI card. The problem I'm having is that with the default driver which Fedora Core 3 uses with this card, the computer will hang at bootup if there are any drives connected to the card (the card does post and detect the drives properly in BIOS though). The computer boots up fine if there are no drives connected to the card.

So I tried to remedy this by compiling the drivers provided by highpoint, from source. This way I'll be sure that the right drivers are being used. I've followed the instructions in the readme included with the drivers: I've unpacked the linux kernel source (in directory /usr/src/linux-2.6.9), and have run "make oldconfig", which seems to work. When I try to run "make dep" (which is suggested in the highpoint readme) I get a "this is no longer necessary" message from the make process. Fair enough, I assume. When I run the make process for the Highpoint drivers, I get a bunch of compile errors, starting with "cannot find kernel header files" (the rest of the errors seem like they are related to this).

It does seem that some header files are missing. What am I doing wrong in building them?

Here are the errors I get when running the make for the Highpoint drivers:

Code:
[root@localhost hpt1540]# make KERLENDIR=/usr/src/linux-2.6.9
cat: /usr/src/linux/include/linux/version.h: No such file or directory
gcc -DDRIVER_VERSION=\"1.0\" -DLIST_H_INCLUDED -DMODVERSIONS -DMODULE -DLINUX -D_LINUX_ -D__KERNEL__=1 -DCONFIG_PCI  -Wall -O2 -Wstrict-prototypes -fomit-frame-pointer -I. -I/usr/src/linux/include -I/usr/src/linux/drivers/scsi -c hpt.c -o hpt.o
In file included from hpt.c:1:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
In file included from hpt.c:8:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from hpt.c:13:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
Here's the output of lspci, in case it's relevant; this is an old p2 machine (it'll be used only as a fileserver...).

Code:
[root@localhost hpt1540]# /sbin/lspci
00:00.0 Host bridge: Intel Corp. 440LX/EX - 82443LX/EX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corp. 440LX/EX - 82443LX/EX AGP bridge (rev 03)
00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 01)
00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:0d.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 42)
00:0f.0 RAID bus controller: Triones Technologies, Inc. HPT374 (rev 07)
00:0f.1 RAID bus controller: Triones Technologies, Inc. HPT374 (rev 07)
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro AGP 1X/2X (rev 5c)
Cheers for your help guys... really useful forums by the way. A wealth of useful info here, but I just can't seem to find anything which has helped me sort this out...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent...RTLinux on Fedora Core 3...Errors in Compiling kumarnine Linux - Software 2 09-19-2005 11:13 PM
Fedora(any) + Highpoint 372 onboard chipset m0ridin Fedora 2 10-26-2004 12:57 AM
HighPoint HPT374 RAID drivers mdmbkr Linux - Hardware 37 10-01-2004 11:34 AM
Fedora Core 2 and Highpoint RAID xsabre Linux - Hardware 2 06-08-2004 02:41 PM
RH 8/9 Highpoint Drivers RHrulz Linux - Hardware 2 05-23-2003 10:40 AM


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