From nobody  Sun Jul  5 09:46:04 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id JAA21131;
          Sun, 5 Jul 1998 09:46:04 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199807051646.JAA21131@hub.freebsd.org>
Date: Sun, 5 Jul 1998 09:46:04 -0700 (PDT)
From: tomdean@ix.netcom.com
To: freebsd-gnats-submit@freebsd.org
Subject: Cannot access fd0
X-Send-Pr-Version: www-1.0

>Number:         7176
>Category:       kern
>Synopsis:       Cannot access fd0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    joerg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul  5 13:40:04 PDT 1998
>Closed-Date:    Fri Jul 17 08:46:34 MEST 1998
>Last-Modified:  Fri Jul 17 08:48:18 MEST 1998
>Originator:     tom dean
>Release:        FreeBSD 3.0-CURRENT #0: Fri Jun 19 09:15:17 PDT 1998
>Organization:
>Environment:
FreeBSD celebris 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Fri Jun 19 09:15:17 PDT 1998     root@celebris:/usr/src/sys/compile/CELEBRIS-SMP  i386

>Description:
I am getting errors in accessing fd0.  I can boot a FreeBSD floppy.
DOS has no problem with the device.

I never see or hear FreeBSD access the device.

I am running FreeBSD 3.0-CURRENT #0: Fri Jun 19 09:15:17 PDT 1998

The only IDE storage device is the floppy.  There are 3 SCSI disks and
a SCSI CD.  The SCSI controller is a NCR PCI device.

>How-To-Repeat:
mount /dev/fd0a /mnt
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Tue Jul 7 02:50:22 PDT 1998 
State-Changed-Why:  
Joerg, you're into floppy drives, yes ? 


Responsible-Changed-From-To: freebsd-bugs->joerg 
Responsible-Changed-By: phk 
Responsible-Changed-When: Tue Jul 7 02:50:22 PDT 1998 
Responsible-Changed-Why:  
State-Changed-From-To: suspended->closed 
State-Changed-By: joerg 
State-Changed-When: Fri Jul 17 08:46:34 MEST 1998 
State-Changed-Why:  
After some debugging tobether with Thomas, it turned out to be that he 
had configured his floppy tape drive at unit #1.  This royally 
confused the floppy driver. 

ft(4) should probably go away... 

I've placed a fat warning in GENERIC telling you should leave it at 

unit #2. 
>Unformatted:
 >From dmesg:
 fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
 fdc0: FIFO enabled, 8 bytes threshold
 fd0: 1.44MB 3.5in
 fd0: 1.44MB 3.5in
 
 With a floppy disk I can mount on another system, I get:
 # mount /dev/fd0a /mnt
 /dev/fd0 on /mnt: Input/output error
 and, dmesg has:
 fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 fd0c: hard error reading fsbn 16 of 16-31 (No status)
 The LED on the drive does not light, and, drive is not accessed, the
 heads are not heard to move.
 
 With NO floppy in the drive,
 # mount /dev/fd0a /mnt
 /dev/fd0a on /mnt: Input/output error
 and, dmesg has:
 fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 fd0c: hard error reading fsbn 16 of 16-31 (No status)
 The LED on the drive does not light, and, drive is not accessed, the
 heads are not heard to move.
 
 
 Is there a problem with the fd driver?  Is there an updated driver?
 
 I have:
 
 sys/i386/conf/<kernel>
 controller      fdc0    at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
 disk            fd0     at fdc0 drive 0
 
 sys/i386/isa/fd.c
  *      from:   @(#)fd.c        7.4 (Berkeley) 5/25/91
  *      $Id: fd.c,v 1.114 1998/06/07 19:40:39 dfr Exp $
 sys/i386/isa/fdc.h
  *      $Id: fdc.h,v 1.9 1997/09/17 20:16:16 tegge Exp $
 sys/i386/isa/fdreg.h
  *      $Id: fdreg.h,v 1.10 1997/02/22 09:36:11 peter Exp $
 
