From mboxrd@z Thu Jan 1 00:00:00 1970 From: iwanek@nttdata.co.jp Message-ID: <50F591D39557D511B12C0090274DCEBC041B60DD@noanet03.noanet.nttdata.co.jp> To: 9fans@cse.psu.edu Subject: RE: [9fans] CD-RW or IDE controller issues? MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Date: Sat, 23 Feb 2002 20:49:21 +0900 Topicbox-Message-UUID: 5474a884-eaca-11e9-9e20-41e7f4b1d025 anothy@cosym.net wrote: > i've got what i believe to be an MMC CD-RW > drive attached to the IDE chain in my > terminal. the bios sees it fine, but it > doesn't show up in plan 9. I am having a similar problem. On my P4 system, #S/sdD0 is connected to a DVD-ROM and #S/sdD1 to a CD-RW. Both drives are not detected. I've been fiddling with /sys/src/9/pc/sdata.c and I think I found the place: it's ataidentify() where it calls as = ataready(cmdport, ctlport, 0, Bsy, Drq|Err, 400*1000); and this times out (returns -1). I've tried increasing the magic number (400*1000) to various values. Larger value (500*1000) sometimes works, but not always. I am stuck. P.S. How can I make use of atadebug()? I put a print() in ataready() and immediately regret it. - kazumi