From owner-freebsd-alpha@FreeBSD.ORG Tue Nov 4 09:47:23 2003 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19D6516A4CE for ; Tue, 4 Nov 2003 09:47:23 -0800 (PST) Received: from kartoffel.salatschuessel.net (pD9E21C72.dip.t-dialin.net [217.226.28.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id B02B743FE3 for ; Tue, 4 Nov 2003 09:47:21 -0800 (PST) (envelope-from lehmann@ans-netz.de) Received: from kartoffel.salatschuessel.net (localhost [127.0.0.1]) hA4Hl4Sx004148; Tue, 4 Nov 2003 18:47:15 +0100 (CET) (envelope-from lehmann@ans-netz.de) Date: Tue, 4 Nov 2003 18:47:04 +0100 From: Oliver Lehmann To: des@des.no (Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?=) Message-Id: <20031104184704.1327aff2.lehmann@ans-netz.de> In-Reply-To: References: <20031103210959.58d4afc1.lehmann@ans-netz.de> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable cc: alpha@freebsd.org Subject: Re: Floppy drive not found by RELENG_5_1 X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 17:47:23 -0000 Hi, Dag-Erling Sm=F8rgrav wrote: > Oliver Lehmann writes: > > it looks like my floppy disapeared since 5.X. >=20 > Same here, on a PWS600au. It sees the controller, but not the drive. Hm.. It seems like a detection problem. I just set/hacked the flags in isa/fd.c function fd_probe to FDT_144M; >>>isa/fd.c printf("fd_probe entered\n"); =20 fdsu =3D *(int *)device_get_ivars(dev); /* xxx cheat a bit... */ fd =3D device_get_softc(dev); fdc =3D device_get_softc(device_get_parent(dev)); flags =3D device_get_flags(dev); flags =3D FDT_144M; =20 printf("flags: %d\n",flags); =20 =20 bzero(fd, sizeof *fd); fd->dev =3D dev; fd->fdc =3D fdc; << at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0 fdc0: interrupting at ISA irq 6 fd_probe entered flags: 4 we are behind the FDT_NONE check fdc0: FIFO enabled, 8 bytes threshold and we're now going to check if PROBE is set or not and we're now going to check if PROBE is set or not and that NE7 thing now we are going to do a switch for the fd-type fd_probe ended successfully fd0: <1440-KB 3.5" drive> on fdc0 drive 0 root@dill /root> mount_msdosfs /dev/fd0 /mnt/floppy/ root@dill /root> cd /mnt/floppy/ root@dill floppy> ls ./ COMMAND.COM* EMM386.EXE* PBRCODE.BIN* =20 SUBSTTOZ.EXE* ../ CONFIG.SYS* IBMBIO.COM* PROFILE.DAT* VDISK.SYS* ACTCD.SYS* DAZIP.EXE* IBMDOS.COM* Readme.txt* AUTOEXEC.BAT* DISCDIAG.BAT* LICENSE.TXT* SUBST.EXE* root@dill floppy>=20 Normally device_get_flags(dev) returned with 0 (FDT_NONE). --=20 Oliver Lehmann @home: lehmann@ans-netz.de @office: oliver.lehmann@mgi.de @www: http://www.pofo.de/ | http://wishlist.ans-netz.de/