Rev C2 USB Keyboard

I have tried some Dell USB Keyboards on the USB host port of the Rev C2 board but none of them work. I get an error like “unable to enumerate USB device on port 2”. I doubt that its a hardware problem because my usb wireless adapter works well (I had problems until I installed the latest Angstrom demo image).

I’m also using a battery with a 5V, 4A max rating to power the board, so the board is certainly not under-powered.

Has anyone had success with a USB Keyboard directly on the host port (and not a powered hub) on the Rev C2 board? If so, what keyboard make/model are you using?

Cheers,
Andreas

Keyboards are typically a Low Speed device. There may be some exceptions. The EHCI port on the Beagle is High Speed only. You will need a hub to handle low speed devices on the port.

Gerald

by the way, besides the dell keyboard, my dell mouse doesn’t work as well. I don’t have the BB with me so I can’t see what the output is when I plug in the mouse or keyboard, but the output of dmesg |grep -i usb on my PC is:

input: USB HID v1.11 Mouse [Dell Premium USB Optical Mouse]

input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard]

Ah, alright gotcha. I'll try a hub

I have two piles of keyboards - the ones that work and the ones that don't...

The ones that don't are typically characterized by having lots of 'extras'.

The Dell kbd w/ media buttons and built in USB hub doesn't...

The cheezy 'no-name' (and no frills) $9 one from Frys does.

...but I only tried on a powered hub.

- dan

Looking at the Fry's website the only $9 keyboard that they have is a
Logitech. Is that what you have?

Mine was a generic 'white-box' unit from the store...

- dan

Which distribution are you using? That could play a factor as well.

When I tried Angstrom, it had no problems recognizing the keyboard and
mouse, but with Android, it wouldn't recognize it.

From what I have heard Android doesn't support the USB EHCI port yet,
only the otg port. Guess the developers are all using Rev B boards?

You are correct sir!

- dan

I'm using Angstrom. My problems were solved by buying a powered usb
2.0 hub

Hi All,
To update everyone, now Android supports USB EHCI port on Rev.C as well.

Regards,
Breimer.B wrote:

Hi,

i don't use rev C board, mine is B5 board. and when I moved kernel
from 2.6.28 to 2.6.29-r37, the mouse and keyboard don't work. when I
plug out and in usb mouse or keyboard, the kernel had no responses.

The new kernel is builded with OE, distribution is Angstrom.

beableboard# dmesg | grep -i usb

The Angstrom Distribution beagleboard ttyS2

Angstrom 2009.X-test-20090623 beagleboard ttyS2

beagleboard login: root

root@beagleboard:~# dmesg | grep -i usb

[ 14.584655] musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
[ 14.584899] musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine (X),
bulk split (X), HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 14.584930] musb_hdrc: MHDRC RTL version 1.400
[ 14.584960] musb_hdrc: setup fifo_mode 4

[ 14.584991] musb_hdrc: 28/31 max ep, 16384/16384 memory

[ 14.584991] musb_hdrc: hw_ep 0shared, max 64

[ 14.585021] musb_hdrc: hw_ep 1tx, max 512

[ 14.585021] musb_hdrc: hw_ep 1rx, max 512

[ 14.585052] musb_hdrc: hw_ep 2tx, max 512

[ 14.585052] musb_hdrc: hw_ep 2rx, max 512

[ 14.585052] musb_hdrc: hw_ep 3tx, max 512

[ 14.585083] musb_hdrc: hw_ep 3rx, max 512

[ 14.585083] musb_hdrc: hw_ep 4tx, max 512

[ 14.585113] musb_hdrc: hw_ep 4rx, max 512
[ 14.585113] musb_hdrc: hw_ep 5tx, max 512
[ 14.585144] musb_hdrc: hw_ep 6tx, max 512
[ 14.585174] musb_hdrc: hw_ep 6rx, max 512
[ 14.585174] musb_hdrc: hw_ep 7tx, max 512
[ 14.585174] musb_hdrc: hw_ep 7rx, max 512
[ 14.585205] musb_hdrc: hw_ep 8tx, max 512
[ 14.585205] musb_hdrc: hw_ep 8rx, max 512
[ 14.585235] musb_hdrc: hw_ep 9tx, max 512
[ 14.585235] musb_hdrc: hw_ep 9rx, max 512
[ 14.585266] musb_hdrc: hw_ep 10tx, max 256
[ 14.585266] musb_hdrc: hw_ep 10rx, max 64
[ 14.585266] musb_hdrc: hw_ep 11tx, max 256
[ 14.585296] musb_hdrc: hw_ep 11rx, max 64
[ 14.585296] musb_hdrc: hw_ep 12tx, max 256
[ 14.585327] musb_hdrc: hw_ep 12rx, max 64
[ 14.585327] musb_hdrc: hw_ep 13shared, max 4096
[ 14.585357] musb_hdrc: hw_ep 14shared, max 1024
[ 14.585357] musb_hdrc: hw_ep 15shared, max 1024
[ 14.585388] musb_hdrc: USB OTG mode controller at d80ab000 using DMA, IRQ 92
[ 15.215759] usbcore: registered new interface driver catc
[ 15.221343] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[ 15.227630] usbcore: registered new interface driver kaweth
[ 15.233337] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB
Ethernet driver
[ 15.241760] usbcore: registered new interface driver pegasus
[ 15.247558] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
[ 15.254760] usbcore: registered new interface driver rtl8150
[ 15.260833] usbcore: registered new interface driver asix
[ 15.266571] usbcore: registered new interface driver cdc_ether
[ 15.272796] usbcore: registered new interface driver dm9601
[ 15.278717] usbcore: registered new interface driver smsc95xx
[ 15.284790] usbcore: registered new interface driver gl620a
[ 15.290740] usbcore: registered new interface driver net1080
[ 15.296752] usbcore: registered new interface driver plusb
[ 15.302612] usbcore: registered new interface driver rndis_host
[ 15.308837] usbcore: registered new interface driver cdc_subset
[ 15.315093] usbcore: registered new interface driver zaurus
[ 15.321044] usbcore: registered new interface driver MOSCHIP
usb-ethernet driver
[ 15.336242] usbcore: registered new interface driver zd1211rw
[ 15.342346] usbcore: registered new interface driver rtl8187
[ 15.348327] usbcore: registered new interface driver rndis_wlan
[ 15.354644] usbcore: registered new interface driver zd1201
[ 15.360626] usbcore: registered new interface driver usb8xxx
[ 15.366668] usbcore: registered new interface driver rt2500usb
[ 15.372894] usbcore: registered new interface driver rt73usb
[ 15.378875] usbcore: registered new interface driver p54usb
[ 15.565765] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 15.579498] ehci-omap ehci-omap.0: new USB bus registered, assigned
bus number 1
[ 15.606903] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 15.613525] usb usb1: configuration #1 chosen from 1 choice
[ 15.619628] hub 1-0:1.0: USB hub found
[ 15.629638] Initializing USB Mass Storage driver...
[ 15.635009] usbcore: registered new interface driver usb-storage
[ 15.641143] USB Mass Storage support registered.
[ 15.727813] usbcore: registered new interface driver bcm203x
[ 15.73358] Bluetooth: Digianswer Bluetooth USB driver ver 0.10
[ 15.739959] usbcore: registered new interface driver bpa10x
[ 15.745605] Bluetooth: BlueFRITZ! USB driver ver 1.2
[ 15.750915] usbcore: registered new interface driver bfusb
[ 15.756530] Bluetooth: Generic Bluetooth USB driver ver 0.4
[ 15.762420] usbcore: registered new interface driver btusb
[ 15.906341] usbcore: registered new interface driver usbhid
[ 15.912109] usbhid: v2.6:USB HID core driver
[ 15.924926] usbcore: registered new interface driver snd-usb-audio

what's the problem? could you give me some advices?

thanks

Probably you need to upgrade your u-boot binary. Grab latest u-boot binary from Angstrom.

Regards, Favor Tang wrote:

hi,

thanks for your quick replay, I tried update u-boot.bin, I download it
from the URL you gave to me, but it couldn't load uImage. I found
that this file is only 177KB compared to the one 710KB which had
worked well. when I replace it using original u-boot, it works and
load the uImage as normal.

the USB mouse and keyboard didn't work either. I used 5V power usb hub, BTW.

thanks.

If your u-boot is bigger than ~180kB it will have a bootscreen and hence be broken.

regards,

Koen

I also used the Angstrom demo uImage && rootfs, the mouse and keyboard
still don't work.

is it that the mouse and keyboard config hadn't be enabled when
building kernel 2.6.29-rc37 with OE?

does kernel 2.6.29-rc37 mouse and keyboard driver enabled by default,
when using oe to build it?

thanks

As people have pointed out before, you need a recent uboot

hi,

I update my u-boot to the newest from git clone
git://gitorious.org/u-boot-omap3/mainline.git u-boot-omap3, and
rebuild it. when u-boot is running, it shows that:

U-Boot 2009.06-00191-g3e88337 (Jun 25 2009 - 09:35:37)

I still can't get mouse and keyboard work, any idea? give me some
suggestions, please.

root@beagleboard:~# uname -a
Linux beagleboard 2.6.29-omap1 #1 Sat Jun 20 15:29:31 CEST 2009 armv7l GNU/Linux
root@beagleboard:~# dmesg | grep -i usb

[ 13.057769] musb_hdrc: hw_ep 12tx, max 256
[ 13.057769] musb_hdrc: hw_ep 12rx, max 64
[ 13.057769] musb_hdrc: hw_ep 13shared, max 4096
[ 13.057800] musb_hdrc: hw_ep 14shared, max 1024
[ 13.057800] musb_hdrc: hw_ep 15shared, max 1024
[ 13.057830] musb_hdrc: USB OTG mode controller at d80ab000 using DMA, IRQ 92
[ 13.693176] usbcore: registered new interface driver catc
[ 13.698791] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[ 13.705108] usbcore: registered new interface driver kaweth
[ 13.710754] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet dr
iver
[ 13.718597] usbcore: registered new interface driver pegasus
[ 13.724487] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
[ 13.732116] usbcore: registered new interface driver rtl8150
[ 13.738189] usbcore: registered new interface driver asix
[ 13.743957] usbcore: registered new interface driver cdc_ether
[ 13.750091] usbcore: registered new interface driver dm9601
[ 13.756042] usbcore: registered new interface driver smsc95xx
[ 13.762145] usbcore: registered new interface driver gl620a
[ 13.768066] usbcore: registered new interface driver net1080
[ 13.774047] usbcore: registered new interface driver plusb
[ 13.779907] usbcore: registered new interface driver rndis_host
[ 13.786163] usbcore: registered new interface driver cdc_subset
[ 13.792449] usbcore: registered new interface driver zaurus
[ 13.798339] usbcore: registered new interface driver MOSCHIP usb-ethernet dri
ver
[ 13.813537] usbcore: registered new interface driver zd1211rw
[ 13.819641] usbcore: registered new interface driver rtl8187
[ 13.825714] usbcore: registered new interface driver rndis_wlan
[ 13.831970] usbcore: registered new interface driver zd1201
[ 13.837982] usbcore: registered new interface driver usb8xxx
[ 13.843963] usbcore: registered new interface driver rt2500usb
[ 13.850189] usbcore: registered new interface driver rt73usb
[ 13.856231] usbcore: registered new interface driver p54usb
[ 13.989562] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 14.003265] ehci-omap ehci-omap.0: new USB bus registered, assigned bus numbe
r 1
[ 14.032440] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 14.039031] usb usb1: configuration #1 chosen from 1 choice
[ 14.045166] hub 1-0:1.0: USB hub found
[ 14.055145] Initializing USB Mass Storage driver...
[ 14.060516] usbcore: registered new interface driver usb-storage
[ 14.066680] USB Mass Storage support registered.
[ 14.153350] usbcore: registered new interface driver bcm203x
[ 14.159149] Bluetooth: Digianswer Bluetooth USB driver ver 0.10
[ 14.165527] usbcore: registered new interface driver bpa10x
[ 14.171173] Bluetooth: BlueFRITZ! USB driver ver 1.2
[ 14.176483] usbcore: registered new interface driver bfusb
[ 14.182098] Bluetooth: Generic Bluetooth USB driver ver 0.4
[ 14.187988] usbcore: registered new interface driver btusb
[ 14.331817] usbcore: registered new interface driver usbhid
[ 14.337585] usbhid: v2.6:USB HID core driver
[ 14.350463] usbcore: registered new interface driver snd-usb-audio

when I use kernel 2.6.28, the mouse and keyboard can work properly.
below is the normal message when usb mouse and keyboard are enabled.
the kernel version is:
Linux beagleboard 2.6.28-omap1 #2 PREEMPT Tue Feb 10 23:11:20 CST 2009
armv7l unknown

the normal message output is like this:

input: LITE-ON Technology USB NetVista Full Width Keyboard. as
/class/input/input3
input: PIXART USB OPTICAL MOUSE as /class/input/input4

I can't found any related message like above when moved to kernel
2.6.29-r37, is that the main problem?
or, the newer kernel driver couldn't note the mouse and keyboard due
to any reason?

root@beagleboard:~# dmesg | tail
usb 2-1.1: new low speed USB device using musb_hdrc and address 5
usb 2-1.1: device v093a p2510 is not supported
root@beagleboard:~/WIP_BeagleBoard# dmesg | tail
usb 2-1.2: device v04b3 p3025 is not supported
usb 2-1.2: configuration #1 chosen from 1 choice
input: LITE-ON Technology USB NetVista Full Width Keyboard. as /class/input/inpu
t3
generic-usb 0003:04B3:3025.0002: input: USB HID v1.10 Keyboard [LITE-ON Technolo
gy USB NetVista Full Width Keyboard.] on usb-musb_hdrc-1.2/input0
usb 2-1.1: USB disconnect, address 3
usb 2-1.1: new low speed USB device using musb_hdrc and address 5
usb 2-1.1: device v093a p2510 is not supported
usb 2-1.1: configuration #1 chosen from 1 choice
input: PIXART USB OPTICAL MOUSE as /class/input/input4
generic-usb 0003:093A:2510.0003: input: USB HID v1.11 Mouse [PIXART USB OPTICAL
MOUSE] on usb-musb_hdrc-1.1/input0

thanks