天嵌 ARM开发社区

 找回密码
 注册
查看: 3400|回复: 7

mkyaffs2image_for_TQ210制作的文件系统无法启动

[复制链接]
SwiftFish 发表于 2013-12-12 09:56:43 | 显示全部楼层 |阅读模式
TQ210开发板,Linux系统;U-boot和Linux内核镜像都是光盘中自带的(U-boot:u-boot_TQ210_V1.3.bin,Linux内核:zImage_3.0.8_for_linux_CoreB_V1.4.bin);

文件系统源码也是从光盘中的rootfs_linux_v1.4_CoreB.rar文件解压出来的;
文件系统的制作工具是天嵌提供的mkyaffs2image_for_TQ210(同时也尝试了mkyaffsimage_2、mkyaffs2image等光盘中的其他工具,也是同样的问题);制作的文件系统下载到开发板后文件系统文法启动,启动时超级终端的最后的一部分输出如下:
s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133400000 Hz)
s3c-sdhci s3c-sdhci.0: clock source 2: sclk_mmc (47642857 Hz)
mmc0: no vmmc regulator found
mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133400000 Hz)
s3c-sdhci s3c-sdhci.1: clock source 2: sclk_mmc (80000000 Hz)
mmc1: no vmmc regulator found
mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using ADMA
s3c-sdhci s3c-sdhci.2: clock source 0: hsmmc (133400000 Hz)
s3c-sdhci s3c-sdhci.2: clock source 2: sclk_mmc (47642857 Hz)
mmc2: no vmmc regulator found
mmc2: SDHCI controller on samsung-hsmmc [s3c-sdhci.2] using ADMA
s3c-sdhci s3c-sdhci.3: clock source 0: hsmmc (133400000 Hz)
s3c-sdhci s3c-sdhci.3: clock source 2: sclk_mmc (80000000 Hz)
mmc3: no vmmc regulator found
mmc3: SDHCI controller on samsung-hsmmc [s3c-sdhci.3] using ADMA
usbcore: registered new interface driver ushc
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ALSA device list:
  No soundcards found.
NF_TPROXY: Transparent proxy support initialized, version 4.1.0
NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
IPVS: Registered protocols ()
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: Creating netns size=872 id=0
IPVS: ipvs loaded.
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
NET: Registered protocol family 33
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
ThumbEE CPU extension supported.
s5pv210_cpufreq_init: S5PV210 cpu-freq driver
regulator_init_complete: pd_audio_supply: incomplete constraints, leaving on
regulator_init_complete: pd_mfc_supply: incomplete constraints, leaving on
gx801 2-0055: Warnning: I2C connection might be something wrong!
Goodix-TS 2-005d: Install gt811 driver.
Goodix-TS 2-005d: Driver Release Date:2012-02-08
Goodix-TS 2-005d: GT811 init info:X_MAX=800,Y_MAX=480,TRIG_MODE=RISING EDGE
input: Capacitance_ts as /devices/virtual/input/input3
Goodix-TS 2-005d: GT811 Verion:0x2010
Goodix-TS 2-005d: Create proc entry success!
Goodix-TS 2-005d: Start Capacitance_ts in interrupt mode,Driver Modify Date:2012-01-05
probe_succeed goodix_ts_probe,918,drivers/input/touchscreen/gt811.c
s3c-rtc s3c64xx-rtc: setting system clock to 2000-01-11 02:59:22 UTC (947559562)
FIMC0 registered successfully
FIMC1 registered successfully
FIMC2 registered successfully
S5PC1XX TVOUT Driver, (c) 2009 Samsung Electronics
s5p-tvout s5p-tvout: hpd status is cable removed
yaffs: dev is 32505859 name is "mtdblock3" rw
yaffs: yaffs: Attempting MTD mount of 31.3,"mtdblock3"
yaffs: block 536 is bad
yaffs: block 2980 is bad
yaffs: block 3664 is bad
yaffs: block 4003 is bad
yaffs: block 5082 is bad
yaffs: block 5370 is bad
yaffs: block 6638 is bad
yaffs: yaffs_read_super: is_checkpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:3.
Freeing init memory: 176K
Failed to execute /init.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.


之前我也认真查阅了“天嵌科技出品-TQ210 开发板使用手册V1.4.pdf”中文件系统制作的内容,自己就是按照上面的步骤进行的。

然后我使用UE查看自己生成的文件系统镜像和光盘中原带的文件系统镜像rootfs_linux_v1.4_CoreB.bin,发现两个文件大小完全相同,但是数据不同。光盘中的镜像下载后是可以启动的,我觉得可能是制作工具不对,不知道光盘中的文件系统镜像是用怎么生成的。

这个问题已经耽误项目很长一段时间了,希望天嵌技术能及时予以回复。


TQ-ZQL 发表于 2013-12-12 10:24:18 | 显示全部楼层
你的文件系统用nfs能不能启动?pc操作系统是什么(linux)?
 楼主| SwiftFish 发表于 2013-12-12 10:32:01 | 显示全部楼层
本帖最后由 SwiftFish 于 2013-12-12 11:07 编辑
TQ-ZQL 发表于 2013-12-12 10:24
你的文件系统用nfs能不能启动?pc操作系统是什么(linux)?

我没有使用nfs,是用DNW下载的。制作文件系统的是Ubuntu13.04,DNW在win7上,PC机是双重引导系统。制作得到的二进制文件我用UtraEdit查看过了,和光盘中带的文件系统的大部分数据都是不一样的(除了00和FF之外)。我想问题应该是在制作环节,不在下载环节。\
此外,文件系统是从光盘中的文件系统rootfs_linux_v1.4_CoreB.rar解压得到的,这个不会有问题吧?
TQ-ZQL 发表于 2013-12-12 11:07:33 | 显示全部楼层
本帖最后由 TQ-ZQL 于 2013-12-12 11:13 编辑

有没有用我们提供的root的文件系统(要在linux下解压)做过?也不行吗?
 楼主| SwiftFish 发表于 2013-12-12 13:26:26 | 显示全部楼层
TQ-ZQL 发表于 2013-12-12 11:07
有没有用我们提供的root的文件系统(要在linux下解压)做过?也不行吗?

重新解压了一次rootfs_linux_v1.4_CoreB.rar系统,然后用mkyaffs2image_for_TQ210工具制作文件系统下载到开发板上就可以启动了。之前应该也是在Linux中用tar命令解压缩的,不过解压缩后可能使用Ubuntu的复制菜单拷贝过。不知是不是这个原因?
TQ-lkp 发表于 2013-12-12 13:52:56 | 显示全部楼层
复制会导致一些权限和链接的问题,最好是直接解压使用
TQ-ZQL 发表于 2013-12-12 13:54:04 | 显示全部楼层
是的,复制有可能使改变文件系统像特殊权限的文件之类的,特别是linux与win相互复制。
 楼主| SwiftFish 发表于 2013-12-12 14:07:37 | 显示全部楼层
TQ-ZQL 发表于 2013-12-12 13:54
是的,复制有可能使改变文件系统像特殊权限的文件之类的,特别是linux与win相互复制。

好的,谢谢~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-4 09:45 , Processed in 1.078118 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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