Generic SCSI Driver/device access USCSI.

Generic SCSI Driver/device access USCSI.

Post by John McCan » Wed, 30 Sep 1998 04:00:00



Hi All,

I have got the following setup . SunOS miller 5.6 Generic sun4u sparc
SUNW,Ultra-1.

Thanks to some much needed help from you the group,I got the USCSI ioctl
to access SCSI Disk drives on the above system.

The problem is that I would like to access any type of SCSI device  -
not specifically a tape drive or cdrom.

How do I create a device name for USCSI to access (eg/dev/rdsk/c0t0d0s0)
for a device such as a Scanner or SAFTE device ?  -  noting that `boot
-r` doesn't seem to do it .

Is there a USCSI alternative ??

I have noted that there is a generic SCSI driver 'scg' available for
Solaris 2.5 , which works on 2.6 . It allows access to all the above. Is
there a replacement/alternative for this in Solaris 2.6 ?

Is there a change in Solaris 2.6 that makes SCSI access more easy ?

If not, how difficult would it be to write my own generic driver???

Thanks in advance for any help,

John McCann,

Senior Design Engineer
Sun Novice.

 
 
 

Generic SCSI Driver/device access USCSI.

Post by Joerg Schilli » Wed, 30 Sep 1998 04:00:00




Quote:

>Hi All,

>I have got the following setup . SunOS miller 5.6 Generic sun4u sparc
>SUNW,Ultra-1.

>Thanks to some much needed help from you the group,I got the USCSI ioctl
>to access SCSI Disk drives on the above system.

>The problem is that I would like to access any type of SCSI device  -
>not specifically a tape drive or cdrom.

>How do I create a device name for USCSI to access (eg/dev/rdsk/c0t0d0s0)
>for a device such as a Scanner or SAFTE device ?  -  noting that `boot
>-r` doesn't seem to do it .

>Is there a USCSI alternative ??

There is one, the "scg" driver. It is even much older than the USCSI ioctl itself.

The driver is on:

        ftp://ftp.fokus.gmd.de/pub/unix/kernel/scg

If you like to get a sample program, look at

        ftp://ftp.fokus.gmd.de/pub/unix/cdrecord

I am going to create a portable SCSI transport library for user level
SCSI access program from the code in cdrecord within the next 2 months.

If you will use this SCSI library, you will be able to run your code on:

        SunOS 4.x
        SunOS 5.x (Solaris 2.x)
        Linux
        SGI IRIX
        HP-UX
        IBM AIX
        NetBSD/FreeBSD/OpenBSD
        FreeBSD/CAM
        BSDi (BSD/OS)
        Next STEP
        Apple Rhapsody
        OSF/1
        Ultrix (soon)
        VMS (soon)
        WNT/W95 (planned)

Joerg

--



URL:  http://www.fokus.gmd.de/usr/schilling    ftp://ftp.fokus.gmd.de/pub/unix