From owner-freebsd-stable@FreeBSD.ORG Sat Oct 25 08:09:47 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CCD510656A4 for ; Sat, 25 Oct 2008 08:09:47 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA07.emeryville.ca.mail.comcast.net (qmta07.emeryville.ca.mail.comcast.net [76.96.30.64]) by mx1.freebsd.org (Postfix) with ESMTP id 3D4448FC2C for ; Sat, 25 Oct 2008 08:09:46 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA01.emeryville.ca.mail.comcast.net ([76.96.30.11]) by QMTA07.emeryville.ca.mail.comcast.net with comcast id Ww1T1a00n0EPchoA7w9mJ7; Sat, 25 Oct 2008 08:09:46 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA01.emeryville.ca.mail.comcast.net with comcast id Ww9l1a00A2P6wsM8Mw9l83; Sat, 25 Oct 2008 08:09:46 +0000 X-Authority-Analysis: v=1.0 c=1 a=j1jtvhf0zA8A:10 a=T4SDRHG4orYA:10 a=QycZ5dHgAAAA:8 a=B-oJ1EQzmplJwNtoU1AA:9 a=bWrpd4PJfeiWkc3LtvdSpcEqsh0A:4 a=EoioJ0NPDVgA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 745F0C941E; Sat, 25 Oct 2008 01:09:45 -0700 (PDT) Date: Sat, 25 Oct 2008 01:09:45 -0700 From: Jeremy Chadwick To: Aragon Gouveia Message-ID: <20081025080945.GA55413@icarus.home.lan> References: <200810230627.46478.freebsd-stable@dino.sk> <209111CB-326D-4758-80B2-2505CAE9BCDF@netconsonance.com> <20081025003750.GA42077@phat.za.net> <20081025012148.GA48297@icarus.home.lan> <20081025014218.GA47549@phat.za.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081025014218.GA47549@phat.za.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Jo Rhett , freebsd-stable Stable , John Baldwin Subject: Re: 6.4 RC1 locks up solid on first reboot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2008 08:09:47 -0000 On Sat, Oct 25, 2008 at 03:42:18AM +0200, Aragon Gouveia wrote: > | By Jeremy Chadwick > | [ 2008-10-25 03:22 +0200 ] > > > FWIW, I've had problems with 7.0's boot loader locking up too. I'm running > > > a -stable compile from march and during bootup, if I make too many > > > keypresses the bootup sequence freezes. Once loader has handed off to the > > > kernel then everything's fine, but I can't make any use of loader's or > > > bootX's command lines without the system freezing. I'm careful not to touch > > > my keyboard during bootup! > > > > > > Keyboard and mouse are both USB. > > > > There are known problems with some BIOSes and "USB Legacy" support. > > Said BIOS option allows a USB keyboard and mouse to be emulated as PS/2 > > for operating systems which lack a USB stack, such as MS-DOS -- and more > > importantly, bootloaders! The FreeBSD bootloader only understands > > AT/PS2 keyboards, which is why that BIOS option is needed. > > > > Can you confirm this problem happens when using a PS/2 keyboard? > > Unfortunately, no luck. I've just tried: > > * USB and PS/2 keyboards both plugged in, enough key input on the PS/2 > keyboard causes a freeze > > * Just the PS/2 keyboard plugged in, no different. Okay, so then the issue is probably with the bootloader in some bizarre way. John might have some ideas, but I have none (outside of my skill set). Also, it might help if you could explain "enough key input" and "too many keypresses". These are a little too vague. > * Just the PS/2 keyboard plugged in, and USB legacy disabled in the BIOS. > Same. Just for posterity: the USB Legacy Support BIOS option does not affect natively-connected PS/2 keyboards; you can leave the option enabled even in the scenario where you have a USB keyboard *and* a PS/2 keyboard plugged in; one will not "trump" the other. Instead, you should have two keyboards which function in OSes/environments which lack a USB stack. (That is, until something resets/reassigns the BIOS-controlled interrupt, which will then break USB->PS/2 emulation; the native PS/2 keyboard should not be affected by this) > Is it possible that excessive build optimisations could lead to this? Last > time I rebuilt I did so with '-O2 -fno-strict-aliasing' and -march in > make.conf. I've been meaning to try with a rebuilt loader with no > optimisations... Anything is possible. Can you please rebuild your system, and the bootstraps (and don't forget to install them; bsdlabel -B ), without messing with optimisation flags? > > P.S. -- Why are you slamming keys during the bootup sequence? :-) > > It's my workstation and I'm usually impatient to get through the bootup > sequence quickly. :) I'm still having trouble understanding what you're talking about or why you're doing this. I *think* what you're trying to say is something like: "when my machine boots up, I don't like waiting 10 seconds at the Beastie/loader menu, so I hit Enter to skip the counterdown". Please clarify. :-) It's interesting that people are having these kinds of odd behaviours so early in the boot stage. I've personal experience with FreeBSD acting wonky with USB keyboards once the OS is loaded (long delays when doing things like switching vcons), and I solved those problems by disabling kbdmux(4) either in loader.conf or removing it from the kernel. Others have had the same success by removing the atkbd/atkbdc drivers from the kernel (but keeping kbdmux). kbdmux, obviously, does not apply to the bootloader issue. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |