Back to PR alpha/30486: broken floppy on DS10
Marcel Moolenaar
marcel at xcllnt.net
Thu Jun 16 20:29:02 GMT 2005
On Thu, Jun 16, 2005 at 10:10:46PM +0200, Wilko Bulte wrote:
>
> Well, on my DS10 I still see the failure. Running a 'current' of May 25.
>
> Obvious difference: mine is a 600MHz, your's a 466MHz.
Well, that's a start. Let's play with this for a bit. Can you
try the attached patch? It helps if you boot verbose and watch
out for fdc(4) related errors.
--
Marcel Moolenaar USPA: A-39004 marcel at xcllnt.net
-------------- next part --------------
Index: fdc.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/fdc/fdc.c,v
retrieving revision 1.283.2.7
diff -u -r1.283.2.7 fdc.c
--- fdc.c 1 Mar 2005 08:22:55 -0000 1.283.2.7
+++ fdc.c 16 Jun 2005 20:25:39 -0000
@@ -494,10 +494,10 @@
/* Try a reset, keep motor on */
fdout_wr(fdc, fdc->fdout & ~(FDO_FRST|FDO_FDMAEN));
- DELAY(100);
+ DELAY(1000);
/* enable FDC, but defer interrupts a moment */
fdout_wr(fdc, fdc->fdout & ~FDO_FDMAEN);
- DELAY(100);
+ DELAY(1000);
fdout_wr(fdc, fdc->fdout);
/* XXX after a reset, silently believe the FDC will accept commands */
@@ -1593,7 +1593,7 @@
* Clear the reset and see it come ready.
*/
fdout_wr(fdc, FDO_FRST);
- DELAY(100);
+ DELAY(1000);
if (fdsts_rd(fdc) != 0x80)
return (ENXIO);
More information about the freebsd-alpha
mailing list