
![]() | The information provided below applies to the UNIX versions of EasyCopy. |
![]() | You will normally need root access to setup a SCSI device. |
EasyCopy requires a SCSI driver configured into the UNIX kernel. This driver is normally preconfigured. The information provided here is for reference and can be used if you need to modify the setup of a SCSI device.
Refer also to
Normally the device is named /dev/cam and is created when you boot the system. If the device is not present, you can make a device using the mknod command (requires root access):
# mknod /dev/cam c 30 0
# chmod 666 /dev/cam
The major number, 30, specifies that the device uses the UAgt driver; the minor number, 0, is not used.
SCSI devices are located in /dev/scsi. Normally, only devices for logical unit number zero (LUN = 0) are included. If you need to make your own device, for example LUN = 3 and SCSI ID = 6, use mknod (requires root access):
# mknod /dev/scsi/scsi63 c 105 0x201630
# chmod 666 /dev/scsi/scsi63
The major number, 105, specifies that the device uses the sctl driver.
The minor number, 0x201630, is constructed from the hardware path for the SCSI adapter (first three digits, 201) followed by the SCSI ID (6), the LUN (3) and finally a zero (0). The hardware path for the SCSI adapter may be different on your system, use the ioscan command (/etc/ioscan) to check this.
Ensure that the SCSI ID do not conflict with other hardware; you can use ioscan to check this. Refer also to man pages for scsi_ctl, mknod, and ioscan.
Proceed as follows to extract the information you need for the printer and lad driver configuration:
First, check the workstation's SCSI setup:
$ lsparent -C -H -k scsi
This creates a list with one line per SCSI controller, for example:
scsi0 Available 00-00-0S Standard I/O Controller
Next, check which SCSI target ID's are in use:
$ lsdev -C -H -s scsi
You get a list with one line per device, for example:
name status location description
hdisk0 Available 00-00-0S-0,0 8.0 GB SCSI Disk Drive
cd0 Available 00-00-0S-2,0 Multimedia CD-ROM Drive
rmt0 Available 00-00-0S-4,0 Other SCSI Tape Drive
In this example there are three devices on controller scsi0; their target ID's are 0, 2, and 4, and the logical unit number is 0 in all cases.
To install the lad driver proceed as follows (requires root access):
First, extract files from the tar archive ladscsi.tar found in the bin/aix4 directory:
# cd /usr/lpp/easycopy/sys/bin/aix4
# tar xvf ladscsi.tar
This creates a subdirectory ladscsi containing scripts for installing and removing the driver. Change to this directory:
# cd ladscsi
Install the SCSI driver; type for example:
# ./install.scsi 5 0 0
This copies the lad driver executables to the correct system directories, and configures the device /dev/lad0 for SCSI target ID=5, LUN=0 on the scsi0 controller.
Verify that the lad0 device is properly configured:
# lsattr -E -l lad0
Finally, in order to make the device available after a reboot, you must insert the following line in /etc/inittab:
ecprint:2:once:/etc/mkdev -l lad0
To change the SCSI target ID on your printer you must power off like when you first installed it. After reboot reconfigure the lad0 device to the new ID, for example:
$ chdev -l lad0 -a "scsi_id=6"
Power off is not required to change the logical unit number:
$ chdev -l lad0 -a "lun_id=3"
To uninstall the lad driver and remove the lad0 device, use:
# .../bin/aix4/ladscsi/remove.scsi
SCSI devices are located in /dev/scsi.
The generic driver must be linked into the kernel:
Edit the file /usr/sysgen/system and locate the line
USE: ds
If this line is present the driver is already linked into the kernel, and you can proceed with configuration of ID and LUN.
Otherwise, if the line is commented, you uncomment it by removing the '*'. If it is not present at all, you add the line. Then relink the kernel by entering the command
# lboot -u /unix.install
Reboot the system (reboot command). The minor number of the generic SCSI device driver must correspond to the SCSI bus ID and LUN of the printer. The minor number is calculated as LUN*16+ID, for example (3*16)+6=54 if LUN=3 and ID=6.
Use the mknod command to make the device (requires root access):
# cd /dev/scsi
# mknod sc0d6l3 c 195 54
# chmod 666 sc0dl3
To configure a scanner proceed as follows (root access required):
Edit the template file /opt/easycopy/bin/sun5/sst.conf to reflect the SCSI target ID and LUN of the printer. Copy the updated sst.conf and the sst driver into /usr/kernel/drv/.
Add the following entry to /etc/devlink.tab
type=ddi_pseudo;name=sst;minor=character rsst\A0
The space between character and rsst must be a TAB.
Create links /dev/rsstx,y (where x is the SCSI target ID and y is the LUN of the printer) for example, create /dev/rsst5,3 as a link to /devices/sbus@1f,0/SUNW,fas@e,8800000/sst@5,3:character.
# add_drv sst
Change permissions to give all users access to the devices:
# chmod 666 /devices/sbus@1f,0/SUNW,fas@e,8800000/sst*