UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer ian@lang
Observer
154 Views
Registered: ‎01-11-2019

External USB HUB keyboard/mouse problems in Petalinux on Zynq-7000 device

I am having difficulty getting keyboard and mouse working on a Zynq board with external USB Hub.  I have narrowed the problem down as far as I am able but would appreciate some assistance from the good people on this forum.

Firstly, I can see that both keyboard and mouse are being recognised during the boot (full transcript attached).  Mouse and keyboard are also both receiving power during the boot.

usb 1-1.1: new low-speed USB device number 3 using ci_hdrc
usb 1-1.1: New USB device found, idVendor=1c4f, idProduct=0002, bcdDevice= 1.10
usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.1: Product: USB Keyboard
usb 1-1.1: Manufacturer: SIGMACHIP
input: SIGMACHIP USB Keyboard as /devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:1C4F:0002.0001/input/input0
hid-generic 0003:1C4F:0002.0001: input: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-ci_hdrc.0-1.1/input0
input: SIGMACHIP USB Keyboard Consumer Control as /devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:1C4F:0002.0002/input/input1
input: SIGMACHIP USB Keyboard System Control as /devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:1C4F:0002.0002/input/input2
hid-generic 0003:1C4F:0002.0002: input: USB HID v1.10 Device [SIGMACHIP USB Keyboard] on usb-ci_hdrc.0-1.1/input1
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
usb 1-1.3: new low-speed USB device number 4 using ci_hdrc
systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
usb 1-1.3: New USB device found, idVendor=046d, idProduct=c077, bcdDevice=72.00
usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.3: Product: USB Optical Mouse
usb 1-1.3: Manufacturer: Logitech
input: Logitech USB Optical Mouse as /devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:046D:C077.0003/input/input3
hid-generic 0003:046D:C077.0003: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-ci_hdrc.0-1.3/input0

Secondly, I can see keyboard, mouse and an attached USB stick using lsusb.   So I feel the device tree (also attached) must be somewhere close.

Bus 001 Device 007: ID 13fe:6300 Kingston Technology Company Inc. 

Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse 

Bus 001 Device 006: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory 

Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub 

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 

I can mount the USB stick and see its contents.

ubuntu@arm:~$ sudo mount /dev/sda1 /media/scratch
ubuntu@arm:~$ ls /media/scratch/
testfile.txt

And I can see evidence of mouse and keyboard in /dev/input:

ubuntu@arm:~$ ls /dev/input
by-id by-path event0 event1 event2 event3 mice mouse0

So as far as I can tell, hardware and device tree are reasonable.  Whether the kernel is correctly configured (configuration attached), I cannot say for sure.  Or perhaps I  need to install further software?  For information, I have an Ubuntu root file system and I'm attempting to get both running with XFCE desktop.

All suggestions gratefully received.

0 Kudos