Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 1996 10:01:57 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        afr04@rs1.rrz.Uni-Koeln.DE (Ralf Luettgen)
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: Error message from fdc
Message-ID:  <199605180801.KAA09790@uriah.heep.sax.de>
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"

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bde@freebsd.org> 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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605180801.KAA09790>