*BSD News Article 9958


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA6871 ; Fri, 15 Jan 93 10:37:46 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!umn.edu!paperboy.micro.umn.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!bogus.sura.net!darwin.sura.net!sgiblab!sgigate!odin!sgihub!zola!zuni!anchor!olson
From: olson@anchor.esd.sgi.com (Dave Olson)
Subject: Re: Help: Toshiba CDROM
Message-ID: <uufs2ug@zuni.esd.sgi.com>
Sender: news@zuni.esd.sgi.com (Net News)
Organization:  Silicon Graphics, Inc.  Mountain View, CA
References: <51495@shamash.cdc.com>
Date: Sat, 16 Jan 93 07:25:57 GMT
Lines: 37

In <51495@shamash.cdc.com> pbd@runyon.cim.cdc.com (Paul Dokas) writes:

| I've got access to a Toshiba CDROM (from an SGI box) here at work that 
| I'd like to hook up to my 386BSD system, but I'm having some problems.
| When I boot with the CDROM hung off of my Adaptec 1542B using Julian's
| SCSI drivers I get the following:
| 
| Jan 15 13:28:59 stimpy /386bsd: pc0<color> at 0x60 irq 1 on isa
| Jan 15 13:29:00 stimpy /386bsd: com1 at 0x3e8 irq 4 on isa
| Jan 15 13:29:00 stimpy /386bsd: com2 fifo at 0x2e8 irq 3 on isa
| Jan 15 13:29:00 stimpy /386bsd: wd0 0:<Maxtor 7213 AT> at 0x1f0 irq 14 on isa
| Jan 15 13:29:00 stimpy /386bsd: fd0 drives 0: 1.2M, 1: 1.44M at 0x3f0 irq 6 drq 2 on isa
| Jan 15 13:29:00 stimpy /386bsd: aha0 reading board settings, 200 nSEC ok, use 250 nSEC
| Jan 15 13:29:00 stimpy /386bsd:   **aha0 probing for scsi devices**
| Jan 15 13:29:00 stimpy /386bsd:   dev4,lu0: type 0(direct),fixed 'TOSHIBA CD-ROM DRIVE:XM 1971' scsi2

This is because the drive lies, and claims to be a hard disk to work
with our older systems brain dead PROMs (well, it seemed reasonable
to require that bootable devices be a hard disk or a tape at one point...)
That probably confused the code later on.  You can 'fix' this by
modifying the driver to send the 10 byte command 0xc9 followed by
9 0's if it sees that inquiry command.  Then it will claim to be
a CD-ROM with removable media.  That lasts until the drive is
power cycled, or a SCSI bus reset occurs.

| Jan 15 13:29:01 stimpy /386bsd: sd0: illegal request
| Jan 15 13:29:01 stimpy /386bsd:  could not mode sense (4) for unit 0
| Jan 15 13:29:01 stimpy /386bsd:         sd0: 0MB, cyls 0, heads 0, secs 0, bytes/sec 0

The stupid drive (like many CD-ROM drives) doesn't support modesense
page 3 or 4.  Presumably the driver does this only for hard disks,
and not CD-ROMs, so the fix above should take care of this.

--
Let no one tell me that silence gives consent,  |   Dave Olson
because whoever is silent dissents.             |   Silicon Graphics, Inc.
    Maria Isabel Barreno                        |   olson@sgi.com