Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!news.ci.com.au!wabbit.its.uow.edu.au!news.nsw.CSIRO.AU!mel.dit.csiro.au!munnari.OZ.AU!uunet!in2.uu.net!newsfeed.internetmci.com!uwm.edu!msunews!netnews.upenn.edu!news.enter.net!usenet From: dh@enter.net (Daniel Hauer) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Another ATAPI CDROM Problem Date: Sat, 24 Feb 1996 15:23:52 GMT Organization: ENTER.NET Lines: 83 Message-ID: <312f2d18.1506766@news.enter.net> References: <Pine.OSF.3.91l.960223233147.6838A-100000@saul7.u.washington.edu> NNTP-Posting-Host: ppp22.enter.net X-Newsreader: Forte Agent .99d/32.182 "D. Junkins" <junkins@u.washington.edu> wrote: >Hi, > >I've been following the list (and the comp.unix.bsd.freebsd.misc >newsgroup) for quite some time now while trying to figure out how to get >the NEC CDR-260 to work in my Gateway 2000/P5-60 at home. I've tried all >of the suggestions I've seen for other people. > >The symptom is a hard lockup of the system when I try to copy data from a >CD. It requires a hard reboot to bring the system back. I am able to >list the directory and navigate through the CD filesystem without problems >once a CD is mounted. The crash only seems to occur when reading more >than 16Kbytes from the CD. I copied files of increasing size off the CD >after is was mounted with the following results: > > File Size Result > > 907 bytes Copied successfully from /cdrom to /usr/home/... > 4060 bytes Same > 14912 bytes Same > 36864 bytes Copied 16384 bytes and then locked the system > >I think this may point to a buffering problem on the CD read or a problem >repositioning the "head" (I'm not sure if it's really a head on a CDROM) >between block reads. > >My IDE configuration is as follows: > >wdc0 at 0x1f0-0x1f7 irq 14 on isa >wdc0: unit 0 (wd0): <WDC AC2850F> >wd0: 814MB (1667232 sectors), 1654 cyls, 16 heads, 63 S/T, 512 B/S >wdc0: unit 1 (atapi): <NEC CD-ROM DRIVE:260/.110>, >removable, dma, iordis >wdc1 at 0x170-0x177 irq 15 on isa >wdc1: unit 0 (wd2): <WDC AC2540H> >wd2: 515MB (1056384 sectors), 1048 cyls, 16 heads, 63 S/T, 512 B/S > >As you can see, I've got two IDE hard drives. Each is the master device >on two seperate controllers. The ATAPI CDROM is the slave device on the >primary controller. I've made the wcd0c device in the /dev directory. >My kernel configuration file is as follows: > >controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr >disk wd0 at wdc0 drive 0 >#disk wd1 at wdc0 drive 1 > >controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr >disk wd2 at wdc1 drive 0 >#disk wd3 at wdc1 drive 1 > >options ATAPI #Enable ATAPI support for IDE bus >device wcd0 #IDE CD-ROM > >I've been trying to mount the cdrom with the following line in my >/etc/fstab: > >/dev/wcd0c /cdrom cd9660 ro,noauto 0 0 > >The same lockup occurs is I try to use cdplay to play an audio CD. > >I know that the ATAPI code is considered experimental but any help you can >provide is appreciated. My knowledge of device driver writing is pretty >limited, but if there's anything I can do to help fix this problem let me >know. Also, let me know if there's any additional information that would >be helpful in troubleshooting this problem. > >Keep up the great work... > >- Doug >+------------------------------+------------------------------------------+ >| Doug Junkins | See my home page for my PGP Public Key | >| Network Engineer +------------------------------------------+ >| Computers & Communications | junkins@u.washington.edu | >| University of Washington | http://weber.u.washington.edu/~junkins | >+------------------------------+------------------------------------------+ > > > Try putting the CD-ROM as the slave device on the secondary port, its been my experience they don't work well in your configuration (the HD runs in block mode and the CD-ROM cannot) this is usually not the case on the secondary port