HP-UX Reference (11i v1 00/12) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man7/!!!intro.7
________________________________________________________________
___ ___
s
scsi_pt(7) scsi_pt(7)
(Series 800 Only)
Save the old kernel:
$ mv /stand/vmunix /stand/vmunix.prev
Move the new kernel to be the current one:
$ mv ./vmunix_test /stand/vmunix
Boot the system from the new kernel:
$ exec reboot
ONCE THE SYSTEM REBOOTS:
Verify the peripheral configuration:
$ ioscan -f
Determine the major number for the SCSI pass-through driver:
$ lsdev -d spt
Create the special device file to access the scsi_pt peripheral (refer to the example in the TROUB-
LESHOOTING section):
$ mknod /dev/<devfilename> c <major #> <minor #>
where
<devfilename> name of the special device file
<major #> character major number (from lsdev cmd)
<minor #> minor number in the format
0xIITL00
where
II 2 digit card instance number (from ioscan command; proper ext_bus
entry)
T Target ID number (SCSI ID)
L Lun number (SCSI LUN)
00 Reserved fields, must be zero
All ready for use,try the sample program:
Compile the sample program:
$ cc /usr/contrib/src/scsi_io.c
Execute the sample program:
$ ./a.out /dev/<devfilename>
The sample program should have returned the inquiry data of the target device. If this did not happen,
refer to the TROUBLESHOOTING section.
TROUBLESHOOTING
If the NIO SCSI pass-through driver is not working:
• Verify the proper configuration of the SCSI pass-through driver into the kernel.
• Verify that the hardware is set up properly.
— Check that the device is connected, and that its SCSI Bus address is set properly.
— Check the reference manual for the device to verify that it is configured properly.
— Check that the SCSI Bus is properly terminated.
— Verify that the device is operational using some other driver if possible. If a hardware problem is
suspected, the SCSI pass-through driver must be unconfigured for that device and the HP
specific device driver must be configured before any diagnostic software can be run.
• Verify the special device file.
— Execute lsdev -d spt to find the major number for the SCSI pass-through driver. For
example, lsdev -d spt might show:
HP-UX Release 11i: December 2000 − 5 − Section 7−−129
___
___