天嵌 ARM开发社区

 找回密码
 注册
查看: 8753|回复: 31

qt2.2.0移植,没法进入界面,触摸屏不能用怎么回事

[复制链接]
lkcumt 发表于 2010-11-22 23:32:39 | 显示全部楼层 |阅读模式
启动串口打印信息:u-boot是用的开发板提供的,linux2.6.30.4系统,文件系统是自己按照手册做的。
##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !
Booting Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000 ... Copy Kern
el to SDRAM done,NOW, Booting Linux......
Uncompressing Linux.............................................................
.................................................................. done, booting
the kernel.
Linux version 2.6.30.4-EmbedSky (root@EmbedSky) (gcc version 4.3.3 (Sourcery G++
Lite 2009q1-176) ) #20 Sun Nov 14 20:35:49 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
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: 60700KB available (3484K code, 382K data, 196K init, 0K highmem)
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 724 bytes
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 97 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
cfg80211: Calling CRDA to update world regulatory domain
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
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
yaffs Nov 14 2010 12:42:45 Installing.
msgmni has been set to 118
alg: No test for stdrng (krng)
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
backlightinitialized
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 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
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
Now use the default MAC address:10:23:45:67:89:ab
eth0 (dm9000): not using net_device_ops yet
eth0: dm9000e at c4810000,c4814004 IRQ 51 MAC: 10:23:45:67:89:ab (EmbedSky)
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-bi
t)
Scanning device for bad blocks
Bad eraseblock 640 at 0x000005000000
Bad eraseblock 641 at 0x000005020000
Bad eraseblock 700 at 0x000005780000
Bad eraseblock 991 at 0x000007be0000
Bad eraseblock 1063 at 0x0000084e0000
Bad eraseblock 1192 at 0x000009500000
Bad eraseblock 1417 at 0x00000b120000
Bad eraseblock 1431 at 0x00000b2e0000
Bad eraseblock 1825 at 0x00000e420000
Bad eraseblock 1827 at 0x00000e460000
Bad eraseblock 1830 at 0x00000e4c0000
Bad eraseblock 1831 at 0x00000e4e0000
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "EmbedSky_Board_uboot"
0x000000200000-0x000000500000 : "EmbedSky_Board_kernel"
0x000000500000-0x000010000000 : "EmbedSky_Board_yaffs2"
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
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
usbcore: registered new interface driver cdc_wdm
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
TQ2440 TouchScreen successfully loaded
input: TQ2440 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
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: starting watchdog timer
s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq enabled
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
s3c2440-sdi s3c2440-sdi: powered down.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.18a.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
S3C24XX_UDA134X SoC Audio driver
UDA134X SoC Audio Codec
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
  #0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
Initializing XFRM netlink socket
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
s3c2410-rtc s3c2410-rtc: setting system clock to 2010-11-22 23:49:12 UTC (129046
9752)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
block 601 is bad
block 602 is bad
block 661 is bad
block 952 is bad
block 1024 is bad
block 1153 is bad
block 1378 is bad
block 1392 is bad
block 1786 is bad
block 1788 is bad
block 1791 is bad
block 1792 is bad
Partially written block 335 detected
Partially written block 335 detected
Partially written block 335 detected
Partially written block 335 detected
Partially written block 335 detected
Partially written block 335 detected
Partially written block 335 detected
Partially written block 335 detected
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 196K
Start Qtopia-2.2.0
Try to bring eth0 interface up ...
ifconfig eth0 hw ether 10:23:45:67:89:ab
eth0: link down
ifconfig eth0 192.168.1.6 netmask 255.255.255.0 up
add default gw 192.168.1.2
Done
[22/Nov/2010:23:49:19 +0000] boa: server version Boa/0.94.13
[22/Nov/2010:23:49:19 +0000] boa: server built Nov  7 2010 at 10:36:53.
[22/Nov/2010:23:49:19 +0000] boa: starting server pid=972, port 80

Please press Enter to activate this console. Cannot open dev/mouse0 (No such fil
e or directory)
Warning: Unable to open /usr/share/zoneinfo/zone.tab
Warning: Timezone data must be installed at /usr/share/zoneinfo/
Warning: TimeZone::data Can't create a valid data object for 'America/New_York'
Warning: Need to run firstuse
Warning: language message - en_US
Warning: and its not null
Warning: loading /opt/Qtopia/i18n/en_US/qt.qm
Warning: loading /opt/Qtopia/i18n/en_US/qpe.qm
Warning: loading /opt/Qtopia/i18n/en_US/libqpe.qm
Warning: loading /opt/Qtopia/i18n/en_US/libqtopia.qm
Warning: loading /opt/Qtopia/i18n/en_US/language.qm
Warning: loading /opt/Qtopia/i18n/en_US/timezone.qm
Warning: loading /opt/Qtopia/i18n/en_US/systemtime.qm
 楼主| lkcumt 发表于 2010-11-22 23:38:50 | 显示全部楼层
插入鼠标能启动进入界面,但是不插鼠标,不能进去,触摸屏不能用,按显示屏没反应,不知怎么回事,下面是qtopia的内容:
#!/bin/sh

echo Start Qtopia-2.2.0 >/dev/tq2440_serial0

export set HOME=/root
export set QTDIR=/opt/Qtopia
export set QPEDIR=/opt/Qtopia
export set KDEDIR=/opt/kde
export set QWS_KEYBOARD="TTY:/dev/tty1"
if [ -f /sys/devices/virtual/input/input0/uevent ] ; then
        export set TSLIB_TSDEVICE=/dev/event0
        export set TSLIB_CONFFILE=/etc/ts.conf
        export set TSLIB_PLUGINDIR=/lib/ts
        export set TSLIB_CALIBFILE=/etc/pointercal
        export set QWS_MOUSE_PROTO="TPanel:/dev/event0 USB:/dev/mouse0"
else
        export set QWS_MOUSE_PROTO="USB: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 PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/lib

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

请管理员帮助解决一下。编译器是4.3.3的,天嵌提供的。
天嵌_support1 发表于 2010-11-23 10:21:31 | 显示全部楼层
2# lkcumt


我看你贴出来的第一个信息,系统已经启动完成了呀。
你的Qtopia界面不能点击,是不是校准出了问题呢?
 楼主| lkcumt 发表于 2010-11-23 12:12:13 | 显示全部楼层
3# embedsky_lxt


我也不知道,触摸屏没反应,如果是校准的问题,怎么解决呢 :)
天嵌_support1 发表于 2010-11-23 14:12:20 | 显示全部楼层
4# lkcumt

if [ -f /etc/pointercal ] ; then
        $QPEDIR/bin/qpe #1>/dev/null 2>/dev/null
else
        ts_calibrate
        $QPEDIR/bin/qpe #1>/dev/null 2>/dev/null
fi
上面已经说明了,如果 /et/pointercal 这个文件存在,就不启动校准程序ts_calibrate.
所以你可以通过串口来和板子交互,启动ts_calibrate 来校准,或者直接 删除 /et/pointercal,
然后重启,这样就就可以校准。
另外看看你的 /dev 目录下是不是 有/dev/event0  还是 /dev/event1
 楼主| lkcumt 发表于 2010-11-23 17:17:24 | 显示全部楼层
5# embedsky_lxt


启动板子以后,etc目录下出现了pointercal文件,删除以后重启还是不行
另外有  /dev/event0,没有/dev/event1。启动板子以后,显示“Tap anywhere......”,然后就没反应了。:) :)
 楼主| lkcumt 发表于 2010-11-23 17:24:22 | 显示全部楼层
5# embedsky_lxt

这是我的sbin目录下的内容:
[root@EmbedsKy /sbin]#ls
EmbedSky_wdg       hwclock            mdev               slattach
adjtimex           ifconfig           mkfs.minix         start-stop-daemon
arp                ifdown             mkswap             sulogin
blkid              ifenslave          modprobe           swapoff
boa                ifup               nameif             swapon
devmem             init               net_set            switch_root
fbsplash           insmod             pivot_root         sysctl
fdisk              klogd              poweroff           syslogd
findfs             loadkmap           raidautorun        ts_18b20
freeramdisk        logread            reboot             ts_calibrate
fsck               losetup            rmmod              udhcpc
fsck.minix         lsmod              route              vconfig
getty              madplay            runlevel           watchdog
halt               makedevs           serial_test        zcip
hdparm             man                setconsole
[root@EmbedsKy /sbin]#ts_calibrate
ts_open: No such file or directory
[root@EmbedsKy /sbin]#
天嵌_support1 发表于 2010-11-23 17:36:25 | 显示全部楼层
7# lkcumt


那是触摸不准的问题引起,我估计。
else
        export set QWS_MOUSE_PROTO="USB: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
把上面的设置中

        if [ -f /etc/pointercal ] ; then
                echo only use mouse >tq2440_serial0
        else
                echo "1 0 1 0 1 1 65536" >/etc/pointercal
        fi

改为
         if [ -f /etc/pointercal ] ; then
                echo only use mouse >tq2440_serial0
         fi

或者 完全去除它就可以校准了
 楼主| lkcumt 发表于 2010-11-23 18:28:09 | 显示全部楼层
8# embedsky_lxt

改成如下所示,还是老样子啊,不能校准:)
else
        export set QWS_MOUSE_PROTO="USB: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

启动信息:
Cannot open dev/mouse0 (No such fil
e or directory)
Warning: Unable to open /usr/share/zoneinfo/zone.tab
Warning: Timezone data must be installed at /usr/share/zoneinfo/
Warning: TimeZone::data Can't create a valid data object for 'America/New_York'

此时在etc下没有产生pointercal文件
天嵌_support1 发表于 2010-11-24 10:46:49 | 显示全部楼层
9# lkcumt


Warning: Unable to open /usr/share/zoneinfo/zone.tab

看看你的 /usr/share/ 中有没有 zoneinfo 的文件夹。
另外就是你在 /etc/profile 中添加相应的环境变量设置一下,可以参考一下原来文件系统的。
 楼主| lkcumt 发表于 2010-11-24 15:52:50 | 显示全部楼层
10# embedsky_lxt


里面没有zoneinfo文件夹,下面是我profile里内容:
# Ash profile
# vim:syntax=sh

# No core files by default
#ulimit -S -c 0 > /dev/null 2>&1
export set HOME=/root
export set QTDIR=/opt/Qtopia
export set QPEDIR=/opt/Qtopia
export set KDEDIR=/opt/kde
export set QWS_KEYBOARD="TTY:/dev/tty1"
if [ -f /sys/devices/virtual/input/input0/uevent ]; then
        export set TSLIB_TSDEVICE=/dev/event0
        export set TSLIB_CONFFILE=/etc/ts.conf
        export set TSLIB_PLUGINDIR=/lib/ts
        export set TSLIB_CALIBFILE=/etc/pointercal
        export set QWS_MOUSE_PROTO="TPanel:/dev/event0 USB:/dev/mouse0"
else
        export set QWS_MOUSE_PROTO="USB:/dev/mouse0"
fi
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/lib

USER="`id -un`"
LOGNAME=$USER
PS1='[\u@\h \W]#'
PATH=$PATH

HOSTNAME=`/bin/hostname`

export USER LOGNAME PS1 PATH

和原文件系统比较了,没有不同的
而且今天我做了qt4.5的文件系统,启动以后直接进入了第一个hello_cn界面,没有校准那一步,触摸屏还是不能用,好奇怪,还有可能是什么原因呢?
 楼主| lkcumt 发表于 2010-11-30 21:36:24 | 显示全部楼层
本帖最后由 lkcumt 于 2010-11-30 21:38 编辑

10# embedsky_lxt


管理员再看看啊 ,我的问题还没有解决掉:)
天嵌_support1 发表于 2010-12-1 11:37:19 | 显示全部楼层
12# lkcumt

光盘的文件系统有的嘛。
/usr/share/zoneinfo/  这个目录,你弄一个过来
 楼主| lkcumt 发表于 2010-12-1 16:05:18 | 显示全部楼层
13# embedsky_lxt


那个目录弄个过来了,现在情况是这样的,我用你们的内核镜像 加我的文件系统,能够校准了
但是用我的镜像 加我的文件系统 或者加你们的文件系统,都不能够校准。触摸屏移植我是按照手册一步一步来的:
    首先复制 tq2440_ts.c
      然后修改41行 ,然后修改Config 和 Makefile
      下图是我的内核配置:
 楼主| lkcumt 发表于 2010-12-1 16:11:28 | 显示全部楼层
(320)  Horizontal screen resolution
(240)  Vertial screen resolution
< > Joystick interface
<* > Event interface
< > Event debugging

那个触摸驱动也加上了< *> EmbedSky TQ2440 ……
管理员再给看看怎么回事:):)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-28 13:26 , Processed in 1.032161 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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