Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2003 18:47:04 +0100
From:      Oliver Lehmann <lehmann@ans-netz.de>
To:        des@des.no (Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?=)
Cc:        alpha@freebsd.org
Subject:   Re: Floppy drive not found by RELENG_5_1
Message-ID:  <20031104184704.1327aff2.lehmann@ans-netz.de>
In-Reply-To: <xzpn0bcqvj9.fsf@dwp.des.no>
References:  <20031103210959.58d4afc1.lehmann@ans-netz.de> <xzpn0bcqvj9.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Dag-Erling Sm=F8rgrav wrote:

> Oliver Lehmann <lehmann@ans-netz.de> 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;
<<<isa/fd.c


the floppy gets detected then, and I'm able to use it.


fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> 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/



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