From owner-freebsd-current@FreeBSD.ORG Wed Aug 25 21:49:23 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2522616A4CE; Wed, 25 Aug 2004 21:49:23 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 655CD43D46; Wed, 25 Aug 2004 21:49:22 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i7PLnHOD007700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Aug 2004 00:49:18 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i7PLnLso063016; Thu, 26 Aug 2004 00:49:21 +0300 (EEST) (envelope-from ru) Date: Thu, 26 Aug 2004 00:49:21 +0300 From: Ruslan Ermilov To: Nate Lawson Message-ID: <20040825214921.GA62984@ip.net.ua> References: <20040825204757.GD35529@ip.net.ua> <42278.1093467451@critter.freebsd.dk> <20040825212153.GA60718@ip.net.ua> <412D0388.9060201@root.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <412D0388.9060201@root.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: Poul-Henning Kamp cc: Warner Losh cc: current@freebsd.org Subject: Re: No more floppy drive X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 21:49:23 -0000 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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) >=20 > >What stuff would you like me to pepper, given the additional > >information above? >=20 > Please send output of devinfo -r to see who is holding something=20 > overlapping 0x3f0-0x3f5. >=20 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 @@ -1,8 +1,8 @@ # $FreeBSD: src/sys/i386/conf/GENERIC.hints,v 1.13 2004/04/01 21:48:31 alf= red Exp $ -hint.fdc.0.at=3D"isa" -hint.fdc.0.port=3D"0x3F0" -hint.fdc.0.irq=3D"6" -hint.fdc.0.drq=3D"2" +#hint.fdc.0.at=3D"isa" +#hint.fdc.0.port=3D"0x3F0" +#hint.fdc.0.irq=3D"6" +#hint.fdc.0.drq=3D"2" hint.fd.0.at=3D"fdc0" hint.fd.0.drive=3D"0" hint.fd.1.at=3D"fdc0" I got this: $ dmesg |grep fdc fdc0: ic_type 90 part_id 73 fdc0: 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, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBLQlhqRfpzJluFF4RArypAJsG5zVIQ4reyWS+3JuPni/gH853+ACeM3/y K0XbeeZwcsWfM0YU00K5+vU= =86wu -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--