From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 16 01:17:00 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBE9416A422; Thu, 16 Mar 2006 01:17:00 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DF5143D49; Thu, 16 Mar 2006 01:16:59 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k2G1Guul081880; Wed, 15 Mar 2006 18:16:56 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <4418BC82.5020307@samsco.org> Date: Wed, 15 Mar 2006 18:16:50 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Baldwin References: <20060315005348.GA32144@megan.kiwi-computer.com> <200603151046.03551.jhb@freebsd.org> <20060315171154.GA37945@megan.kiwi-computer.com> <200603151227.10535.jhb@freebsd.org> In-Reply-To: <200603151227.10535.jhb@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org, "Rick C. Petty" Subject: Re: 6.1-PRE boot locks up, using USB keyboard X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2006 01:17:00 -0000 John Baldwin wrote: > On Wednesday 15 March 2006 12:11, Rick C. Petty wrote: > >>On Wed, Mar 15, 2006 at 10:46:01AM -0500, John Baldwin wrote: >> >> >>>>I'm using a USB keyboard, no PS/2. I've tried the hint to disable kbdmux, >>>>I've tried with and without selecting the "Boot w/ USB keyboard" and the >>>>machine locks up in the same spot no matter what I try. The same hardware >>>>boots just fine with 6.0-RELEASE (although I need to choose the USB >>>>keyboard option if I plan on typing). Any suggestions? >>> >>>What if you turn off USB keyboard support in your BIOS? >> >>My BIOS (Asus A8N-E rev 1010) has no option for disabling USB keyboard >>support, but I can either disable the USB controller or disable the USB >>legacy support. I doubt either of these is desirable. Fortunately, I >>discovered the problem.. > > > The "legacy support" option is the one that makes a USB keyboard look like > a PS/2 keyboard. > > >>The ukbd device is compiled into GENERIC. I also had ukbd_load="YES" in my >>loader.conf so it would be compatible with a custom kernel. When GENERIC >>boots, I get the message that ukbd is already loaded ("file exists"). I >>would expect that the kernel just ignores the attempt, but apparently there >>is an adverse effect. Whenever ukbd is loaded by /boot/loader and that >>device already exists in the kernel, the boot locks up after: >> >>atkbdc0: at port 0x60,0x64 on isa0 >> >>when using a USB keyboard. I would think this is a bug. It is 100% >>repeatable for me. If I comment out the line in /boot/loader.conf, the >>system boots nicely. Perhaps this is related to kbdmux(4), but I'm not >>sure. I've also noticed related problems when trying to load umass and ums >>through the boot loader and manually (I will try to reproduce these). >>Maybe the problem is in the USB layer?? >> >>FYI, I tried this on 6.1-BETA4, fresh from the ISOs. > > > Ok. There are several edge cases that can blow up if you kldload a module > or load a module from the loader that is already present in the kernel. > Alternately, I've heard from some people with a similar problem that turning off USB2 but leaving plain USB on avoids the problem. I'm not exactly sure how or why this is, but it's worth a try I guess. Scott