OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [block/] [README.smart2] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
This driver is for Compaq's SMART2 Intellegent Disk Array Controllers.
2
 
3
WARNING:
4
--------
5
 
6
This code is distributed without warranty.  Use at your own risk.
7
 
8
Installing:
9
-----------
10
 
11
You need to build a new kernel to use this device, even if you want to
12
use a loadable module.  This driver requires Leonard N. Zubkoff's excellent
13
patches to ll_rw_blk.c (to controll the number of scatter/gather elements
14
sent to lower disk drivers).  Visit http://www.dandelion.com/Linux/DAC960.html
15
to get his patches.
16
 
17
Apply the patch to a 2.0.36 kernel after applying Leonard's patch:
18
 
19
# cd linux
20
# patch -p1 
21
# patch -p1 
22
 
23
Then build a new kernel and turn on Compaq SMART2 Disk Array support.
24
Create device nodes for the diskarray device:
25
 
26
# mkdev.ida [ctlrs]
27
 
28
Where ctlrs is the number of controllers you have (defaults to 1 if not
29
specified).
30
 
31
EISA Controllers:
32
-----------------
33
 
34
If you want to use an EISA controller you'll have to turn on EISA support
35
and supply some insmod/lilo paramaters.  If the driver is compiled into the
36
kernel, must give it port/irq data at boot time.  For example, if you had
37
two SMART-2/E controllers, in EISA slots 1 and 2, on irqs 15 and 5 respectively
38
you'd give it a boot argument like this:
39
 
40
        smart2=0x1000,0xf,0x2000,0x5
41
 
42
If you were loading the driver as a module, you'd give load it like this:
43
 
44
        insmod cpqarray.o eisa=0x1000,0xf,0x2000,0x5
45
 
46
You can use EISA and PCI adapters at the same time.
47
 
48
Booting:
49
--------
50
 
51
You'll need to use a modified lilo if you want to boot from a disk array.
52
Its simply a version of lilo with some code added to tell it how to
53
understand Compaq diskarray devices.
54
 
55
Device Naming:
56
--------------
57
 
58
You need some entries in /dev for the ida device.  The mkdev.ida script
59
can make device nodes for you automatically.  Currently the device setup
60
is as follows:
61
 
62
Major numbers:
63
        72      ida0
64
        73      ida1
65
        74      ida2
66
        etc...
67
 
68
Minor numbers:
69
        b7 b6 b5 b4 b3 b2 b1 b0
70
        |----+----| |----+----|
71
             |           |
72
             |           +-------- Partition ID (0=wholedev, 1-15 partition)
73
             |
74
             +-------------------- Logical Volume number
75
 
76
The suggested device naming scheme is:
77
/dev/ida/c0d0           Controller 0, disk 0, whole device
78
/dev/ida/c0d0p1         Controller 0, disk 0, partition 1
79
/dev/ida/c0d0p2         Controller 0, disk 0, partition 2
80
/dev/ida/c0d0p3         Controller 0, disk 0, partition 3
81
 
82
/dev/ida/c1d1           Controller 1, disk 1, whole device
83
/dev/ida/c1d1p1         Controller 1, disk 1, partition 1
84
/dev/ida/c1d1p2         Controller 1, disk 1, partition 2
85
/dev/ida/c1d1p3         Controller 1, disk 1, partition 3

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.