2004-10-28 14:40:00

by Jim Nelson

[permalink] [raw]
Subject: [PATCH 1/2] to Documentation/cpqarray.txt

Description: General cleanup of Documentation/cpqarray.txt. Removal of old and
obsolete references, removed references to an external patch.

Signed-off-by: James Nelson <[email protected]>

diff -urN --exclude='*~' linux-2.6.9-original/Documentation/cpqarray.txt linux-2.6.9/Documentation/cpqarray.txt
--- linux-2.6.9-original/Documentation/cpqarray.txt 2004-10-18 17:54:29.000000000 -0400
+++ linux-2.6.9/Documentation/cpqarray.txt 2004-10-28 10:28:46.156798094 -0400
@@ -26,31 +26,13 @@
* IDA-2
* IAES

-Installing:
------------
-
-You need to build a new kernel to use this device, even if you want to
-use a loadable module.
-
-Apply the patch to a 2.2.x kernel:
-
-# cd linux
-# patch -p1 <smart2.patch
-
-Then build a new kernel and turn on Compaq SMART2 Disk Array support.
-Create device nodes for the diskarray device:
-
-# mkdev.ida [ctlrs]
-
-Where ctlrs is the number of controllers you have (defaults to 1 if not
-specified).

EISA Controllers:
-----------------

If you want to use an EISA controller you'll have to supply some
-insmod/lilo parameters. If the driver is compiled into the kernel, must
-give it the controller's IO port address at boot time (it is no longer
+modprobe/lilo parameters. If the driver is compiled into the kernel, must
+give it the controller's IO port address at boot time (it is not
necessary to specify the IRQ). For example, if you had two SMART-2/E
controllers, in EISA slots 1 and 2 you'd give it a boot argument like
this:
@@ -59,29 +41,27 @@

If you were loading the driver as a module, you'd give load it like this:

- insmod cpqarray.o eisa=0x1000,0x2000
+ modprobe cpqarray eisa=0x1000,0x2000

You can use EISA and PCI adapters at the same time.

-Booting:
---------
-
-You'll need to use a modified lilo if you want to boot from a disk array.
-Its simply a version of lilo with some code added to tell it how to
-understand Compaq diskarray devices.

Device Naming:
--------------

-You need some entries in /dev for the ida device. The mkdev.ida script
-can make device nodes for you automatically. Currently the device setup
-is as follows:
+You need some entries in /dev for the ida device. MAKEDEV in the /dev
+directory can make device nodes for you automatically. The device setup is
+as follows:

Major numbers:
72 ida0
73 ida1
74 ida2
- etc...
+ 75 ida3
+ 76 ida4
+ 77 ida5
+ 78 ida6
+ 79 ida7

Minor numbers:
b7 b6 b5 b4 b3 b2 b1 b0
@@ -91,7 +71,7 @@
|
+-------------------- Logical Volume number

-The suggested device naming scheme is:
+The device naming scheme is:
/dev/ida/c0d0 Controller 0, disk 0, whole device
/dev/ida/c0d0p1 Controller 0, disk 0, partition 1
/dev/ida/c0d0p2 Controller 0, disk 0, partition 2
@@ -101,3 +81,13 @@
/dev/ida/c1d1p1 Controller 1, disk 1, partition 1
/dev/ida/c1d1p2 Controller 1, disk 1, partition 2
/dev/ida/c1d1p3 Controller 1, disk 1, partition 3
+
+
+Changelog:
+==========
+
+10-28-2004 : General cleanup, syntax fixes for in-kernel driver version.
+ James Nelson <[email protected]>
+
+
+1999 : Original Document


2004-10-28 14:39:56

by Jim Nelson

[permalink] [raw]
Subject: [PATCH 2/2] to Documentation/mkdev.ida

This file is no longer reqired - the MAKEDEV program makes the ida/ nodes automatically.

Apply against 2.6.9.

Description: To remove an obsolete script from the Documentation directory.

Signed-off-by: James Nelson <[email protected]>

diff -urN --exclude='*~' linux-2.6.9-original/Documentation/mkdev.ida linux-2.6.9/Documentation/mkdev.ida
--- linux-2.6.9-original/Documentation/mkdev.ida 2004-10-18 17:53:44.000000000 -0400
+++ linux-2.6.9/Documentation/mkdev.ida 1969-12-31 19:00:00.000000000 -0500
@@ -1,40 +0,0 @@
-#!/bin/sh
-# Script to create device nodes for SMART array controllers
-# Usage:
-# mkdev.ida [num controllers] [num log volumes] [num partitions]
-#
-# With no arguments, the script assumes 1 controller, 16 logical volumes,
-# and 16 partitions/volume, which is adequate for most configurations.
-#
-# If you had 5 controllers and were planning on no more than 4 logical volumes
-# each, using a maximum of 8 partitions per volume, you could say:
-#
-# mkdev.ida 5 4 8
-#
-# Of course, this has no real benefit over "mkdev.ida 5" except that it
-# doesn't create so many device nodes in /dev/ida.
-
-NR_CTLR=${1-1}
-NR_VOL=${2-16}
-NR_PART=${3-16}
-
-if [ ! -d /dev/ida ]; then
- mkdir -p /dev/ida
-fi
-
-C=0; while [ $C -lt $NR_CTLR ]; do
- MAJ=`expr $C + 72`
- D=0; while [ $D -lt $NR_VOL ]; do
- P=0; while [ $P -lt $NR_PART ]; do
- MIN=`expr $D \* 16 + $P`
- if [ $P -eq 0 ]; then
- mknod /dev/ida/c${C}d${D} b $MAJ $MIN
- else
- mknod /dev/ida/c${C}d${D}p${P} b $MAJ $MIN
- fi
- P=`expr $P + 1`
- done
- D=`expr $D + 1`
- done
- C=`expr $C + 1`
-done