First time apalis TK1 boot problems with keyboard/mouse

I am attempting to boot TK1, ixora board for the first time.

It is connected to a monitor through HDMI, and keyboard/mouse through USB

Once the linux OS boots up, the touch screen calibration kicks in and it screws up the mouse configuration. When the timer is about half full, it recognises a touch and attempts to calibrate. Since there is no touch screen to provide inputs, the touch screen calibration program closes down after the timer runs out. But now the mouse pointer starts dancing wildly. After a while, it stops but left clicks are not recognised.

Through out the whole process, the keyboard is not recognised at all. If it was, I can try to abort the touch screen calibration program.

Is there anything I am doing wrong here ?

Cheers

Only resistive touchscreen devices are affected by calibration. Issue is probably somewhere else.
What carrier board and BSP version are you using? Does it happen every boot?

Thanks for your help. I see. Currently the board is connected to a monitor through HDMI.

I am using Ixora. How do I check the BSP version ? If it helps, the board was delivered just last week.

After boot, you’ll see this on serial console:

.---O---.                                           
|       |                  .-.           o o        
|   |   |-----.-----.-----.| |   .----..-----.-----.
|       |     | __  |  ---'| '--.|  .-'|     |     |
|   |   |  |  |     |---  ||  --'|  |  |  '  | | | |
'---'---'--'--'--.  |-----''----''--'  '-----'-'-'-'
                -'  |
                '---'

The Angstrom Distribution apalis-tk1 ttyS0

Angstrom v2016.12 - Kernel 3.10.40-g52110f0-dirty

Apalis-TK1_LXDE-Image 2.7.2 20170404

last line is a BSP version.
If you’re using ixora version 1.1A, USB port X7 (the single one) is not connected to the TK1 SoC (It’s connected to K20 MCU) and is not available in linux.

Thanks for the instructions. Our BSP version is

Apalis_TK1_LinuxImageV2.7_20170112

.—O—.
| | .-. o o
| | |-----.-----.-----.| | .----…-----.-----.
| | | __ | —‘| ‘–.| .-’| | |
| | | | | |— || --’| | | ’ | | | |
‘—’—‘–’–‘–. |-----’‘----’‘–’ ‘-----’-‘-’-’
-’ |
‘—’

The Angstrom Distribution apalis-tk1 ttyS0

Angstrom v2016.12 - Kernel 3.10.40-v2.7b1+g19722d4

Apalis_TK1_LinuxImageV2.7_20170112

apalis-tk1 login:

In case it helps, here is the output of lsusb showing both the mouse and keyboard.

However the left click on the mouse doesnt work and the keyboard doesnt work at all.

root@apalis-tk1:~# lsusb
Bus 002 Device 005: ID 046d:c077 Logitech, Inc. M105 Optical Mouse

Bus 002 Device 006: ID 05ac:0221 Apple, Inc. Aluminum Keyboard (ISO)

Bus 002 Device 004: ID 05ac:1006 Apple, Inc. Hub in Aluminum Keyboard

Bus 003 Device 003: ID 2109:0812 VIA Labs, Inc. VL812 Hub

Bus 002 Device 003: ID 2109:2812 VIA Labs, Inc. VL812 Hub

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

Bus 003 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub

Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 002 Device 002: ID 2109:2812 VIA Labs, Inc. VL812 Hub

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

You can try connecting just the keyboard and then just the mouse directly to upper USB port in X8 connector and see if there is any change in behaviour

I tried, but it doesnt change the behaviour.

When only the mouse is connected I get the following logs, and only the right click is recognised.

[ 540.643962] input: Logitech USB Optical Mouse as /devices/platform/tegra-xhci/usb2/2-3/2-3:1.0/input/input4

[ 540.657428] hid-generic 0003:046D:C077.0009: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-tegr0

When only the keyboard is connected I get the following logs, but no keypresses are recognised.

[ 514.291711] usb 2-3: new high-speed USB device number 10 using tegra-xhci

[ 514.321103] usb 2-3: New USB device found, idVendor=05ac, idProduct=1006

[ 514.330428] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[ 514.337988] usb 2-3: Product: Keyboard Hub

[ 514.342735] usb 2-3: Manufacturer: Apple, Inc.

[ 514.347558] usb 2-3: SerialNumber: 000000000000

[ 514.356260] hub 2-3:1.0: USB hub found

[ 514.361577] hub 2-3:1.0: 3 ports detected

[ 514.631914] usb 2-3.2: new low-speed USB device number 11 using tegra-xhci

[ 514.664072] usb 2-3.2: New USB device found, idVendor=05ac, idProduct=0221

[ 514.672359] usb 2-3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[ 514.681710] usb 2-3.2: Product: Apple Keyboard

[ 514.688812] usb 2-3.2: Manufacturer: Apple, Inc

[ 514.695077] usb 2-3.2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes

[ 514.707425] usb 2-3.2: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes

I flashed the latest image on the board and now the mouse is working great !

The keyboard is still not being recognised. Any ideas on how I might be able to troubleshoot this ?

Can you try with different USB keyboard? It maybe some quirkiness of apple keyboard, the microframe messages are unexpected.

Sure, I have ordered one. Will update once I receive it. Thanks.