From owner-freebsd-bugs Sat May 18 04:52:25 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA25981 for bugs-outgoing; Sat, 18 May 1996 04:52:25 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id EAA25972 for ; Sat, 18 May 1996 04:52:20 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id NAA24177; Sat, 18 May 1996 13:52:17 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id NAA13381; Sat, 18 May 1996 13:52:17 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id KAA09790; Sat, 18 May 1996 10:01:57 +0200 (MET DST) From: J Wunsch Message-Id: <199605180801.KAA09790@uriah.heep.sax.de> Subject: Re: Error message from fdc To: afr04@rs1.rrz.Uni-Koeln.DE (Ralf Luettgen) Date: Sat, 18 May 1996 10:01:57 +0200 (MET DST) Cc: freebsd-bugs@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <1.5.4.32.19960517142920.006a9c5c@mail.rrz.uni-koeln.de> from Ralf Luettgen at "May 17, 96 04:29:20 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Ralf Luettgen wrote: > Hello Mr. Wunsch. :-) Ich heiße ansonsten Jörg... :) > If I want to access my floppy drive, whith mcopy, fdformat or as a normal > ufs filesystem, I've got the following error message : > > fdc: input ready timeout > > My machine is a : ... > and a ASUS TP4XE Mainboard The ASUS TP4XE is equipped with a broken Multi-IO chip (UMC 8669F). Bruce Evans investigated all its brokeness in great detail. One of its bugs combined with a long-lurking bug in the FreeBSD floppy driver to something that stopped working on the UMC 8669F. (Another bug is that you can't use your onboard UARTs for UUCP.) Try this fix. (This is also the version in -stable.) Index: /sys/i386/isa/fd.c =================================================================== RCS file: /home/cvs/src/sys/i386/isa/fd.c,v retrieving revision 1.62 retrieving revision 1.62.2.1 diff -u -u -r1.62 -r1.62.2.1 --- fd.c 1995/06/11 19:31:19 1.62 +++ fd.c 1996/03/31 18:09:00 1.62.2.1 @@ -43,7 +43,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.62 1995/06/11 19:31:19 rgrimes Exp $ + * $Id: fd.c,v 1.62.2.1 1996/03/31 18:09:00 joerg Exp $ * */ @@ -1574,6 +1574,13 @@ fdc->state = STARTRECAL; break; case STARTRECAL: + /* XXX clear the fdc results from the last reset, if any. */ + { + int i; + for (i = 0; i < 4; i++) + (void)fd_sense_int(fdc, &st0, &cyl); + } + if(fd_cmd(fdcu, 2, NE7CMD_RECAL, fdu, 0)) /* Recalibrate Function */ -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)