Re: 6.1-PRE boot locks up, using USB keyboard



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: <Keyboard controller (i8042)> 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.

--
John Baldwin <jhb@xxxxxxxxxxx> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Nomination - Dustin Cook for Kooki Information Minister
    ... >> a windows CD then they may have licensed the boot loader as well. ... >> next item in the BIOS boot list is looked to for boot files. ... > will allow a usb keyboard and try that. ... away from open flames, naked flames and old flames; avoid inhaling fumes; ...
    (alt.computer.security)
  • Dustbin k0oK SUPERSIZES his complete techno-fuckup
    ... Dustin Cook,, the squashed, wet-brained prawn, ... >> a windows CD then they may have licensed the boot loader as well. ... >> next item in the BIOS boot list is looked to for boot files. ... > will allow a usb keyboard and try that. ...
    (alt.computer.security)
  • Re: ADM64 floppies
    ... There aren't any, because amd64 machines are "legacy free" systems, ... boot loader installed. ... You should also try harder to fix your CD-ROM issues before going off ... This will insure that atkbd0 is not attached, and allow the USB keyboard ...
    (freebsd-current)
  • Re: Kernel panicking in 6.2 and 7-CURRENT -- interrupt issues
    ... I'm trying to install 7-CURRENT on my desktop, locally instead of on a virtual machine, and I'm running into an issue where the kernel almost always panics on boot with my motherboard, due to some sort of interrupt assignment / probing issues. ... 6.2 RELEASE panics if I don't boot FreeBSD up into "safe mode", due to an issue with the ohci driver. ... Strangely enough the 7-CURRENT snapshot ISOs work, but then again it doesn't setup the OHCI and USB keyboard stuff properly, and I can't get any sort of input from my keyboard, obviously. ...
    (freebsd-current)
  • Re: Kernel panicking in 6.2 and 7-CURRENT -- interrupt issues
    ... I'm trying to install 7-CURRENT on my desktop, locally instead of on a virtual machine, and I'm running into an issue where the kernel almost always panics on boot with my motherboard, due to some sort of interrupt assignment / probing issues. ... 6.2 RELEASE panics if I don't boot FreeBSD up into "safe mode", due to an issue with the ohci driver. ... Strangely enough the 7-CURRENT snapshot ISOs work, but then again it doesn't setup the OHCI and USB keyboard stuff properly, and I can't get any sort of input from my keyboard, obviously. ...
    (freebsd-hackers)