RE: Promise RAID Drivers (Kamil Staniucha - Ziaja Ltd.)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



1) Below is the BASH script that I use to configure the custom kernel with the Promise
driver. Please look it over carefully. There might be some hints to help you compile it
yourself.

The V1.2.25 drivers that crashed on Boot had the README date of 2002/11/06. The ftlib.o
file had a date of 11/5/2002 and a byte size of 93,560.

2) I uploaded the Promise FastTrak Partial Open Source RAID driver Ver 1.02.0.21 to

http://www.AldenHosting.com/raid/promise_raid_1.2.21.tar.gz


----------------------------------------------------------------------------------------
----------------------
#/bin/sh

ver=2.4.20                    # Base Linux Kernel version
extraversion=-0smp            # Added to Makefile EXTRAVERISON  i.e.  '2.4.20-0smp'
ext_ver=-0smp                # Added to {ver} to make Full version directory/files names
baseDir=~myhome/            # Under which base directory the Linux Kernel Source Code is
located
fasttrak_dir=~myhome/promise_raid    # Where the Promise FastTrak Open Source Code is
located


echo ----------------------------------------------------------
echo
echo Before you start this script, the Linux kernel sources and
echo   Promise FastTrak Partitial Open Source RAID driver source V 1.2.0.21
echo   must have already been unTarred to the Linux system.
echo
echo   You must edit this script to tell it what Linux verison your are
echo  compiling and which directory the source code for Linux and FastTrak is located.
echo
echo
echo This Script will call 'make menuconfig' to allow you to check the custom
configuration.
echo
echo   Processor type and features  ---
echo '  Pentium-III/Celeron Coppermine  Processor family'
echo '   [*] Machine Check Exception'
echo '  <M> /dev/cpu/microcode - Intel IA32 CPU microcode support'
echo '  <M> /dev/cpu/*/msr - Model-specific register support'
echo '  <M> /dev/cpu/*/cpuid - CPU information support'
echo '  4GB High Memory Support'
echo '  [*] HIGHMEM I/O support'
echo '  [*] MTRR Memory Type Range Register support'
echo '  [*] Symmetric multi-processing support'
echo
echo Loadable module support  ---
echo '  [*] Enable loadable module support'
echo '  [ ]   Set version information on all module symbols'
echo '  [*]   Kernel module loader'
echo
echo  SCSI support  ---
echo '  <*> SCSI support '
echo '  <*> SCSI disk support'
echo '  SCSI low-level drivers  ---'
echo '   <M> Promise GPL FastTrakRAID support '
echo
echo Block devices  ---
echo '  <M> Loopback device support'
echo '  <M> Network block device support'
echo '  <*> RAM disk support'
echo '  4096   Default RAM disk size'
echo '  [*]   Initial RAM disk initrd support'
echo
echo  Network device support DEV1 3COM 3c59x   Vortex
echo  Network device support N1 N2 Ethernet 10 or 100Mb EtherExpressPro 100
echo
#
#        Alden Hosting LLC  Dennis  Chief Tech Guy
#
#   Linux Custom Configuration to upgrade an existing Linux system with a new
#  Linux kernel and the Promise FastTrak Partitial Open Source RAID driver
#   Ver 1.02.0.21
#  The Linux root (/) and boot (/boot) partitions are on
#  a FastTrak RAID 1 (Mirror) disks.  This requires that the FastTrak module
#  is loaded with the initrd RAM disk so that Linux can see the
#  FastTrak fake-SCSI devices.
#
#   HARDWARE:
# Intel SCB2 Server motherboard
# Promise 20267 onboard ATA RAID chip
# Dual PIII 1.13 Gig Hz Cpus   (Enable SMP)
# 1 Gig RAM
# Dual Seagate 80 Gig drives (RAID 1 Mirror)
#
#
echo
echo ----------------------------------------------------------
echo  Press the 'Enter Key' to continue
read  inp



source_dir=/usr/src/linux                  # Soft Link to where the real source code is
located
kernel_dir=${baseDir}linux-${ver}


full_ver=${ver}${ext_ver}

rm --force ~myhome/kernel.log


if [ ! -d $fasttrak_dir ]
then
 echo Missing the $fasttrak_dir Directory
 exit
fi

if [ ! -d ${kernel_dir} ]
then
        echo Missing the ${kernel_dir} Directory
 echo This means that you did NOT already run make menuconfig
        exit
fi


echo Put a link to the source at ~myhome/linux-xxxxx  to  /usr/src/linux  | tee -a
~myhome/kernel.log
rm --force  /usr/src/linux
ln -s   ${kernel_dir}  /usr/src/linux


echo --------- Modify the Makefile to have a unique EXTRAVERSION ---------------------
| tee -a ~myhome/kernel.log
eval  cat ${source_dir}/Makefile | sed -e s/^EXTRAVERSION.*/EXTRAVERSION=$extraversion/
> /tmp/Make
cp /tmp/Make  ${source_dir}/Makefile





echo --------- Modify the /usr/src/linux/drivers/scsi/Makefile to include
SCSI_FASTTRAK ---------------------  | tee -a ~myhome/kernel.log
if ! grep -c SCSI_FASTTRAK ${source_dir}/drivers/scsi/Makefile
then
echo Updating the ${source_dir}/drivers/scsi/Makefile   | tee -a ~myhome/kernel.log
cat ${source_dir}/drivers/scsi/Makefile | sed -e '/SCSI_AHA1740/a\
obj-$(CONFIG_SCSI_FASTTRAK)     +=  FastTrak.o ' > /tmp/scsi
cp /tmp/scsi  ${source_dir}/drivers/scsi/Makefile
else
 echo The ${source_dir}/drivers/scsi/Makefile is ALREADY Updated  | tee -a
~myhome/kernel.log
fi



echo --------- Modify the /usr/src/linux/drivers/scsi/Config.in  to include
SCSI_FASTTRAK ---------------------  | tee -a ~myhome/kernel.log
if ! grep -c SCSI_FASTTRAK ${source_dir}/drivers/scsi/Config.in
then
echo Updating the ${source_dir}/drivers/scsi/Config.in  | tee -a ~myhome/kernel.log
cat ${source_dir}/drivers/scsi/Config.in | sed -e '/SCSI_DPT/a\
dep_tristate "Promise GPL FastTrak RAID support " CONFIG_SCSI_FASTTRAK $CONFIG_SCSI  ' >
/tmp/scsi

cp /tmp/scsi  ${source_dir}/drivers/scsi/Config.in
else
        echo The ${source_dir}/drivers/scsi/Config.in is ALREADY Updated  | tee -a
~myhome/kernel.log
fi


pushd ${source_dir}

make  clean  2>&1 | tee -a ~myhome/kernel.log

make menuconfig
popd


echo ------ Compile the FastTrak Driver with correct gcc commands -----------------   |
tee -a ~myhome/kernel.log
pushd ${fasttrak_dir}

make clean   2>&1 | tee -a ~myhome/kernel.log
make modversionoff  2>&1 | tee -a ~myhome/kernel.log

popd




pushd ${source_dir}

make  dep   2>&1 | tee -a ~myhome/kernel.log

make  clean   2>&1 | tee -a ~myhome/kernel.log



echo Copy the FastTrak.o Module .. the Linux Kernel 'make clean' erases all object files
| tee -a ~myhome/kernel.log
echo Rename the ft.o Module to FastTrak.o Module | tee -a ~myhome/kernel.log
echo   cat /proc/scsi/FastTrak/0 will give you the Status of the RAID drive
cp  ${fasttrak_dir}/ft.o   ${source_dir}/drivers/scsi/FastTrak.o





echo '-------------- make bzImage  ' | tee -a ~myhome/kernel.log
make  bzImage     2>&1 | tee -a ~myhome/kernel.log

echo '-------------- make modules  ' | tee -a ~myhome/kernel.log
make  modules 2>&1 | tee -a ~myhome/kernel.log



echo '-------------- make modules_install  ' | tee -a ~myhome/kernel.log
make  modules_install   2>&1 | tee -a ~myhome/kernel.log



echo '-------------- mkinitrd  ' | tee -a ~myhome/kernel.log
/sbin/mkinitrd  -f -v  /boot/initrd-${full_ver}.img   ${full_ver}   2>&1 | tee -a
~myhome/kernel.log


echo '-------------- make install  ' | tee -a ~myhome/kernel.log
make  install   2>&1 | tee -a ~myhome/kernel.log  2>&1 | tee -a ~myhome/kernel.log


echo '-------Check if FastTrak Module is happy with symbols' | tee -a ~myhome/kernel.log
echo '-------  depmod -v -n -e -F /boot/System.map ' | tee -a ~myhome/kernel.log
/sbin/depmod -v -n -e -F /boot/System.map
/lib/modules/${full_ver}/kernel/drivers/scsi/FastTrak.o   2>&1 | tee -a
~myhome/kernel.log


popd




echo ----------------------------------------------------------
echo
echo  Now you Must edit the /etc/lilo.conf file
echo  And then do /sbin/lilo before you reboot
echo
echo 'image=/boot/vmlinuz-2.4.20-0smp'
echo '  label=2.4.20smp'
echo '  initrd=/boot/initrd-2.4.20-0smp.img'
echo '  read-only'
echo '  root=/dev/sda7'
echo '  append="ide0=0x1f0,0x3f6,14 ide1=0x170,0x376,15 ide2=0 ide3=0 ide4=0 ide5=0
ide6=0 ide7=0 ide8=0 ide9=0"'
echo
echo ----------------------------------------------------------
echo  Please Check for errors in the ~myhome/kernel.log file
echo
echo ----------------------------------------------------------



Dennis
Alden Hosting LLC
http://www.AldenHosting.com


-----Original Message-----
From: ataraid-list-admin@xxxxxxxxxx
[mailto:ataraid-list-admin@xxxxxxxxxx]On Behalf Of
ataraid-list-request@xxxxxxxxxx
Sent: Thursday, February 06, 2003 12:14 PM
To: ataraid-list@xxxxxxxxxx
Subject: Ataraid-list digest, Vol 1 #406 - 2 msgs


Send  submissions to
	ataraid-list@xxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	https://listman.redhat.com/mailman/listinfo/ataraid-list
or, via email, send a message with subject or body 'help' to
	ataraid-list-request@xxxxxxxxxx

You can reach the person managing the list at
	ataraid-list-admin@xxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ataraid-list digest..."


Today's Topics:

   1. RE: Promise RAID Drivers (Kamil Staniucha - Ziaja Ltd.)
   2. Re: Kernel panic 72:01 more questions (Albert Dengg)

--__--__--

Message: 1
From: "Kamil Staniucha - Ziaja Ltd." <admin@xxxxxxxxxxxx>
To: <ataraid-list@xxxxxxxxxx>
Cc: "'Support at Alden Hosting'" <support@xxxxxxxxxxxxxxxx>,
	"'freaky'" <freaky@xxxxxxxxxxxxx>
Subject: RE: Promise RAID Drivers
Date: Thu, 6 Feb 2003 12:09:06 +0100
Reply-To: ataraid-list@xxxxxxxxxx

This is a multi-part message in MIME format.

------=_NextPart_000_0041_01C2CDD8.8C2796F0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I have the same problem with FastTrak 100 and Promise's Partial Open
Source Code V 1.02.0.25 to boot.
It compiled OK, but during boot up it always dumped the Stack/Registers
in their bInitRaid routine.
Kernel 2.4.20, Intel SCB2 ATA, single Pentium III 1,13 GHz, Promise
20267 (FastTrak100) built in.

Does anybody know where is the earlier driver version of Promise's
source code available (for example 1.02.021 mentioned
by Dennis (Chief Tech Guy Alden Hosting LLC) or source v. 1.02.022 which
is provided by Promise as compiled module
for RH 7.3)?

Attn "Freaky" , the source you've send me causes dump. It seems to be v.
1.02.025. (the files inside are mostly dated as 30 November ).
I've finally come to the step of loading FastTrak.o module (I've found
out that SCSI support must be compiled as kernel built in, not module)

Could anybody help me ?

Thanks a lot in advance.

Kamil

mailto:admin@xxxxxxxxxxxx




------=_NextPart_000_0041_01C2CDD8.8C2796F0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Wiadomo&#347;&#263;</TITLE>

<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D538275010-06022003>I have =
the same=20
problem with FastTrak 100 and <FONT size=3D2>Promise's Partial Open =
Source Code V=20
1.02.0.25 to boot.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D538275010-06022003><FONT =
size=3D2>It=20
compiled OK, but during boot up it always dumped the Stack/Registers in =
their=20
bInitRaid routine.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D538275010-06022003>Kernel =
2.4.20, Intel=20
SCB2 ATA, single Pentium III 1,13 GHz, Promise 20267 (FastTrak100) built =

in.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D538275010-06022003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D538275010-06022003>Does =
anybody know=20
where&nbsp;is the earlier driver version of Promise's source code=20
available&nbsp;(for example 1.02.021 mentioned</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D538275010-06022003>by=20
Dennis&nbsp;(<FONT size=3D2>Chief Tech Guy Alden Hosting LLC) or source =
v.=20
1.02.022 which is provided by Promise as compiled module=20
</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D538275010-06022003>for RH =

7.3)?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D538275010-06022003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D538275010-06022003><U>Attn "Freaky"</U>=20
,<EM> the source you've send me causes dump. It seems to be v. 1.02.025. =
(the=20
files inside are mostly dated as 30 November ).</EM></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D538275010-06022003><EM>I've finally=20
come to the step of loading FastTrak.o module (I've found out that SCSI =
support=20
must be compiled as kernel built in, not =
module)</EM></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D538275010-06022003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D538275010-06022003>Could =
anybody help=20
me ?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D538275010-06022003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D538275010-06022003>Thanks =
a lot in=20
advance.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D538275010-06022003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D538275010-06022003>Kamil</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D538275010-06022003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2><SPAN =
class=3D538275010-06022003><A=20
href=3D"mailto:admin@xxxxxxxxxxxx";>mailto:admin@xxxxxxxxxxxx</A></SPAN></=
FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D538275010-06022003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D538275010-06022003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D538275010-06022003></SPAN></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0041_01C2CDD8.8C2796F0--




--__--__--

Message: 2
Date: Thu, 6 Feb 2003 16:59:29 +0100
From: Albert Dengg <a_d@xxxxxx>
To: ataraid-list@xxxxxxxxxx
Cc: admin@xxxxxxxxxxxx
Subject: Re: Kernel panic 72:01 more questions
Reply-To: ataraid-list@xxxxxxxxxx

Hi
I'm not really an expert on the technical details if the driver but I'm
running an PDC20265R with a relative good success for some time now and
i noticed the same problems you mentioned when I tried to use the acpi
patch for kernel 2.4.19...
and there is no need for scsi in the kernel if you use the opensource
ataraid driver.
The only thing I was not able to get working was booting win2k from the
array if the lilo is installed in the MBR of the array.

I hope it helps...

mfg Albert
--
Albert Dengg <a_d@xxxxxx>





--__--__--

_______________________________________________

Ataraid-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/ataraid-list


End of Ataraid-list Digest





[Index of Archives]     [Linux RAID]     [Linux Device Mapper]     [Linux IDE]     [Linux SCSI]     [Kernel]     [Linux Books]     [Linux Admin]     [GFS]     [RPM]     [Yosemite Campgrounds]     [AMD 64]

  Powered by Linux