Не работает мышь.
У меня тион про2
Вот лог загрузки линукса:
U-Boot 1.3.3-svn894 (Mar 5 2010 - 12:14:38)
CPU: Cirrus Logic EP9315 rev. E2
DRAM: 64 MB
Flash: 64 MB
Hit any key to stop autoboot: 0
Copy ramdisk to RAM...
## Booting kernel from Legacy Image at 60080000 ...
Image Name: Linux-2.6.20.4
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1806988 Bytes = 1.7 MB
Load Address: 00008000
Entry Point: 00008000
Loading Kernel Image ... OK
OK
## Loading init Ramdisk from Legacy Image at 00800000 ...
Image Name: Ramdisk
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 2923662 Bytes = 2.8 MB
Load Address: 00000000
Entry Point: 00000000
Starting kernel ...
Uncompressing Linux......................................................
.............................................................. done, boot
ing the kernel.
Linux version 2.6.20.4 (asv@asv) (gcc version 4.3.2 (Sourcery G++ Lite 20
08q3-72) ) #3 PREEMPT Mon Apr 27 17:20:07 MSD 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: Tion-Pro2 Board
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists. Total pages: 16192
Kernel command line: console=ttyAM0,57600n8 root=/dev/ram0
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB 32MB = 64MB total
Memory: 58224KB available (3328K code, 338K data, 120K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
ep93xx: PLL1 running at 399 MHz, PLL2 at 192 MHz
ep93xx: FCLK 199 MHz, HCLK 99 MHz, PCLK 49 MHz
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an
initrd
Freeing initrd memory: 2855K
NetWinder Floating Point Emulator V0.97 (extended precision)
audit: initializing netlink socket (disabled)
audit(5.760:1): initialized
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
io scheduler anticipatory registered
ep93xxfb_get_par: VGA 640x480
Console: switching to colour frame buffer device 80x30
fb0: EP93xx frame buffer at 640x480x16bpp
ep93xx_wdt: EP93XX watchdog, driver version 0.3
Serial: AMBA driver $Revision: 1.41 $
RS485 hardware flow control on 3rd serial port
apb:uart1: ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
apb:uart2: ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
apb:uart3: ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
RAMDISK: wrong blocksize 8096, reverting to defaults
RAMDISK driver initialized: 2 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=
xx
Cirrus Logic EP93XX IDE initialization.
physmap platform flash device: 02000000 at 60000000
physmap-flash.0: Found 2 x16 devices at 0x0 in 32-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
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
cfi_cmdset_0001: Erase suspend on write enabled
Reducing visibility of 65536KiB chip to 32768KiB
cmdlinepart partition parsing not available
RedBoot partition parsing not available
edb93xxflash: probe of edb93xxflash.0 failed with error -16
ep93xx-spi ep93xx-spi.1: SPI Controller initialized
ep93xx-usb ep93xx-usb: EP93xx OHCI
ep93xx-usb ep93xx-usb: new USB bus registered, assigned bus number 1
ep93xx-usb ep93xx-usb: irq 56, io mem 0x80020000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using ep93xx-usb and address 2
usb 1-1: not running at top speed; connect to a high speed hub
usb 1-1: configuration #1 chosen from 1 choice
usb 1-2: new low speed USB device using ep93xx-usb and address 3
usb 1-2: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver hiddev
input: MLK Defender 2.4GHz Nano mouse as /class/input/input0
input,hiddev96: USB HID v1.10 Mouse [MLK Defender 2.4GHz Nano mouse] on u
sb-ep93xx-2
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generi
c
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI U
SB Serial Device
usbcore: registered new interface driver ftdi_sio
drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
m41t00 0-0068: rtc core: registered m41t00 as rtc0
mmc_spi spi1.1: ASSUMING 3.2-3.4 V slot power
mmc_spi spi1.1: SD/MMC host mmc0, no DMA, no WP, no poweroff
mmc_spi spi1.1: setup unsupported mode bits 4
mmc_spi spi1.1: can't change chip-select polarity
mmc0: error -22 whilst initialising SDIO card
Registered led device: ep93xx:green
Registered led device: ep93xx:red
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
m41t00 0-0068: setting the system clock to 2010-07-12 09:37:42 (127892746
2)
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 120K
scsi 0:0:0:0: Direct-Access JetFlash Transcend 32GB 8.07 PQ: 0 ANSI
: 2
init started: BusyBox v1.8.2 (2008-05-04 12:22:07 EDT)
SCSI device sda: 62750720 512-byte hdwr sectors (32128 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
SCSI device sda: 62750720 512-byte hdwr sectors (32128 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
sda: sda1
sd 0:0:0:0: Attached scsi removable disk sda
Please press Enter to activate this console.
Выставляю переменные окружения на Тионе
export QWS_DISPLAY=LinuxFb
export QWS_MOUSE_PROTO=IntelluMouse:/dev/input/mouse0
пробовал делать: cat /dev/input/mouse0
на экран выводится всякие каракули в темп дерганья мыши. Значить мышь как устройство он видит.
Но в приложении курсор на экране не движется.
может ли быть дело в компиляторе? Это приложение, которое я запускаю, отлично работает на тион про с сенсорным экраном. Я использую тот же компилятор, тот же исходный код. Может надо пересобрать компилятор с другими опциями для обычной мышки?
Вот код сборки компилятора:
./configure -prefix /mnt/usbflash/Qt-4.5.2/Embedded-Arm-Static-tslib -embedded arm -xplatform qws/linux-arm-g++
-D__ARM_ARCH_4T__ -depths 8,16,24 -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -little-endian -no-gfx-qvfb
-no-gfx-multiscreen -qt-gfx-linuxfb -no-webkit -no-cups -nomake examples -static -v -qt-mouse-tslib -L/mnt/usbflash/tslib/lib/
-I/mnt/usbflash/tslib/include/
Make
Sudo make install
Вот код сборки приложения:
/mnt/usbflash/Qt-4.5.2/Embedded-Arm-Static-tslib/bin/qmake ./asu3.pro -r -spec /mnt/usbflash/Qt-4.5.2/Embedded-Arm-Static-tslib/mkspecs/qws/linux-arm-g++/
make
Данная тема была разбита на 3 разных.