From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <71016867b258370632376bc767b3bc73@quanstro.net> To: 9fans@9fans.net From: erik quanstrom Date: Sat, 31 Jan 2009 19:31:51 -0500 In-Reply-To: <4e6ca2050901311609n5ba23364s7c72223b8f809716@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Installation CD Problems Topicbox-Message-UUID: 8fe27d10-ead4-11e9-9d60-3106f5b1d025 > OK, so I'm just getting caught up on the > replies here so far. > > As far as /dev/sdC0 goes -- BLS is right, > it was really /dev/sdD0, and I remembered > incorrectly. That is, the CD ROM Drive is, > indeed, second IDE master. i think it's really likely that this change needs to be move from the kernel into 9load's sdata.c. but it's pretty hard for me to test. regardless, if this change is good enough for the kernel, it should be good enough for 9load: diff -c /sys/src/boot/pc-e820/sdata.c /n/sources/plan9/sys/src/boot/pc/ (other stuff) /sys/src/boot/pc-e820/sdata.c:875,882 - /n/sources/plan9/sys/src/boot/pc//sdata.c:875,881 qlock(ctlr); as = ataready(cmdport, ctlport, drive->dev, Bsy|Drq, Drdy, 107*1000); - /* used to test as&Chk as failure too, but some CD readers use that for media change */ - if(as < 0){ + if(as < 0 || (as&Chk)){ qunlock(ctlr); return -1; } - erik