LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-16-2009, 05:57 PM   #1
KhurramF
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Rep: Reputation: 0
Unhappy Cannot compile driver for Promise Fasttrak TX4200


I have a Ubuntu 9.04 system and have added a Promise Technologies Fasttrak TX4200 (soft)raid controller to it. Promise Technologies does not provide a driver for Ubuntu (only for RH and Suse), but it does provide a source for compiling it. The readme for the archive is as follows


Quote:
1.) Please make sure you have linux kernel source code at ("/usr/src/linux"),
and gcc version is 3.x by issuing Linux command :
# gcc -v

2.) Set Kernel Compiling Environment on Linux System
# cd /usr/src/linux/, if no linux exist, make a symbolic link to proper linux source directory.
# make mrproper
# Please note and make sure the release version string in "/usr/src/linux/Makefile" is match with the kenel version string you want to build with, else the build or the insert will be NOT properly.
# "make config" or "make menuconfig" or "make xconfig"
To set kernel config items as you wish as below,
Processor type and features/Processor family
Processor type and features/High Memory Support
Processor type and features/Symmetric multi-processing support
# make dep clean

3.) Goto directory where PROMISE driver codes is located and edit Makefile.

4.) Choose right parameters in Makefile, default parameter is GENERIC.
#$(CC) $(GENERIC) -c $*.c
$(CC) $(SuSE) -c $*.c
#$(CC) $(TURBO) -c $*.c
#$(CC) $(MDK) -c $*.c
ex: GENERIC for most common case
SuSE for SuSE linux common case
TURBO for Turbo linux common case
MDK for Mandrake linux common case

Or modify it for suitable your system, each item only one can be used.

5.) Issue Linux command to make FastTrak(UP/SMP) driver: ftsata2.o

#make or #make all

If Dual Processor system

#make smp
I followed the instructions 1 to 2. Then I tried to run "make" but it gave the following error:


Quote:
Makefile:57: *** Linux kernel source not configured - missing config.h. Stop.
I have checked the /usr/src/linux folder for config.h files and have found the following:

./include/config/x86/find/smp/config.h
./include/config/i2o/config.h
./net/tipc/config.h
./fs/dlm/config.h

I think the first line should be the config.h file it is looking for. I have tried to run both "make" and "make smp", but the error message is the same.

Can someone please tell me how to fix this?

Thanks,
Khurram.
 
Old 09-17-2009, 05:31 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Re-compile the kernel and include the module for your Promise controller.

From what I read, they are not reliable, so you may want to pick a different brand.
 
Old 09-18-2009, 05:49 AM   #3
KhurramF
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Electro View Post
Re-compile the kernel and include the module for your Promise controller.
You mean I cant have a loadable module for the Promise controller?

Quote:
Originally Posted by Electro View Post
From what I read, they are not reliable, so you may want to pick a different brand.
Do you mean the module for the Fasttrak 4200 is not reliable, or is it the hardware?

Thanks.
 
Old 09-19-2009, 12:44 AM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I guess I was not clear. The kernel has support, but your distribution did not include it for whatever reason. It could be your distribution did not include it because stability problems, not enough room, or a conflict with the SATA core of the kernel.

You can re-compile the kernel with support for your card by enabling the option as a module or built-in. You should not have to waste your time compiling the code from Promise because it is already in the kernel.

If you insist of using the source code from Promise, the code probably is compatible with kernel version 2.6.9, but not any higher unless you want to patch it to make it compatible with today's kernel versions.
 
Old 09-19-2009, 07:16 PM   #5
KhurramF
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Original Poster
Rep: Reputation: 0
I have decided to forgo the drivers from Promise Technologies and use mdadm with the raid controller. Thanks for your help.
 
Old 09-19-2009, 11:21 PM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Suite your self. The driver or module is already in the kernel. Like I said, you just need to re-compile the kernel with support for your Promise controller because the kernel already includes it. Using driver from Promise is a waste of time because it only supports up to kernel version 2.6.9. Now it is kernel version 2.6.31.

FYI, that is not a RAID controller. It is just a storage controller.
 
  


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
Fasttrak TX4200 Driver for Fedora 4 OggysDnis Fedora 0 02-06-2006 12:12 PM
Fasttrak TX4200 Driver for Fedora 4 OggysDnis Red Hat 0 02-06-2006 11:29 AM
Problem with Promise FastTrak 4200 driver under Debian Jason_zwf Debian 1 05-16-2005 11:20 AM
Problem with Promise FastTrak 4200 driver Jason_zwf Linux - Hardware 0 05-15-2005 10:05 PM
MD10 Promise FastTrak raid driver compile problem yvesm Mandriva 1 03-16-2004 07:40 AM

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

All times are GMT -5. The time now is 10:59 PM.

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