*BSD News Article 8956


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!sun-barr!cs.utexas.edu!wotan.compaq.com!moxie!hackney
From: hackney@moxie.hou.tx.us (Greg Hackney)
Subject: 386BSD wd.c timeout problem during autoconfig
Message-ID: <1992Dec16.002542.6959@moxie.hou.tx.us>
Sender: hackney@moxie.hou.tx.us (Greg Hackney)
Organization: None
Date: Wed, 16 Dec 1992 00:25:42 GMT
Lines: 20


We found a timeout problem in the wd.c code that occurs when the
system trys to autoconfigure the disk drives at boot time.

In wdcommand() there is a declaration:  int timeout = 1000000;

This is a loop counter that runs while the disk controller
registers are being probed. For a Conner 510MB IDE drive on a Compaq
SystemPro 486/33, that value is not large enough for the controller
to respond in time. (It's only short by a count of about 3,000 on
this system).

As a result, booting the dist.fs floppy indicates you have no hard
disk drives.

The fix was to increase the value of timeout. We used 1,500,000.
--
Greg Hackney   hackney@compaq.com
Mike Busby     mcb@compaq.com