Driver for Adaptec 154x and compatible SCSI host adapters (QNX)
Fsys.aha4scsi [general_options] [fsys fsys_options] [aha4scsi aha4scsi_options]...
If specified, the general_options must precede any fsys or aha4scsi options:
The unit can be one of the following combinations (the number of commas affects how the unit information is interpreted; see also the Examples section):
Specify | Meaning |
---|---|
controller,target,lun | fully specified controller, target, and LUN |
controller,target | equivalent to controller,target,0 |
target | equivalent to 0,target,0 |
type | String equivalent |
---|---|
0 | direct-access (e.g. hard disk) |
1 | sequential-access (e.g. tape) |
2 | printer |
3 | processor |
4 | WORM |
5 | CD-ROM |
6 | scanner |
7 | optical |
8 | medium_changer |
9 | communications |
Not all of the above types are currently supported by the Filesystem Manager. See the -n option.
The fsys_options control the driver's interface to Fsys. If specified, they must follow the fsys keyword:
The value of num is the sum of all the buffers required for SCSI units that use sectors larger than 512 bytes. To obtain the buffer required for a unit, you must use the following formula:
buf = (2*(sector_size / 512))
The value that should be used for num will be the sum of the results from all units.
Some ISA motherboards have problems when on-board DMA and bus-mastering DMA occur concurrently. To avoid those problems, Fsys drivers which use DMA perform I/O concurrently only if the -d option is specified to either or both drivers. In general, you shouldn't use -d on an ISA machine if the floppy is going to be used at the same time as the SCSI hard disk. This option may be used safely on MCA and EISA machines.
By default, the driver assigns names as follows:
type | String equivalent | Default name |
---|---|---|
0 | direct-access (e.g. hard disk) | hd |
1 | sequential-access (e.g. tape) | tp |
4 | WORM | wo |
5 | CD-ROM | cd |
7 | optical | mo |
As in the -a general option, you can specify the type using either the number or its string equivalent.
To have the driver ignore a type of device, specify an empty setting. For example, to ignore hard disks, specify -n 0.
Use this option with care since bad blocks could be erroneously reported by the device if the SCSI bus isn't properly terminated. If this occurs and you've specified -r, the defect-mapping table will be filled unnecessarily.
The aha4scsi_options control the driver's interface to the AHA 4 series controllers. If you've installed multiple controllers, you can repeat these options for each controller. Remember, however, to specify the aha4scsi keyword before each controller's set of options.
You should specify this option for any controller whose built-in scan may ignore removable media.
If you have removable hard disks and don't want to use the -f option with the 1540C controller, you must enable the controller's advanced configuration option "Support Removable Disks under BIOS as Fixed Disks."
If you specify -f and you use the mount command in your boot image or sysinit file, you may need to specify the -w (wait) option to mount. The full scan may take longer than mount's default wait time.
You may need to specify this option if you've also specified -f. By default, the driver sets the maximum number of units (devices) to the number of units found during the built-in scan. But with -f, the driver sets the maximum number of units to 4.
Fsys.aha4scsi is the driver for the Adaptec 154x and compatible SCSI disk controllers. The controller models support by this driver include, but are not necessarily limited to, these models:
Manufacturer | Controller |
---|---|
Adaptec | AHA-1540 |
Adaptec | AHA-1540A/1542A |
Adaptec | AHA-1540B/1542B |
Adaptec | AHA-1540C/1542C |
Adaptec | AHA-1540CF/1542CF |
Adaptec | AHA-1640 |
Adaptec | AHA-1740A/1742A (in 1540 emulation mode only) |
Buslogic | BT-440C |
Buslogic | BT-542B |
Buslogic | BT-542D |
Buslogic | BT-545S |
Buslogic | BT-545C |
Buslogic | BT-440C |
Buslogic | BT-445C |
Buslogic | BT-646S |
Buslogic | BT-747S |
Buslogic | BT-946C |
Fsys.aha4scsi scans for controllers in the command-line sequence given by the -a option. If no -a option is given, the driver scans for controllers at the following hex addresses, in order:
Controllers are numbered from 0 to n, in the order they're found.
For each controller, the driver performs a scan, looking for installed units. All targets are scanned (0 to 7) and for each target, each LUN (Logical Unit Number) is scanned (0 to 7). Devices are numbered starting from 0, and each type of device is numbered separately. For example, if you have a hard disk and a CD-ROM device, they'll be numbered hd0 and cd0, respectively.
The Filesystem Manager supports only the following types of SCSI units:
If a tape unit is found during the driver's scan or if you specify a sequential-access unit with the -a general option, two block special files are created under /dev. By default, they're named /dev/tp0 and /dev/tpr0. Both these files reference the same physical drive, but /dev/tpr0 will perform a rewind on a close.
To boot from a unit connected to the controller, make sure the controller is configured for a 64-head BIOS or specify the driver's fsys -h option. |
Support all AHA 4 series controllers:
Fsys.aha4scsi
Register the direct-access unit as /dev/hardn and the sequential-access unit as /dev/tapen:
Fsys.aha4scsi fsys -n direct=hard -n seq=tape
Support a single AHA controller at address 0x334 and run quietly. Register direct-access units (e.g. hard disks) as /dev/scsin:
Fsys.aha4scsi -q fsys -n 0=scsi aha4scsi -a 334
Use sixteen 512-byte deblocking buffers for two CD-ROMs that each use 2048-byte sectors:
Fsys.aha4scsi fsys -B 16
In the above example, the argument for -B was calculated as follows:
Support all AHA 4 series controllers and a CD-ROM that has a SCSI target ID of 4 (in case the CD-ROM isn't powered up when the driver starts, we've used the -a option):
Fsys.aha4scsi -a 4=CD
If you had two SCSI controllers and the CD-ROM was connected to the second one (determined by the driver's scan), you would modify the above command as follows:
Fsys.aha4scsi -a 1,4=CD
Fsys.aha4scsi closes its standard input, standard output and standard error immediately after completing its initializations. Error messages may be produced during the initialization phase and will be written to standard error.
Fsys.aha4scsi will cause Fsys to adopt various block special devices under /dev. These devices will normally be named hdn, where n is the physical unit number of the device. The base portion of this filename (hd) may be overridden by the -n option.
Fsys.aha4scsi will terminate only if an error occurs during startup, or if it has successfully forked itself upon startup because it had not been initially started in the background.
Don't use slay to shut down a filesystem driver! If you do, new drivers may not be able to load properly and Fsys itself may experience internal errors.
If you need to shut down a filesystem driver, follow the steps in the "Driver shutdown" section in the documentation for Fsys.
AHA-1540A/1542A Technical Reference (available from Adaptec)