lkml.org 
[lkml]   [1999]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] Fixes trouble booting Linux
Howard Lowndes wrote:
> I have a mchine with a TX chipset (I think) which definitely has the
> keyboard test disabled in the BIOS.
>
> However, when I try to boot Linux without a keyboard plugged in it gives
> the LILO prompt and then gives the "Loading Linux ..." message and then
> freezes. It doesn't do the "Uncompressing Linux .... " message. Plug the
> keyboard in and off it goes with the "Uncompressing Linux ...." message.

Actually, I've had this problem with 2 computers.
I tracked it down to empty_8042 in arch/i386/boot/setup.S:758
My guess is that some keyboard controllers never empty
when there is no keyboard.

It's worked for a few people now...

=============================
--- setup.S.bak Sun Feb 14 18:46:55 1999
+++ setup.S Sun Feb 14 18:55:07 1999
@@ -756,16 +756,25 @@
! No timeout is used - if this hangs there is something wrong with
! the machine, and we probably couldn't proceed anyway.
empty_8042:
+ push cx
+ mov cx,#0xFFFF
+
+empty_8042_loop:
+ dec cx
+ jz empty_8042_end_loop
+
call delay
in al,#0x64 ! 8042 status port
test al,#1 ! output buffer?
jz no_output
call delay
in al,#0x60 ! read it
- jmp empty_8042
+ jmp empty_8042_loop
no_output:
test al,#2 ! is input buffer full?
- jnz empty_8042 ! yes - loop
+ jnz empty_8042_loop ! yes - loop
+empty_8042_end_loop:
+ pop cx
ret

!
=============================
Martijn van Oosterhout
Australia
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.029 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site