Re: ATAPI CD still not detected, verbose boot logs available

From: Christoph Sold <cs_at_cheasy.de>
Date: Wed, 3 Dec 2003 22:39:37 +0100
On Wednesday 03 December 2003 09:55, Soren Schmidt wrote:
> Could you try this simple patch and see if that helps?

Works for me. No problems so far during three reboots.

Log files available at
   http://cheasy.dyndns.org/bootlogs/5.1-2003-11-30-patched/

Thanks for the good work!
-Christoph Sold

Index: ata-lowlevel.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.23
diff -u -r1.23 ata-lowlevel.c
--- ata-lowlevel.c      2 Nov 2003 22:04:53 -0000       1.23
+++ ata-lowlevel.c      3 Dec 2003 07:50:44 -0000
_at__at_ -575,7 +575,7 _at__at_
                }
            }
        }
-       if (stat1 & ATA_S_BUSY) {
+       if (!((mask == 0x03) && (stat0 & ATA_S_BUSY)) && (stat1 & 
ATA_S_BUSY)) {
            ATA_IDX_OUTB(ch, ATA_DRIVE, ATA_D_IBM | ATA_SLAVE);
            DELAY(10);
Received on Wed Dec 03 2003 - 12:39:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:32 UTC