天嵌 ARM开发社区

 找回密码
 注册
查看: 3688|回复: 8

qte的yaffs移植(触摸屏章节),qtopia没有跑起来

[复制链接]
tongchimao 发表于 2009-3-15 22:49:14 | 显示全部楼层 |阅读模式
附带了系统启动的打印信息,rcS,fstab,qtopia的文件内容,是怎么回事啊?

Start Linux ...

Copy linux kernel from 0x0004c000 to 0x30008000, size = 0x00200000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......

Uncompressing Linux...................................................................................................... done, booting the kernel.
Linux version 2.6.25.8 (root@localhost.localdomain) (gcc version 3.4.5) #5 Sun Mar 15 16:57:48 CST 2009
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 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: 61568KB available (2844K code, 249K data, 192K init)
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
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)
yaffs Mar 15 2009 16:54:15 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: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver
eth0: dm9000 at c4902000,c4904004 IRQ 51 MAC: 10:23:45:67:89:ab
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: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 686 at 0x00ab8000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "TQ2440_uboot"
0x0004c000-0x0024c000 : "TQ2440_kernel"
0x0024c000-0x03ffc000 : "TQ_2440_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
EmbedSky TouchScreen successfully loaded
input: EmbedSky TouchScreen as /class/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
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
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: block 539 is marked bad
block 540 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 192K
hwclock: can't open '/dev/misc/rtc': No such file or directory
mknod: /dev/pts/0: Operation not permitted
ln: /dev/v4l/video0: No such file or directory
mount: mounting proc on /proc failed: Device or resource busy
eth0: link down
[01/Jan/1970:00:00:11 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:00:11 +0000] boa: server built Mar 13 2009 at 20:03:35.
[01/Jan/1970:00:00:11 +0000] boa: starting server pid=788, port 80

Please press Enter to activate this console.
[root@EmbedSky /]# cat /etc/fastab
cat: can't open '/etc/fastab': No such file or directory
[root@EmbedSky /]# cat /etc/fstab
proc                /proc                proc        defaults                0 0
sysfs                /sys                sysfs        defaults                0 0
tmpfs                /tmp                tmpfs        defaults                0 0
tmpfs                /dev                tmpfs        defaults                0 0
var                /dev                tmpfs        defaults                0 0
[root@EmbedSky /]# cat /etc/init.d/rcS
#! /bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel

#
#        Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP
hwclock -s

#SCSI modules

#Charactor modules

mount -a
mkdir /dev/pts
mount -t devpts devpts /dev/pts
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
mkdir -p /var/lock

mknod /dev/pts/0 c 136 0
mkdir /dev/fb /dev/v41
ln -s /dev/fb0 /dev/fb/0
ln -s /dev/video0 /dev/v4l/video0
ln -s /dev/ts0 /dev/h3600_tsraw

mount -t proc proc /proc
mount -t tmpfs none /tmp
mount -t tmpfs none /var

mkdir -p /var/lib
mkdir -p /var/run
mkdir -p /var/log

ifconfig lo 127.0.0.1
ifconfig eth0 hw ether 10:23:45:67:89:ab
ifconfig eth0 192.168.1.110 up
route add default gw 192.168.1.1

/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/netd start
#/etc/rc.d/init.d/leds start
qtopia &
/bin/hostname -F /etc/sysconfig/HOSTNAME
[root@EmbedSky /]# cat /bin/qtopia
#!/bin/sh

export set HOME=/root
export set QTDIR=/opt/qt
export set QPEDIR=/opt/qtopia
export set KDEDIR=/opt/kde
export set QWS_KEYBOARD="USB:/dev/input/event1"
export set QWS_MOUSE_PROTO="TPanel:/dev/touchscreen/0"
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/lib
$QPEDIR/bin/qpe > /dev/null 2>/dev/null

[root@EmbedSky /]#
亚瑟王 发表于 2009-3-16 11:36:54 | 显示全部楼层
查看一下,你应该缺少一些库。先屏蔽掉那个qtopia &,然后自己手动运行,就有可能打印出来缺少的库的名称了。
 楼主| tongchimao 发表于 2009-3-16 13:36:32 | 显示全部楼层
没有打印!


mkdir -p /var/lib
mkdir -p /var/run
mkdir -p /var/log

ifconfig lo 127.0.0.1
ifconfig eth0 hw ether 10:23:45:67:89:ab
ifconfig eth0 192.168.1.110 up
route add default gw 192.168.1.1

/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/netd start
#/etc/rc.d/init.d/leds start
#qtopia &
/bin/hostname -F /etc/sysconfig/HOSTNAME
[1] + Done(127)                  qtopia
[root@EmbedSky /]# qtopia &
[root@EmbedSky /]#
亚瑟王 发表于 2009-3-16 13:49:39 | 显示全部楼层
qtopia &在后台运行,这样是看不到打印信息的,你需要把&去掉了,再执行。
tkfly0324 发表于 2009-3-16 13:54:30 | 显示全部楼层
缺少
libqpe。so。1
tkfly0324 发表于 2009-3-16 14:11:42 | 显示全部楼层
/opt/qtopia/bin/qpe: error while loading shared libraries: libqpe.so.1: cannot o
pen shared object file: No such file or directory
fight 发表于 2009-3-17 22:02:58 | 显示全部楼层
缺少后怎么办啊
tkfly0324 发表于 2009-3-18 11:36:11 | 显示全部楼层
不好意思
应该是缺少libz.so.0
在linux2.6.13里有
这个是移植mediaplay用的
反正我的移植上后就可以了
 楼主| tongchimao 发表于 2009-3-22 22:48:12 | 显示全部楼层
是缺少了libz.so.1这个文件。
请问你是怎么定位出来的?我按照版主去执行,没有打印任何出错信息。调试这样的功能,有没有什么定位手段?

BTW,这周去江苏出差,今天刚回来。给我的感觉就是内地的城市比深圳好多了啊。去了几天,就觉得那好熟悉。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-29 18:41 , Processed in 1.062500 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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