Subject: Re: drive detection failure
To: None <tech-kern@netbsd.org>
From: Michael van Elst <mlelstv@serpens.de>
List: tech-kern
Date: 02/26/2004 20:20:13
GeorgePS@XMission.com (George Peter Staplin) writes:
>I installed a new Samsung 80 GB drive, and I have found problems with
>NetBSD and the drive. It worked well when I tested a small partition in
>Windows XP and copied/read files from it.
A timeout in wdc.c is too small for that drive. Apply the following
patch:
--- wdc.c 2003/09/24 11:16:43 1.114.4.3
+++ wdc.c 2004/02/26 20:19:37
@@ -237,7 +237,7 @@
DELAY(1000);
bus_space_write_1(chp->ctl_iot, chp->ctl_ioh, wd_aux_ctlr,
WDCTL_IDS);
- delay(1000);
+ delay(2000);
(void) bus_space_read_1(chp->cmd_iot, chp->cmd_ioh, wd_error);
bus_space_write_1(chp->ctl_iot, chp->ctl_ioh, wd_aux_ctlr, WDCTL_4BIT);
delay(10);
--
--
Michael van Elst
Internet: mlelstv@serpens.de
"A potential Snark may lurk in every tree."