天嵌 ARM开发社区

 找回密码
 注册
查看: 4219|回复: 15

QT文件系统移植到板子上出错

[复制链接]
zhujunfengx 发表于 2010-5-8 16:03:48 | 显示全部楼层 |阅读模式
按PDF上做的QT根文件系统结果出现如下错误:
Starting kernel ...

Uncompressing Linux.............................................................................................................. done, booting the kernel.
Linux version 2.6.25.8 (root@localhost.localdomain) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #36 Wed May 5 18:44:45 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
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 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: 61312KB available (3088K code, 295K data, 196K 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
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
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: 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.
fuse init (API version 7.9)
yaffs May  2 2010 08:19:32 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 30x40
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, V1.30
dm9000 dm9000.0: eth%d: Invalid ethernet MAC address. Please set using ifconfig
Now use the default MAC address:    08:90:90:90:90:90
eth0: dm9000 at c485e000,c4860004 IRQ 51 MAC: 08:90:90:90:90:90 (chip)
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
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 3374 at 0x034b8000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "ZhuJunFeng uBoot"
0x00100000-0x00300000 : "ZhuJunFeng Kernel"
0x00300000-0x04000000 : "ZhuJunFeng Yaffs 2"
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
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
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
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
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 3182 is marked bad
block 3183 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 196K
Start Qtopia-2.2.0
/bin/qtopia: line 22: ts_calibrate: not found

Please press Enter to activate this console.

但是  ts_calibrate  这个文件明明在/sbin  目录下。
[root@ZhuJunFeng /sbin]#ls
adjtimex           ifconfig           mkfs.minix         sulogin
arp                ifdown             mkswap             swapoff
blkid              ifenslave          modprobe           swapon
devmem             ifup               nameif             switch_root
fbsplash           init               pivot_root         sysctl
fdisk              insmod             poweroff           syslogd
findfs             klogd              raidautorun        ts_calibrate
freeramdisk        loadkmap           reboot             udhcpc
fsck               logread            rmmod              vconfig
fsck.minix         losetup            route              watchdog
getty              lsmod              runlevel           zcip
halt               makedevs           setconsole
hdparm             man                slattach
hwclock            mdev               start-stop-daemon


郁闷了一个多月了呀。
谁来帮帮我呀。
谢谢!
亚瑟王 发表于 2010-5-8 21:35:16 | 显示全部楼层
你的ts_calibrate从哪里来的?
 楼主| zhujunfengx 发表于 2010-5-9 07:13:05 | 显示全部楼层
编绎完./arm-qtopia-2.2.0-kongqueror_build 后从/opt/EmbedSky/Qte/arm-qtopia-2.2.0/tslib-1.4.1/__install/bin/目录下用 cp -irf ts_calibrate  拷贝到自己做的根文件系统下/sbin 目录下的呀。

我发现不行后,我又从光盘下把你们做的这个文件拷贝进来也是不行。

谢谢您!   亚瑟王

看到你的帖就看到希望了,老带劲。
 楼主| zhujunfengx 发表于 2010-5-9 07:14:09 | 显示全部楼层
编绎完./arm-qtopia-2.2.0-kongqueror_build 后从/opt/EmbedSky/Qte/arm-qtopia-2.2.0/tslib-1.4.1/__install/bin/目录下用 cp -irf ts_calibrate  拷贝到自己做的根文件系统下/sbin 目录下的呀。

我发现不行后,我又从光盘下把你们做的这个文件拷贝进来也是不行。

谢谢您!   亚瑟王

看到你的帖就看到希望了,老带劲。
亚瑟王 发表于 2010-5-10 15:55:28 | 显示全部楼层
你的文件系统的库是从EABI-4.3.3中提取的还是从3.4.5的编译器中提取的?
 楼主| zhujunfengx 发表于 2010-5-10 22:24:34 | 显示全部楼层
我先把根文件系统下的 /lib 目录删除了,再重新建了一个 /lib 目录,按照PDF 上的操作
#cp -f /opt/EmbedSky/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/lib/*.so* lib -a

结果但是它还是出现上面的那个错误。/bin/qtopia: line 22: ts_calibrate: not found
亚瑟王 发表于 2010-5-11 17:31:58 | 显示全部楼层
编译qt你用的是4.3.3的编译器编译的吗?
 楼主| zhujunfengx 发表于 2010-5-11 20:42:18 | 显示全部楼层
编译qt 是用4.3.3的编译器编译的。我的虚拟机里只有这一个交叉编译器。
亚瑟王 发表于 2010-5-13 17:25:52 | 显示全部楼层
把你编译的ts_calibrate上传到论坛,我测试一下。
 楼主| zhujunfengx 发表于 2010-5-13 20:23:32 | 显示全部楼层

把后缀名改为.tar.bz2就可以了。谢谢亚瑟王!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
亚瑟王 发表于 2010-5-14 15:44:40 | 显示全部楼层
刚刚我将你的应用程序放到我这里的文件系统中,能够运行的。你这样实验,把天嵌科技提供的文件系统中的qtopia的内容删掉,然后复制你的qtopia进去,然后做成镜像,看能不能运行呢。
 楼主| zhujunfengx 发表于 2010-5-14 19:04:47 | 显示全部楼层
我按照你说的做了,但是这样的话系统启动到这里就不动了:
block 3183 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 196K

我改了inittab文件的串口输出为:s3c2410_seriel0   因为我内核是这样的。

后来我就把光盘里的根文件系统里的/lib 文件夹全部复制到我自己的根文件系统下,系统能启动结果出现如下提示:
Freeing init memory: 196K
Start Qtopia-2.2.0

Please press Enter to activate this console. Illegal instruction

[root@ZhuJunFeng /]#
亚瑟王 发表于 2010-5-18 11:22:59 | 显示全部楼层
那你没有从天嵌科技做好的文件系统中获取lib之前用的lib是怎么获取的呢?
 楼主| zhujunfengx 发表于 2010-5-19 06:35:48 | 显示全部楼层
自己按照PDF上做的。

另外就是如何移植NFS文件系统呀?

谢谢!
亚瑟王 发表于 2010-5-19 17:44:27 | 显示全部楼层
Step26章节介绍了的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-28 01:23 , Processed in 1.032266 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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