天嵌 ARM开发社区

 找回密码
 注册
查看: 3081|回复: 4

触摸屏驱动移植不成功 泪奔

[复制链接]
大墩子 发表于 2012-9-19 22:38:40 | 显示全部楼层 |阅读模式
问题是这样的,小弟移植了触摸屏驱动和触摸校准 但是开机之后 都没有显示,用笔点触摸屏也没有反应。。。泪奔

以下是开机信息
----------------------------------

Start Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
Uncompressing Linux........................................................................................................ done, booting the kernel.
Linux version 2.6.25.8-EmbedSky (root@localhost.localdomain) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #11 Wed Sep 19 20:26:08 CST 2012
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
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 in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61372KB available (2924K code, 348K data, 196K init)
SLUB: Genslabs=12, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
S3C244X: Clock Support, DVS off
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: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
yaffs Aug 22 2012 05:14:53 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 40x30
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver
eth%d: Invalid ethernet MAC address.  Please set using ifconfig
Now use the default MAC address: 10:32:54:76:98:ba
eth0: dm9000 at c485e000,c4860004 IRQ 51 MAC: 10:32:54:76:98:ba
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 545 at 0x04420000
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "EmbedSky_Board_uboot"
0x00200000-0x00500000 : "EmbedSky_Board_kernel"
0x00500000-0x10000000 : "EmbedSky_Board_yaffs2"
usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
TQ2440/SKY2440 LEDS, (c) 2008,2009 www.embedsky.net
EmbedSky-buttons initialized
EmbedSky TouchScreen successfully loaded
input: EmbedSky TouchScreen as /class/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
block 506 is bad
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 196K
ln: /dev/v4l/video0: No such file or directory
Start Qt-4.5
Please press Enter to activate this console.
TQ-ZQL 发表于 2012-9-20 09:39:44 | 显示全部楼层
EmbedSky TouchScreen successfully loaded
input: EmbedSky TouchScreen as /class/input/input0
你的驱动应该是加载上的了,你试下cat dev/input/event0,然后按屏看它有没有 乱码打印出来。
如果有,可能就是你的qt上的环境变量没有配置好。你可以看下我们的bbs上的faq。
 楼主| 大墩子 发表于 2012-9-20 15:20:19 | 显示全部楼层
TQ-ZQL 发表于 2012-9-20 09:39
EmbedSky TouchScreen successfully loaded
input: EmbedSky TouchScreen as /class/input/input0
你的驱 ...

[root@EmbedSky input0]# cat /proc/bus/input/devices
I: Bus=0013 Vendor=dead Product=beef Version=0101
N: Name="EmbedSky TouchScreen"
P: Phys=ts0
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=event0 ts0
B: EV=b
B: KEY=0
B: ABS=1000003
 楼主| 大墩子 发表于 2012-9-20 15:23:02 | 显示全部楼层
TQ-ZQL 发表于 2012-9-20 09:39
EmbedSky TouchScreen successfully loaded
input: EmbedSky TouchScreen as /class/input/input0
你的驱 ...


[root@EmbedSky input0]# cat /bin/qt4
#!/bin/sh

echo Start Qt-4.5 > /dev/tq2440_serial0

export set HOME=/root
export set QTDIR=/opt/qt-4.5
export set QPEDIR=/opt/qt-4.5
export set QWS_DISPLAY="LinuxFB:/dev/fb0"
export set QWS_DISPLAY="LinuxFB:mmWidth130:mmHeight100:0"
export set QWS_KEYBOARD="TTY:/dev/tty1"
if [ -f /sys/class/input/input0/uevent ] ; then
        export set TSLIB_TSDEVICE=/dev/event0
        export set TSLIB_CALIBFILE=/etc/pointercal
        export set TSLIB_CONFFILE=/etc/ts.conf
        export set TSLIB_PLUGINDIR=/lib/ts
        export set QWS_MOUSE_PROTO="TSLIB:/dev/event0 Intellimouse:/dev/mouse0"
else
        export set QWS_MOUSE_PROTO="Intellimouse:/dev/mouse0"
        if [ -f /etc/pointercal ] ; then
                echo only use mouse > tq2440_serial0
        else
                echo "1 0 1 0 1 1 65536" >/etc/pointercal
        fi
fi
export set QT_PLUGIN_PATH=$QTDIR/plugins/
export set QT_QWS_FONTDIR=$QTDIR/lib/fonts/
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/plugins/imageformats:$LD_LIBRARY_PATH

if [ -f /etc/pointercal ] ; then
        $QPEDIR/bin/hello_cn -qws 1> /dev/null 2>/dev/null
else
        ts_calibrate
#       $QPEDIR/bin/mousecalibration
        $QPEDIR/bin/hello_cn -qws 1> /dev/null 2>/dev/null
fi
 楼主| 大墩子 发表于 2012-9-20 15:27:35 | 显示全部楼层
我知道哪里错了,在qt4的的脚本程序里

if [ -f /etc/pointercal ] ; then
        $QPEDIR/bin/hello_cn -qws 1> /dev/null 2>/dev/null
else
        ts_calibrate
#       $QPEDIR/bin/mousecalibration
        $QPEDIR/bin/hello_cn -qws 1> /dev/null 2>/dev/null
fi
-------------------------

先进行判断,直接运行 只要把矫正程序 黏贴到
$QPEDIR/bin/hello_cn -qws 1> /dev/null 2>/dev/null
前面即可
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-18 07:05 , Processed in 1.078118 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表