From owner-freebsd-current@FreeBSD.ORG Tue Jul 11 18:43:29 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7204716A4E0; Tue, 11 Jul 2006 18:43:29 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8858343D58; Tue, 11 Jul 2006 18:43:28 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k6BIhQw3085298; Tue, 11 Jul 2006 13:43:27 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44B3F154.7030001@centtech.com> Date: Tue, 11 Jul 2006 13:43:32 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.4 (X11/20060612) MIME-Version: 1.0 To: Maksim Yevmenkin References: <20060710212815.GA46336@dragon.NUXI.org> <200607102027.18106.jhb@freebsd.org> <20060711181600.GB64759@dragon.NUXI.org> <44B3ECFC.1050806@savvis.net> In-Reply-To: <44B3ECFC.1050806@savvis.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1591/Mon Jul 10 14:41:02 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-current@freebsd.org Subject: Re: PS/2 keyboard support in mid-boot borked X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 18:43:29 -0000 On 07/11/06 13:25, Maksim Yevmenkin wrote: > David O'Brien wrote: >> On Mon, Jul 10, 2006 at 08:27:17PM -0400, John Baldwin wrote: >>> On Monday 10 July 2006 17:28, David O'Brien wrote: >>>> For months now PS/2 keyboard support has been broken during boot >>>> with the >>>> GENERIC kernel. >>>> >>>> If one has an error in /etc/fstab such that / cannot be mounted, the >>>> kernel prompts with >>>> Manual root filesystems specification: >>>> [examples listed] >>>> mountroot> >>>> >>>> However one cannot respond to the prompt as keyboard input is ignored. >>>> This seems to be a casualty of kbdmux(4) support being committed >>>> back in >>>> February. Is anyone working on fixing this? >>> This is a FAQ currently I think. There are some patches floating >>> around if >>> you search the archives. >> >> I hope this will be something more than a FAQ with some patches floating >> around for 7.0-RELEASE. > > if you use usb keyboard (or ps2 to usb converter with ps2 keyboard), > does it work? Yes. > like i said before, i think, the problem is that atkbd(4) does not deal > with "polled" mode properly. kbdmux(4) never sees input from atkbd(4) > because (imo) atkbd(4) interrupt handler is never called. the atkbd(4) > patch i posted awhile ago has a regression, i.e. atkbd(4) produces > duplicate characters in ddb(4), midboot, etc. *without* kbdmux(4). > patched atkbd(4) with kbdmux(4) works fine. > > i'm actually a bit puzzled why atkbd(4) works without kbdmux(4) in > ddb(4), midboot,e etc. obviously i need to spend some quality time with > the debugger :) i hope to get to it, eventually :) sorry for the delay. What can we do to help you debug it? I know for me, it's a major pain, and I'm sure others have gotten jammed up too. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------