linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* USB Keyboard
@ 2007-08-15 17:22 linux-os (Dick Johnson)
  2007-08-16  9:23 ` Jiri Kosina
  0 siblings, 1 reply; 10+ messages in thread
From: linux-os (Dick Johnson) @ 2007-08-15 17:22 UTC (permalink / raw)
  To: Linux kernel


Hello all,

I have been using linux-2.6.16.24 for development.
However, when I boot a sustem that uses a Dell USB
keyboard with a hub built into a Dell monitor, there
are continuous keyboard disconnect messages until
I exercise ^S/^Q. Then, everything is fine. I
thought maybe there was a bug that had been fixed
in later versions so I built and installed Linux-2.6.22.1.
The required usbhid.ko doesn't build, even though it
is enabled in ".config."

CONFIG_USB_DABUSB=m
# USB devices
CONFIG_SND_USB_AUDIO=m
CONFIG_SND_USB_USX2Y=m
# CONFIG_SND_USB_CAIAQ is not set
# USB Input Devices
CONFIG_USB_HID=m
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
CONFIG_USB_HIDDEV=y
# USB HID Boot Protocol drivers
CONFIG_USB_KBD=m
CONFIG_USB_MOUSE=m
# USB support
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
# Miscellaneous USB options
CONFIG_USB_DEVICEFS=y
CONFIG_USB_DEVICE_CLASS=y
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_OTG is not set
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_SPLIT_ISO=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
# CONFIG_USB_EHCI_TT_NEWSCHED is not set
# CONFIG_USB_EHCI_BIG_ENDIAN_MMIO is not set
CONFIG_USB_ISP116X_HCD=m
CONFIG_USB_OHCI_HCD=m
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=m
CONFIG_USB_SL811_HCD=m
CONFIG_USB_SL811_CS=m
# USB Device Class drivers
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=m

Also, the following errors occur when building the kernel:

   CHK     include/linux/version.h
   CHK     include/linux/utsrelease.h
   CALL    scripts/checksyscalls.sh
   CHK     include/linux/compile.h
   MODPOST vmlinux
WARNING: arch/i386/kernel/built-in.o(.text+0xfca1): Section mismatch: reference to .init.data:trampoline_end (between 'setup_trampoline' and 'cpu_coregroup_map')
WARNING: arch/i386/kernel/built-in.o(.text+0xfca9): Section mismatch: reference to .init.data:trampoline_data (between 'setup_trampoline' and 'cpu_coregroup_map')
WARNING: arch/i386/kernel/built-in.o(.text+0xfcb3): Section mismatch: reference to .init.data:trampoline_data (between 'setup_trampoline' and 'cpu_coregroup_map')
WARNING: arch/i386/kernel/built-in.o(.exit.text+0x26): Section mismatch: reference to .init.text: (between 'cache_remove_dev' and 'ffh_cstate_exit')
WARNING: arch/i386/kernel/built-in.o(.data+0xe20): Section mismatch: reference to .init.text: (between 'thermal_throttle_cpu_notifier' and 'mtrr_mutex')
WARNING: kernel/built-in.o(.text+0x1b582): Section mismatch: reference to .init.text: (between 'kthreadd' and 'init_waitqueue_head')
Kernel: arch/i386/boot/bzImage is ready  (#1)
   Building modules, stage 2.
   MODPOST 1258 modules
WARNING: drivers/net/sis900.o(.text+0x4b8): Section mismatch: reference to .init.text:sis900_mii_probe (between 'sis900_probe' and 'sis900_default_phy')
WARNING: drivers/net/sunhme.o(.text+0x2f49): Section mismatch: reference to .init.text: (between 'happy_meal_pci_probe' and 'happy_meal_pci_remove')

Cheers,
Dick Johnson
Penguin : Linux version 2.6.22.1 on an i686 machine (5588.29 BogoMips).
My book : http://www.AbominableFirebug.com/
_


****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB Keyboard
  2007-08-15 17:22 USB Keyboard linux-os (Dick Johnson)
@ 2007-08-16  9:23 ` Jiri Kosina
  2007-08-16 11:33   ` linux-os (Dick Johnson)
  0 siblings, 1 reply; 10+ messages in thread
From: Jiri Kosina @ 2007-08-16  9:23 UTC (permalink / raw)
  To: linux-os (Dick Johnson); +Cc: Linux kernel

On Wed, 15 Aug 2007, linux-os (Dick Johnson) wrote:

> I thought maybe there was a bug that had been fixed in later versions so 
> I built and installed Linux-2.6.22.1. The required usbhid.ko doesn't 
> build, even though it is enabled in ".config."

Could you plase send me your full .config? The usbhid module builds just 
fine, please doble check on your side.

Thanks,

-- 
Jiri Kosina

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB Keyboard
  2007-08-16  9:23 ` Jiri Kosina
@ 2007-08-16 11:33   ` linux-os (Dick Johnson)
  2007-08-16 13:00     ` Jiri Kosina
  0 siblings, 1 reply; 10+ messages in thread
From: linux-os (Dick Johnson) @ 2007-08-16 11:33 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Linux kernel


On Thu, 16 Aug 2007, Jiri Kosina wrote:

> On Wed, 15 Aug 2007, linux-os (Dick Johnson) wrote:
>
>> I thought maybe there was a bug that had been fixed in later versions so
>> I built and installed Linux-2.6.22.1. The required usbhid.ko doesn't
>> build, even though it is enabled in ".config."
>
> Could you plase send me your full .config? The usbhid module builds just
> fine, please doble check on your side.
>
> Thanks,
>
> -- 
> Jiri Kosina
>
Okay. I found what was different. It does actually build, but it
is now put into a completely different directory, 
/lib/modules/2.6.22.1/kernel/drivers/hid/usbhid, and requires
/lib/modules/2.6.22.1/kernel/drivers/input/ff-memless.ko
to be installed before it can be. None of this is documented
and it makes upgrading extremely difficult, expecially when a
keyboard won't work anymore.

BYW, it did fix the problem with the old driver.


Cheers,
Dick Johnson
Penguin : Linux version 2.6.22.1 on an i686 machine (5588.29 BogoMips).
My book : http://www.AbominableFirebug.com/
_


****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB Keyboard
  2007-08-16 11:33   ` linux-os (Dick Johnson)
@ 2007-08-16 13:00     ` Jiri Kosina
  0 siblings, 0 replies; 10+ messages in thread
From: Jiri Kosina @ 2007-08-16 13:00 UTC (permalink / raw)
  To: linux-os (Dick Johnson); +Cc: Linux kernel

On Thu, 16 Aug 2007, linux-os (Dick Johnson) wrote:

> Okay. I found what was different. It does actually build, but it is now 
> put into a completely different directory, 
> /lib/modules/2.6.22.1/kernel/drivers/hid/usbhid, and requires 
> /lib/modules/2.6.22.1/kernel/drivers/input/ff-memless.ko to be installed 
> before it can be. 

Only if you enabled force feedback for HID devices in your menuconfig. And 
if you did so, it perfectly makes sense that the force-feedback input 
module must be loaded.

> None of this is documented and it makes upgrading extremely difficult, 
> expecially when a keyboard won't work anymore.

1) what strange distro/environment do you use that the usbhid driver is 
   not loaded automatically when you plug the keyboard in?
2) even if your module autoloading is that much broken, you can always ssh 
   to the box or attach PS/2 keyboard and modprobe usbhid ... that works 
   no matter which directory keeps the driver

There is nothing to be documented there, we don't document which directory 
holds which driver.

> BYW, it did fix the problem with the old driver.

Good to hear, thanks.

-- 
Jiri Kosina

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB Keyboard
  2007-03-15 17:53     ` Jiri Kosina
  2007-03-15 17:59       ` Dmitry Torokhov
@ 2007-03-15 18:18       ` linux-os (Dick Johnson)
  1 sibling, 0 replies; 10+ messages in thread
From: linux-os (Dick Johnson) @ 2007-03-15 18:18 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Linux kernel, linux-usb-devel


On Thu, 15 Mar 2007, Jiri Kosina wrote:

> (added linux-usb-devel@lists.sourceforge.net to CC)
>
> On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote:
>
>>>> I have multiple AMD 64-bit servers in several configurations, with
>>>> several different motherboards, which fail to recognize a USB keyboard
>>>> when booted from a "stock" Linux kernel. They only work with a RedHat
>>>> kernel! I have removed all but one CPU from one in an attempt to find
>>>> the problem.
>>> [...]
>>>> linux-2.6.8 linux-2.6.9 linux-2.6.10 linux-2.6.11
>>>> linux-2.6.11.9 linux-2.6.12 linux-2.6.12.5 linux-2.6.13
>>>> linux-2.6.13.4 linux-2.6.15.4 linux-2.6.16.24 linux-2.6.16.4
>>>> linux-2.6.19
>>> Could you please turn on USB debugging (and also maybe HID debugging, but
>>> usb debug should be more interesting now) and send us the logs?
>> Ouch!  I can't do anything by copy from a screen! There is no way to get
>> `dmesg` without the keyboard! That's why I sent a request to
>> linux-kernel, hoping that the problem would sound familiar. All I can do
>> is boot the system (off a CD-ROM) and then pull the plug when the
>> keyboad doesn't work!
>
> You state that this happens on different hardware configurations, which
> looks pretty strange, there are many 64bit amd systems with working USB
> keyboards.
>
> Do you happen to have USB Legacy setting in BIOS? If so, could you try
> turning it off?

I will turn it OFF, if ON. I just recompiled the drivers with USB debugging
turned ON and I tried it on a machine that works. There are few enough
debugging messages so I will be able to copy off the screen. I now need
to wait in line to use the machine (about an hour or so), then I will
get back to you.

>
> Also, does this happen only with one particular type of keyboard, or with
> various ones?
>

Any keyboards I have tried including the Dell keyboards we have laying
all over the place. I even tried an Apple keyboard because they are
different. I didn't expect to "work," only to be recognized as a keyboard.


> -- 
> Jiri Kosina
>

I'll get back to you in about an hour.


Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.24 on an i686 machine (5615.29 BogoMips).
New book: http://www.AbominableFirebug.com/
_
\x1a\x04

****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB Keyboard
  2007-03-15 17:53     ` Jiri Kosina
@ 2007-03-15 17:59       ` Dmitry Torokhov
  2007-03-15 18:18       ` linux-os (Dick Johnson)
  1 sibling, 0 replies; 10+ messages in thread
From: Dmitry Torokhov @ 2007-03-15 17:59 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-os (Dick Johnson), Linux kernel, linux-usb-devel

On 3/15/07, Jiri Kosina <jikos@jikos.cz> wrote:
> (added linux-usb-devel@lists.sourceforge.net to CC)
>
> On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote:
>
> > >> I have multiple AMD 64-bit servers in several configurations, with
> > >> several different motherboards, which fail to recognize a USB keyboard
> > >> when booted from a "stock" Linux kernel. They only work with a RedHat
> > >> kernel! I have removed all but one CPU from one in an attempt to find
> > >> the problem.
> > > [...]
> > >> linux-2.6.8 linux-2.6.9 linux-2.6.10 linux-2.6.11
> > >> linux-2.6.11.9 linux-2.6.12 linux-2.6.12.5 linux-2.6.13
> > >> linux-2.6.13.4 linux-2.6.15.4 linux-2.6.16.24 linux-2.6.16.4
> > >> linux-2.6.19
> > > Could you please turn on USB debugging (and also maybe HID debugging, but
> > > usb debug should be more interesting now) and send us the logs?
> > Ouch!  I can't do anything by copy from a screen! There is no way to get
> > `dmesg` without the keyboard! That's why I sent a request to
> > linux-kernel, hoping that the problem would sound familiar. All I can do
> > is boot the system (off a CD-ROM) and then pull the plug when the
> > keyboad doesn't work!
>
> You state that this happens on different hardware configurations, which
> looks pretty strange, there are many 64bit amd systems with working USB
> keyboards.
>
> Do you happen to have USB Legacy setting in BIOS? If so, could you try
> turning it off?
>
> Also, does this happen only with one particular type of keyboard, or with
> various ones?
>

Seeing .config might also be interesting.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB Keyboard
  2007-03-15 17:49   ` linux-os (Dick Johnson)
@ 2007-03-15 17:53     ` Jiri Kosina
  2007-03-15 17:59       ` Dmitry Torokhov
  2007-03-15 18:18       ` linux-os (Dick Johnson)
  0 siblings, 2 replies; 10+ messages in thread
From: Jiri Kosina @ 2007-03-15 17:53 UTC (permalink / raw)
  To: linux-os (Dick Johnson); +Cc: Linux kernel, linux-usb-devel

(added linux-usb-devel@lists.sourceforge.net to CC)

On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote:

> >> I have multiple AMD 64-bit servers in several configurations, with
> >> several different motherboards, which fail to recognize a USB keyboard
> >> when booted from a "stock" Linux kernel. They only work with a RedHat
> >> kernel! I have removed all but one CPU from one in an attempt to find
> >> the problem.
> > [...]
> >> linux-2.6.8 linux-2.6.9 linux-2.6.10 linux-2.6.11
> >> linux-2.6.11.9 linux-2.6.12 linux-2.6.12.5 linux-2.6.13
> >> linux-2.6.13.4 linux-2.6.15.4 linux-2.6.16.24 linux-2.6.16.4
> >> linux-2.6.19
> > Could you please turn on USB debugging (and also maybe HID debugging, but
> > usb debug should be more interesting now) and send us the logs?
> Ouch!  I can't do anything by copy from a screen! There is no way to get 
> `dmesg` without the keyboard! That's why I sent a request to 
> linux-kernel, hoping that the problem would sound familiar. All I can do 
> is boot the system (off a CD-ROM) and then pull the plug when the 
> keyboad doesn't work!

You state that this happens on different hardware configurations, which 
looks pretty strange, there are many 64bit amd systems with working USB 
keyboards.

Do you happen to have USB Legacy setting in BIOS? If so, could you try 
turning it off?

Also, does this happen only with one particular type of keyboard, or with 
various ones?

-- 
Jiri Kosina

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB Keyboard
  2007-03-15 17:36 ` Jiri Kosina
@ 2007-03-15 17:49   ` linux-os (Dick Johnson)
  2007-03-15 17:53     ` Jiri Kosina
  0 siblings, 1 reply; 10+ messages in thread
From: linux-os (Dick Johnson) @ 2007-03-15 17:49 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Linux kernel


On Thu, 15 Mar 2007, Jiri Kosina wrote:

> On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote:
>
>> I have multiple AMD 64-bit servers in several configurations, with
>> several different motherboards, which fail to recognize a USB keyboard
>> when booted from a "stock" Linux kernel. They only work with a RedHat
>> kernel! I have removed all but one CPU from one in an attempt to find
>> the problem.
> [...]
>> linux-2.6.8 linux-2.6.9 linux-2.6.10 linux-2.6.11
>> linux-2.6.11.9 linux-2.6.12 linux-2.6.12.5 linux-2.6.13
>> linux-2.6.13.4 linux-2.6.15.4 linux-2.6.16.24 linux-2.6.16.4
>> linux-2.6.19
>
> Could you please turn on USB debugging (and also maybe HID debugging, but
> usb debug should be more interesting now) and send us the logs?
>
> Thanks,
>
> -- 
> Jiri Kosina

Ouch!  I can't do anything by copy from a screen! There is no way to
get `dmesg` without the keyboard! That's why I sent a request to
linux-kernel, hoping that the problem would sound familiar. All I
can do is boot the system (off a CD-ROM) and then pull the plug
when the keyboad doesn't work!

Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.24 on an i686 machine (5592.71 BogoMips).
New book: http://www.AbominableFirebug.com/
_
\x1a\x04

****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB Keyboard
  2007-03-15 17:32 linux-os (Dick Johnson)
@ 2007-03-15 17:36 ` Jiri Kosina
  2007-03-15 17:49   ` linux-os (Dick Johnson)
  0 siblings, 1 reply; 10+ messages in thread
From: Jiri Kosina @ 2007-03-15 17:36 UTC (permalink / raw)
  To: linux-os (Dick Johnson); +Cc: Linux kernel

On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote:

> I have multiple AMD 64-bit servers in several configurations, with 
> several different motherboards, which fail to recognize a USB keyboard 
> when booted from a "stock" Linux kernel. They only work with a RedHat 
> kernel! I have removed all but one CPU from one in an attempt to find 
> the problem.
[...]
> linux-2.6.8 linux-2.6.9 linux-2.6.10 linux-2.6.11
> linux-2.6.11.9 linux-2.6.12 linux-2.6.12.5 linux-2.6.13
> linux-2.6.13.4 linux-2.6.15.4 linux-2.6.16.24 linux-2.6.16.4
> linux-2.6.19

Could you please turn on USB debugging (and also maybe HID debugging, but 
usb debug should be more interesting now) and send us the logs?

Thanks,

-- 
Jiri Kosina

^ permalink raw reply	[flat|nested] 10+ messages in thread

* USB Keyboard
@ 2007-03-15 17:32 linux-os (Dick Johnson)
  2007-03-15 17:36 ` Jiri Kosina
  0 siblings, 1 reply; 10+ messages in thread
From: linux-os (Dick Johnson) @ 2007-03-15 17:32 UTC (permalink / raw)
  To: Linux kernel



I have multiple AMD 64-bit servers in several configurations,
with several different motherboards, which fail to recognize
a USB keyboard when booted from a "stock" Linux kernel.
They only work with a RedHat kernel! I have removed all but
one CPU from one in an attempt to find the problem.

The drivers:
 	uhci_hcd      34064  0
 	ehci_hcd      34056  0

install fine, but remain unused. They don't generate any interrupts!
I even installed dm_mod (after this snapshot), thinking maybe it
would fix it. Anyway, the machines can't be accessed without a keyboard
because they don't have anything but USB. They are not on a network
either, which makes troubleshooting without a keyboard a bitch. There
apparently is a keyboard controller (which gets one interrupt), but
it is not connected to a keyboard socket.

            CPU0
   0:    4691734    IO-APIC-edge  timer
   1:          1    IO-APIC-edge  i8042
   7:          0    IO-APIC-edge  parport0
   8:          1    IO-APIC-edge  rtc
   9:          0   IO-APIC-level  acpi
  12:        104    IO-APIC-edge  i8042
  14:       8719    IO-APIC-edge  ide0
  16:          0   IO-APIC-level  uhci_hcd:usb4
  17:       1079   IO-APIC-level  aic79xx
  18:          0   IO-APIC-level  ehci_hcd:usb1
  19:          0   IO-APIC-level  uhci_hcd:usb2, uhci_hcd:usb5
  20:          0   IO-APIC-level  uhci_hcd:usb3
  21:       6735   IO-APIC-level  eth0
  22:       2334   IO-APIC-level  eth1
NMI:          0 
LOC:    4691769 
ERR:          0
MIS:          0

I have tried the following stock kernels. Manufacturing and the
customer "requires" Linux version 2.6.N

linux-2.6.8 linux-2.6.9 linux-2.6.10 linux-2.6.11
linux-2.6.11.9 linux-2.6.12 linux-2.6.12.5 linux-2.6.13
linux-2.6.13.4 linux-2.6.15.4 linux-2.6.16.24 linux-2.6.16.4
linux-2.6.19

I have tried various games such as "pci=routeirq." Nothing
works! Does anybody know how RedHat gets the USB keyboard to
be recognized?

Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.24 on an i686 machine (5592.71 BogoMips).
New book: http://www.AbominableFirebug.com/
_
\x1a\x04

****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-08-16 13:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-15 17:22 USB Keyboard linux-os (Dick Johnson)
2007-08-16  9:23 ` Jiri Kosina
2007-08-16 11:33   ` linux-os (Dick Johnson)
2007-08-16 13:00     ` Jiri Kosina
  -- strict thread matches above, loose matches on Subject: below --
2007-03-15 17:32 linux-os (Dick Johnson)
2007-03-15 17:36 ` Jiri Kosina
2007-03-15 17:49   ` linux-os (Dick Johnson)
2007-03-15 17:53     ` Jiri Kosina
2007-03-15 17:59       ` Dmitry Torokhov
2007-03-15 18:18       ` linux-os (Dick Johnson)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).