Personal tools
You are here: Home Unix Linux FastTrak with Linux
Document Actions

FastTrak with Linux

by admin last modified 2008-06-14 20:26

FastTrak with Linux Kernel 2.4

Hello Michael,
 
I've seen on
http://lists.debian.org/debian-user-german/2004/debian-user-german-200403/ms
g13588.html
  that you had a problem which I have myself now... Cause I'd
like to install a Linux Security Tools Distribution (the Knoppix STD 0.1) on
a desktop with 2 disks configured as a RAID 1 on a Promise FastTrack SATA
S150 TX2Plus. The problem is that Linux doesn't see the hard drives...
 
So I would be happy if your answer to tell me what you did to solve your old
problem...
 
Thnaks in advance for your help,
 
BOURLA Frédéric

ESSILOR (SUISSE) SA
Get the device driver http://www.promise.com/support/file/driver/3_ftsrc-b25.tgz and extract it in /usr/src.
This driver is a piece of sh*t :-( It is not sufficient to have the kernel headers installed, you need the complete kernel sources for your current kernel! But you can cheat! If you don't have the matching kernel tree for your running kernel then try to install the right kernel source and overwrite the include directory with the headerfiles for _your_ kernel! You need at least /usr/src/linux/drivers/scsi and /usr/src/linux/include.
delphin:/tmp/linux-2.4.25# cd /usr/src/ftsrc/
delphin:/usr/src/ftsrc# make
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE  -c fasttrak.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE  -c ftlog.c
ld -r -o FastTrak.o wrapper.o fasttrak.o ftlog.o ftlib.o ; rm -f fasttrak.o

delphin:/usr/src/ftsrc# cp FastTrak.o /lib/modules/`uname -r`kernel/drivers/scsi/
delphin:/usr/src/ftsrc# depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.25-rc1/kernel/drivers/scsi/FastTrak.o
Ignore this error as long as you can load the module:
delphin:/usr/src/ftsrc# insmod FastTrak
Using /lib/modules/2.4.25-rc1/kernel/drivers/scsi/FastTrak.o

delphin:/usr/src/ftsrc# dmesg
PROMISE FastTrak Series Linux Driver Version 1.02.0.25
scsi0 : FastTrak
  Vendor: Promise   Model: 1X2 Mirror/RAID1  Rev: 1.10
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 156301312 512-byte hdwr sectors (80026 MB)
 sda: sda1 sda2 < sda5 >
scsi : 0 hosts left.
PROMISE FastTrak Series Linux Driver Version 1.02.0.25
scsi0 : FastTrak
  Vendor: Promise   Model: 1X2 Mirror/RAID1  Rev: 1.10
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 156301312 512-byte hdwr sectors (80026 MB)
 sda: sda1 sda2 < sda5 >


delphin:~# cat /proc/scsi/FastTrak/*
PROMISE FastTrak Series Linux Driver Version 1.02.0.25
Adapter1 - FastTrak TX2000, IRQ(11)
Array    - Array[1] : 1X2 Mirror (OK)
Drive    -
  1: ST380011A      Pri/Master Array[1]  80026MB BASE(0x4400) BM(0x3400) UDMA5
  3: ST380011A      Sec/Master Array[1]  80026MB BASE(0x3c00) BM(0x3408) UDMA5

That's all, nearly simple! If you want to boot from this RAID you have to use a initrd with the FastTrak.o module included!

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: