Re: No more floppy drive

From: Ruslan Ermilov <ru_at_freebsd.org>
Date: Thu, 26 Aug 2004 00:49:21 +0300
On Wed, Aug 25, 2004 at 02:24:24PM -0700, Nate Lawson wrote:
> Ruslan Ermilov wrote:
> >On a kernel compiled without "device fdc" and booted verbosely,
> >"kldload fdc" results in the following:
> >
> >: fdc0: cannot reserve I/O port range (6 ports)
> 
> >What stuff would you like me to pepper, given the additional
> >information above?
> 
> Please send output of devinfo -r to see who is holding something 
> overlapping 0x3f0-0x3f5.
> 
Nothing overlapped (I verified with "devinfo -u"), but your mail
made me think.  I keep my /boot/device.hints on this notebook
identical to GENERIC.hints.  After commenting out "fdc" lines
in /boot/device.hints:

$ diff -u /sys/i386/conf/GENERIC.hints /boot/device.hints
--- /sys/i386/conf/GENERIC.hints        Sat Apr  3 13:59:14 2004
+++ /boot/device.hints  Thu Aug 26 00:32:55 2004
_at__at_ -1,8 +1,8 _at__at_
 # $FreeBSD: src/sys/i386/conf/GENERIC.hints,v 1.13 2004/04/01 21:48:31 alfred Exp $
-hint.fdc.0.at="isa"
-hint.fdc.0.port="0x3F0"
-hint.fdc.0.irq="6"
-hint.fdc.0.drq="2"
+#hint.fdc.0.at="isa"
+#hint.fdc.0.port="0x3F0"
+#hint.fdc.0.irq="6"
+#hint.fdc.0.drq="2"
 hint.fd.0.at="fdc0"
 hint.fd.0.drive="0"
 hint.fd.1.at="fdc0"

I got this:

$ dmesg |grep fdc
fdc0: ic_type 90 part_id 73
fdc0: <Enhanced floppy controller> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: ic_type 90 part_id 73
fd0: <1440-KB 3.5" drive> on fdc0 drive 0

The following now works:

1.  "kldload fdc"
2.  "kldunload fdc" says "Operation not supported".
3.  Kernel compiled with "device fdc".

All results in a working floppy.

The following still doesn't work:

"kldload fdc" on a kernel compiled with "device fdc" results in a panic.

P.S.  If I comment out two "ppc" lines in /boot/device.hints, the ppc0
attaches normally, and there's no phantom ppc1.


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer

Received on Wed Aug 25 2004 - 19:49:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:08 UTC