From: torvalds@klaava.Helsinki.FI (Linus Torvalds) Subject: Re: problems with 0.99.5 Date: Sun, 14 Feb 1993 10:07:18 GMT
In article <1lkbr6$pj9@pith.uoregon.edu> toman@darkwing.uoregon.edu (Joseph Toman) writes:
>
>I am currently trying to help a friend of mine with getting Linux up and
>running on his machine. I have compiled 0.99.5 with support for most
>SCSI devices + a microsoft busmouse + ROOTDEV = FLOPPY. When I boot it
>off my SCSI partition (with ROOTDEV = /dev/sda5) it works fine, but when
>booting it off the floppy I get to the point where it says "please insert
>root device and press ENTER "(or something close to it) it just hangs (no
>drive light comes on). Any clues?
There is a very silly bug in 0.99.pl5 that strikes when you try to use a
floppy as the boot disk - I changed the "wait_for_keypress()" function
to disregard any signals that could have accumulated due to the new
387-testing functions, but the function that was supposed to wake it up
used "wake_up_interruptible()" which won't work. Tons of egg on my
face.
The fix is simple: in linux/kernel/chr_drv/keyboard.c, put_queue(),
change the line
wake_up_interruptible(&keypress_wait);
into
wake_up(&keypress_wait);
and the bug should be gone. I never noticed it, as I didn't actually
test any of the new code out (so what's new?).
Linus