Menu

#18 USB mouse and keyboard can't work well wtih QT in bf609-ezkit

2012R2
open
nobody
None
low
none
BF609-EZKIT
2013-10-08
2013-07-04
panmingquan
No

[#7485] USB mouse and keyboard can't work well wtih QT in bf609-ezkit
Move Item | Delete Item | Clone Item | Merge Item
Submitted By: Vivi Li
Open Date
2012-11-02 10:29:36
Priority:
Assignee:
Fixed In Release:
Status:
Found In Release:
Release:
Board:
Processor:

Silicon Revision:
Uboot version or rev.:
Toolchain version or rev.:
Is this bug repeatable?:
Resolution:
App binary format:
Summary:
Details: (Edit)

USB mouse and keyboard can't work well wtih QT in bf609-ezkit.
For usb mouse, it can not move when qt sample is started.
For usb keyboard, key stroke works but qt sample fails to exit properly.
Touchscreen and tslib works fine.

Bellow is the log for keyboard test:

Booting kernel from Legacy Image at 02000000 ...

Image Name: bf609-0.0-3.5.0-ADI-2012R1-pre-0
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 17434442 Bytes = 16.6 MiB
Load Address: 00001000
Entry Point: 00293a80
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 00293a80
Linux version 3.5.0-ADI-2012R1-pre-00857-g063b746-dirty (test@linux85-beagle) (gcc version 4.3.5 (ADI-trunk/svn-5865) ) #3 Wed Oct 31 17:22:55 CST 2012
register early platform devices
bootconsole [early_shadow0] enabled
ERROR: Not running on ADSP-BF609: unknown CPUID 0x0000 Rev 0.0
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 128MB
Kernel Managed Memory: 128MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001c29d8
rodata = 0x001c29fc-0x00254a00
bss = 0x00255000-0x00268494
data = 0x002684a0-0x00290000
stack = 0x0028e000-0x00290000
init = 0x00290000-0x011f5000
available = 0x011f5000-0x07f00000
DMA Zone = 0x07f00000-0x08000000
Hardware Trace active and enabled
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF609 Rev 0.0
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock, 125 MHz SCLk, 125 MHz SCLK0, 125 MHz SCLK1 and 250 MHz DCLK
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
L2 SRAM : uncacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
L2 SRAM : uncacheable in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 32258
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf609-ezkit:eth0:off
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory available: 110492k/131072k RAM, (15764k init code, 1798k kernel code, 822k data, 1024k dma, 1172k reserved)
NR_IRQS:299
Configuring Blackfin Priority Driven Interrupts
Console: colour dummy device 80x25~M¬Ëk½±~U~A[ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (9 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 64 KB (51 KB free)
Blackfin L2 SRAM: 256 KB (256 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
ezkit_init(): request emac pins failed
bio: create slab <bio-0> at 0
SCSI subsystem initialized
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: bfin-spi probe success
bfin-spi bfin-spi.1: master is unqueued, this is deprecated
bfin-spi bfin-spi.1: bfin-spi probe success
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01e00
i2c-bfin-twi i2c-bfin-twi.1: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01f00
NET: Registered protocol family 23
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
msgmni has been set to 215
io scheduler noop registered (default)
dma_alloc_init: dma_page @ 0x053db000 - 256 pages at 0x07f00000
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc02000 (irq = 96) is a BFIN-UART
physmap platform flash device: 01000000 at b0000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x008821
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
Creating 3 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000080000 : "bootloader(nor)"
0x000000080000-0x000000480000 : "linux kernel(nor)"
0x000000480000-0x000001000000 : "file system(nor)"
m25p80 spi0.1: w25q32 (4096 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x000000000000-0x000000080000 : "bootloader(spi)"
0x000000080000-0x000000200000 : "linux kernel(spi)"
0x000000200000-0x000000400000 : "file system(spi)"
CAN device driver interface
bfin_can bfin_can.0: bfin_can device registered(&reg_base=ffc00a00, rx_irq=55, tx_irq=56, err_irq=57, sclk=125000000)
DWMAC100
No HW DMA feature register supported
Enhanced/Alternate descriptors
RX IPC Checksum Offload not configured.
stmmac_dvr_probe: warning: cannot get CSR clock
stmmac: probed
eth0: PHY ID 20005c90 at 1 IRQ 0 (stmmac-0:01) active
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
musb-hdrc musb-hdrc: USB OTG mode controller at ffcc1000 using DMA, IRQ 137
gadget: Gadget Zero, version: Cinco de Mayo 2008
gadget: zero ready
musb-hdrc musb-hdrc: MUSB HDRC host driver
musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
input: AD7879 Touchscreen as /devices/platform/bfin-spi.0/spi_master/spi0/spi0.5/input/input0
input: bfin-rotary as /devices/platform/bfin-rotary/input/input1
i2c /dev entries driver
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
eth0: device MAC address 00:e0:22:fe:88:ae
No MAC Management Counters available
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174
host=bf609-ezkit, domain=, nis-domain=(none)
bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=
Freeing unused kernel memory: 15764k freed
usb 1-1: new high-speed USB device number 2 using musb-hdrc
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.4: new low-speed USB device number 3 using musb-hdrc</bio-0>

BusyBox v1.20.2 (2012-10-31 10:17:03 CST) hush - the humble shell

root:/> successful boot attemptifinput: Dell Dell USB Keyboard as /devices/platform/musb-blackfin.0/musb-hdrc/usb1/1-1/1-1.4/1-1.4:1.0/input/input2
hid-generic 0003:413C:2003.0001: input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-musb-hdrc-1.4/input0
config ethPHY: stmmac-0:01 - Link is Up - 100/Full
0 10.100.4.50
root:/> Ethernet may has been activated already!
version
kernel: Linux release 3.5.0-ADI-2012R1-pre-00857-g063b746-dirty, build #3 Wed Oct 31 17:22:55 CST 2012
toolchain: /home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gcc release gcc version 4.3.5 (ADI-trunk/svn-5865)
user-dist: release git-92fbb0d, build #1 Wed Oct 31 10:35:40 CST 2012
root:/>
Linux version: 3.5.0-ADI-2012R1-pre-00857-g063b746-dirty
GCC version: 4.3.5 (ADI-trunk/svn-5865)
user-dist version: git-92fbb0d

** STEP 3: Start testing

** STEP 4: Light backlight for BF609-EZKIT

cd /sys/class/gpio; ls
export gpiochip0 gpiochip112 unexport
root:/sys/class/gpio>
Case 1 ...PASS
Case 1 ...PASS
echo 112 > export; ls
export gpio112 gpiochip0 gpiochip112 unexport
root:/sys/class/gpio>
Case 2 ...PASS

Case 2 ...PASS
cd gpio112; ls
active_low device direction mpower subsystem uevent value
root:/sys/devices/platform/bfin-spi.0/spi_master/spi0/spi0.5/gpio/gpio112>
Case 3 ...PASS

Case 3 ...PASS
cat d
irection; cat value
in
0
root:/sys/devices/platform/bfin-spi.0/spi_master/spi0/spi0.5/gpio/gpio112>
Case 4 ...PASS

Case 4 ...PASS
echo
high > direction
root:/sys/devices/platform/bfin-spi.0/spi_master/spi0/spi0.5/gpio/gpio112>
Case 5 ...PASS

Case 5 ...PASS
cat d
irection; cat value
out
1
root:/sys/devices/platform/bfin-spi.0/spi_master/spi0/spi0.5/gpio/gpio112>
Case 6 ...PASS

Case 6 ...PASS
cd
root:/>
** STEP 5: Runtime configuration of keyboard/mouse/touchscreen for QT

export QWS_KEYBOARD=USB:/dev/input/event2
root:/>
** STEP 6: Run QT example

/usr/share/qt/examples/widgets/calendarwidget/calendarwidget -qws

Case 7 ...PASS

(Ctrl+C to exit app but failed)

Case 8 ...FAIL

Bellow is the steps to test mouse:

** STEP 4: Light backlight for BF609-EZKIT

root:/> cd /sys/class/gpio; ls
export gpiochip0 gpiochip112 unexport
root:/sys/class/gpio>
Case 1 ...PASS

Case 1 ...PASS
echo 112 > export; ls
export gpio112 gpiochip0 gpiochip112 unexport
root:/sys/class/gpio>
Case 2 ...PASS

Case 2 ...PASS
cd gpio112; ls
active_low device direction ^[[1;34mpower subsystem uevent value
root:/sys/devices/platform/bfin-spi.0/spi_master/spi0/spi0.5/gpio/gpio112>
Case 3 ...PASS

Case 3 ...PASS
cat d
irection; cat value
in
0
root:/sys/devices/platform/bfin-spi.0/spi_master/spi0/spi0.5/gpio/gpio112>

Case 4 ...PASS

Case 4 ...PASS
echo
high > direction
root:/sys/devices/platform/bfin-spi.0/spi_master/spi0/spi0.5/gpio/gpio112>
Case 5 ...PASS

Case 5 ...PASS
cat d
irection; cat value
out
1
root:/sys/devices/platform/bfin-spi.0/spi_master/spi0/spi0.5/gpio/gpio112>
Case 6 ...PASS

Case 6 ...PASS
cd
root:/>

** STEP 5: Runtime configuration of keyboard/mouse/touchscreen for QT

export QWS_MOUSE_PROTO=IntelliMouse:/dev/input/mouse0
root:/>
** STEP 6: Run QT example

/usr/share/qt/examples/widgets/calendarwidget/calendarwidget -qws

1 Attachments

Discussion

  • panmingquan

    panmingquan - 2013-07-04
     

    Last edit: panmingquan 2013-07-04
  • Sonic Zhang

    Sonic Zhang - 2013-07-09
    • Priority: 2 --> low
     
  • Vivi Li

    Vivi Li - 2013-10-08
     
  • Vivi Li

    Vivi Li - 2013-10-08

    USB keyboard can work now wtih QT in bf609-ezkit in 2013R1. QT still has problem with usb mouse.

     

Log in to post a comment.

MongoDB Logo MongoDB