login
Header Space

 
 

hd_reset fails in 0.11

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <Linux-activists@...>
Date: Sunday, December 8, 1991 - 8:57 pm

Marc Peters: "v 0.11 boot disk problem" (Dec  8, 15:01):

Thanks, this is why there are still debug-statements in the code. There
are in fact two solutions (I hope) to the problem. Both of them require
you to change the file "linux/kernel/blk_drv/hd.c" which does the
harddisk specific stuff. As 0.10 doesn't try to reset the controller at
bootup, it seems to work, and you can still use it to recompile 0.11.

1 - set static int reset to 0 at startup (currently 1).  This means
linux won't try to reset the controller in the beginning, but this is
just a temporary hack: if there are errors later on that need a reset,
you'll be in the same trouble.

2 - try to edit the timeouts in "reset_controller". If memory serves,
it's a line that goes like this:

	outb_p(4,HD_CMD);
		nop();
	outb_p(xxx,HD_CMD);

Change the max value to 10000 or something, and try again. I have only
one controller to test, and timing-problems are always the worst kind.
There are a couple of other timing-values that are completely arbitrary
(guess a number between 1 and 100000, and if it works, it works :-), but
this is the first suspect.

I'd be very grateful if everybody who encounters this problem would try
out (2), and report to me how big the value had to be before the reset
made it (or indeed if it works even then). Don't do (1) unless nothing
else works. I'd also be interested to know what kind of machine you are
running (fast machine, slow disk?).

		Linus

PS. I hope even old linux-users read the INSTALL-file: there is a change
in how linux boots up. No more /bin/update, instead linux executes the
shell script /etc/rc, which may mount/fsck etc, and start up update in
the background.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
v 0.11 boot disk problem, Marc Peters, (Sun Dec 8, 7:01 pm)
hd_reset fails in 0.11, Linus Benedict Torvalds, (Sun Dec 8, 8:57 pm)
hd_reset fails in 0.11, Ari Lemmke, (Sun Dec 8, 9:51 pm)
RE: v 0.11 boot disk problem, Ari Lemmke, (Sun Dec 8, 7:18 pm)
speck-geostationary