*BSD News Article 12976


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!think.com!cayman!stemwinder.FCR.COM!stemwinder!brad
From: brad@FCR.COM (Brad Parker)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Cannot reboot new Kernel
Message-ID: <BRAD.93Mar16230558@stemwinder.FCR.COM>
Date: 17 Mar 93 04:05:58 GMT
References: <1ne9p4INN6ah@srvr1.engin.umich.edu> <1993Mar12.062446.25554@qualcomm.com>
Organization: FCR Software Inc., Boston, MA
Lines: 36
NNTP-Posting-Host: stemwinder.fcr.com
In-reply-to: karn@unix.ka9q.ampr.org's message of 12 Mar 93 06:24:46 GMT

In article <1993Mar12.062446.25554@qualcomm.com> karn@unix.ka9q.ampr.org (Phil Karn) writes:

   From: karn@unix.ka9q.ampr.org (Phil Karn)
   Date: 12 Mar 93 06:24:46 GMT
   Reply-To: karn@servo.qualcomm.com

   I suspect that many of the hang-on-boot problems are still caused by
   the keyboard probe routine at startup. When I recently switched 50 Mhz
   486 motherboards in my 386BSD system (so I could use VESA VGA -
   another long story) I too found that my 386bsd would no longer boot. I
   simply went into the pcprobe() function in /sys/i386/isa/pccons.c and
   inserted "break;" into the loop that so it wouldn't loop forever
   resetting the keyboard controller until it returns the expected
   acknowledgement. Apparently not all keyboard controllers respond as
   expected to a reset.

   I rebuilt the kernel with this patch and it came up fine. I also tried it
   on a variety of 386s and 486s at work and it booted successfully (with
   keyboard working) on each of them.

I've been wondering about this for some time time.  I found that 386bsd
would boot but ignore keyboard input on my compudyne 486/33 laptop
unless I hit a key right as the probes started.  

The fix was to replace the pcprobe() keyboard reset code with the
kbreset code from stand/kbd.c.  (I removed the "a20" gate code from
the routine, since it had to have been run already)

I've wondered why this was never part of the patchkit.

-brad

--
Politically correct term for `corrupt': Ethically different, morally challenged

Brad Parker	FCR Software, Inc., Boston, Ma.	brad@fcr.com