qtopia的笔记 https://bbs.21ic.com/?584104 [收藏] [复制] [RSS]

日志

下载*.yaffs文件的问题解决了,又来了新问题。

已有 1482 次阅读2009-7-3 10:30 |系统分类:嵌入式系统

   首先,对*.yaffs文件下载问题进行简单回顾。
    使用ls -la命令查看tftp目录下文件的属性:
[root@localhost tftp]# ls -la
总计 14192
drwxr-xr-x  2 root root     4096 03-01 19:33 .
drwxr-xr-x 11 root root     4096 02-26 21:19 ..
-rw-------  1 root root 12818784 02-26 21:10 fsmdev.yaffs
-rwxr-xr-x  1 root root   133488 03-01 19:33 u-boot.bin
-rw-r--r--  1 root root  1530340 02-26 21:19 uImage
    的确是fsmdev.yaffs文件的属性和其它如u-boot.bin文件的属性是不一样的。因此执行如下命令,方可改变该文件属性。
[root@localhost tftp]# chmod 777 fsmdev.yaffs
    这样就更改了该文件的属性,即解决了载入yaffs文件系统文件的问题。

    下面遇到了写入yaffs文件系统文件的问题。
    如下:
PCY2410 # nand write.yaffs 32000000 300000 2800000

NAND write: device 0 offset 0x300000, size 0x2800000
Input block length is not page aligned
Data did not fit into device, due to bad blocks
41943040 bytes written: ERROR
    后来使用如下命令可以写入文件。
PCY2410 # nand write.yaffs2 32000000 300000 2800000

NAND write: device 0 offset 0x300000, size 0x2800000
41943040 bytes written: OK
    但写入和不写入,内核启动提示的错误信息是一样的。
……
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00100000 : "U-Boot"
0x00100000-0x00300000 : "Kernel"
0x00300000-0x02b00000 : "yaffs"
0x02b00000-0x04000000 : "jffs2"
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
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 390 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
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"
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 128K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
    这就是在昨晚遇到的问题。

路过

鸡蛋

鲜花

握手

雷人

发表评论 评论 (1 个评论)

o 2009-7-24 01:44
没有解决啊 你解决了没有啊?我也在关注呢!