rodney@sun.ipl.rpi.edu (Rodney Peck II) (12/09/90)
We recently bought a 10 disk jukebox with a sony MO drive. I am in the process of installing it and the caching software that comes with it. Unfortunately, I'm having a pretty hard time of it. Right now, it seems that I can't get their optical disk driver to talk to the jukebox or the optical disk. I haven't worked much with scsi before, but it seems relatively straightforward. I'm running SunOs 4.0.3 on a 4/280 with a standard sun scsi vme board. What I need to know is this: in the kernel, there are lines like this... # Support for the SCSI-3 host adapter. Same device support as above. # controller si0 at vme24d16 ? csr 0x200000 priority 2 vector siintr 0x40 controller si1 at vme24d16 ? csr 0x204000 priority 2 vector siintr 0x41 tape st0 at si0 drive 32 flags 1 disk sq1 at si0 drive 40 flags 3 disk sq2 at si0 drive 48 flags 3 the 'sq' device is their optical disk driver. According to their instructions, the drive field is eight times the scsi id plus the logical unit number. I don't know what a lun is, I'm guessing that lun 0 is ok. The flags field seems to refer to the driver's entry in an array that is defined elsewhere in the kernel. 1 is the position of the st driver, and 3 is where the sq driver is defined. so, according to this defn, I should have sq1 corresponding to scsi id 5, and sq2 to scsi id 6. right? Then, I go over to the /dev directory and do a MAKEDEV on sq1 and sq2 after updating the MAKEDEV file to have the blockdev and cdev numbers included from the kernel entries in those tables as well. They are 23 and 105. So, that makes some devices for me called /dev/rsq1c and /dev/sq1c along with a lot of other partitions. These are supposed to be the devices that I talk to to talk on the scsi bus. The supplied software can't open the devices. It says "device or address not found" when I try myself. What I need is a low level test and ideally an exercise program to make the juke flap around when I finally get to figure out how to talk to it. Where can I find some software to send scsi commands and receive replies and all that sort of stuff? replies can be sent to me at rodney@rpi.edu -- Rodney