Subject: USB problems in 1.4beta
To: None <>
From: None <>
List: port-i386
Date: 05/05/1999 14:25:28
hello,

	just plugged an USB keyboard and USB mouse and discovered some
problems. after small investigation i found the source of the troubles.
so the story begins.

	after enabling USB support in bios, post diag showed detected USB
devices: mouse and keyboard; kernel boot messages stopped on USB detection
phase for about minute or slightly more then booting process continued but i
got error messages:

uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
uhci0: USB version 1.0
usb0 at uhci0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub0: device problem, disabling port 1

	only usb keyboard functioned in ps/2 keyboard emulation mode.

	`usbdevs -v' didn't detect any devices but uhub0. after reading
motherboard manual i decided to disable USB legacy support completely
(moments earlier it was `keyboard & mouse only'). system booted fine and
detected both keyboard and mouse:

uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
uhci0: USB version 1.0
usb0 at uhci0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ums0 at uhub0 port 1 configuration 1 interface 0
ums0: Logitech N48, rev 1.00/4.01, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse0 at ums0
ukbd0 at uhub0 port 2 configuration 1 interface 0
ukbd0: Microsoft product 0x000b, rev 1.00/0.82, addr 3, iclass 3/1
wskbd0 at ukbd0
........................
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd1 at pckbd0: console keyboard
opmsprobe: command error
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
sysbeep0 at pcppi0
........................
wscons: wskbd1 glued to wsdisplay0 (console)

	`usbdevs -v' showed the following:

Controller /dev/usb0:
addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 addr 2: low speed, power 26 mA, config 1, N48(0xc001), Logitech(0x046d), rev 4.01
 port 2 addr 3: low speed, power 100 mA, config 1, product 0x000b(0x000b), Microsoft(0x045e), rev 0.82

	so the USB keyboard and mouse legacy support was the source of
problem. BUT. in last case ws console keyboard was set by kernel to `pckbd0'
instead of `ukbd0' so i was unable to pass any symbols to console until i
plugged an old keyboard into ps/2 port. i understand that i can exclude
completely `pckbd0' support from kernel config file but i think this is
wrong. btw, `wcconsctl' didn't help me to assign `ukbd0' as main.

	so, my question is: what it correct way to use USB keyboard and USB
mouse together with `USB keyboard and mouse legacy support' switched in bios
to on (this is necessary or i cannot use bootloader and pass options to
kernel etc etc)? any opinions are greately appreciated.

p.s. i'm running 1.4beta, built at 25 apr.