TI中文支持网
TI专业的中文技术问题搜集分享网站

JFFS2文件系统报错

我用的是AM3505内核是2.6.37,TI官网下载的

这是内核打印出来的信息

[  774.858245] jffs2_flush_wbuf(): Write failed with -5
[  774.864562] nand_do_write_ops: Attempt to write not page aligned data
[  774.871520] Recovery of wbuf failed due to a second write error
[  774.877746] Write of 494 bytes at 0x01f60968 failed. returned -5, retlen 0
[  774.885040] Not marking the space at 0x01f60968 as dirty because the flash driver returned retlen

zero
[  774.933044] JFFS2 error: (433) jffs2_link_node_ref: Adding new ref cd38fd98 at (0x01f8d800-

0x01f8d800) not immediately after previous (0x01fa0000-0x01f8d800)
[  774.947937] kernel BUG at fs/jffs2/nodelist.c:644!
[  774.953186] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  774.961853] pgd = ced78000
[  774.964721] [00000000] *pgd=8ed91031, *pte=00000000, *ppte=00000000
[  774.971435] Internal error: Oops: 817 [#1]
[  774.975677] last sysfs file: /sys/devices/platform/omap/omap_i2c.1/i2c-1/i2c-dev/i2c-1/dev
[  774.984283] Modules linked in:
[  774.987457] CPU: 0    Tainted: G        W    (2.6.37 #23)
[  774.993103] PC is at __bug+0x18/0x24
[  774.996826] LR is at __bug+0x14/0x24
[  775.000518] pc : [<c00a1138>]    lr : [<c00a1134>]    psr: 60000013
[  775.000549] sp : cecd3bc0  ip : cecd2000  fp : cf36e938
[  775.012451] r10: 00000000  r9 : 01f60968  r8 : 01f60968
[  775.017883] r7 : 00000000  r6 : 00000000  r5 : cd38fd98  r4 : cecd90c0
[  775.024688] r3 : 00000000  r2 : cecd3bb4  r1 : c0433920  r0 : 0000003c
[  775.031463] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  775.038879] Control: 10c5387d  Table: 8ed78019  DAC: 00000015
[  775.044860] Process iControl600 (pid: 433, stack limit = 0xcecd22f0)
[  775.051452] Stack: (0xcecd3bc0 to 0xcecd4000)
[  775.055999] 3bc0: cecd90c0 c01b9768 01f8d800 01f8d800 01fa0000 01f8d800 00000001 00000000
[  775.064514] 3be0: cec74000 cecb3330 00000001 c01c69e0 00000000 cecd3c34 cec8e800 c035da14
[  775.072998] 3c00: cec742a4 cec74000 01f60968 00000000 cec742a8 80000013 cecd95d8 01f60968
[  775.081512] 3c20: 00000090 c01c6c38 00000003 c00f6940 cec742d8 00000800 00000130 01f80000
[  775.090026] 3c40: 01f60000 cec74000 cec74000 01f60968 01f60968 00000000 cf36e938 c01c6cc8
[  775.098510] 3c60: c01be7b0 c00f3ef4 cecd90c0 c0152028 000000d0 00000002 cecd3cd0 cec742a4
[  775.107025] 3c80: 60000013 cbc41cb8 000000d0 c0152028 cf5f8b40 cbc56840 01f60968 00020000
[  775.115539] 3ca0: cec74000 cbc41cb8 000001ee 00000000 cf36e938 c01be8c0 01f60968 00000000
[  775.124053] 3cc0: cecd3ce4 00000102 0001f698 00000002 cbc56840 00000044 ced19000 000001aa
[  775.132537] 3ce0: cec74000 cecd3d4c cade8000 00000000 00000007 0000000c 00000000 00000000
[  775.141052] 3d00: cf36e938 00000003 cbc56840 c01bf0f8 000001aa 00000003 00000000 000000aa
[  775.149566] 3d20: 00000000 00000020 00000000 00000007 cade8000 cec74000 00000000 00000000
[  775.158050] 3d40: 000001aa 00000cee 0001f698 ced19000 cf5f8a40 00002000 cbc56840 cf36e9b0
[  775.166564] 3d60: 00000000 c0d46d00 00000cee 00000000 cec74000 c01b8fc4 00002000 00000cee
[  775.175079] 3d80: cecd3d9c c068f7f8 cecd90c0 cecd9548 00002000 00000000 00002000 00000000
[  775.183563] 3da0: 00000cee 00000cee 00000000 00002000 00000000 00000cee cf36eb0c cecd2000
[  775.192077] 3dc0: 00000000 c0126d14 00000cee 00000cee c0d46d00 cf36e9b0 cec8c280 00001000
[  775.200592] 3de0: 00000000 c0391aa0 cecd3f40 00000001 00000000 00000cee cf36e9b0 c0d46d00
[  775.209075] 3e00: 5248b7dc 00002cee 00000000 00000cee cecd3f40 00002000 00000000 00000cee
[  775.217590] 3e20: 00000000 c0128b4c 00002000 00000000 cecd3f00 00000cee 00000000 cecd90c0
[  775.226104] 3e40: cf36ea94 cecd3f00 cecd3ec8 cec8c280 cf36eb0c 00000001 00000002 00000000
[  775.234619] 3e60: c0128bec c035b7a0 22222222 00000cee 22222222 cf36ea54 00000000 cecd3ec8
[  775.243103] 3e80: 00000001 cecd3f40 cec8c280 00002000 00000000 c0128c00 cecd3ec8 cecd3f40
[  775.251617] 3ea0: 00002000 00000000 cecd3ec8 cec8c280 cecd3f80 cecd2000 00000000 c0153ff4
[  775.260131] 3ec0: 00002000 00000000 00000007 00000000 00000000 00000001 ffffffff cec8c280
[  775.268615] 3ee0: 00000000 00000000 00000000 00000000 cecd90c0 cecd9328 00000000 00000000
[  775.277130] 3f00: 00002000 00000000 00000002 c04c3cbc 00000cee 60000013 00000cee 00000002
[  775.285644] 3f20: 00002000 00000000 cf36e9b0 c01541ec cecd90c0 c04c3cbc c0155184 cecd90c0
[  775.294128] 3f40: 01338e18 00000cee cec8c280 00000cee 01338e18 cecd3f80 01338e18 c01549fc
[  775.302642] 3f60: cec8c280 01338e18 00002000 00000000 cec8c280 00000cee 01338e18 c0154b30
[  775.311157] 3f80: 00002000 00000000 00000cee 00000001 00002000 00000000 00000031 00000004
[  775.319671] 3fa0: c009d708 c009d540 00002000 00000000 00000031 01338e18 00000cee 00000002
[  775.328155] 3fc0: 00002000 00000000 00000031 00000004 012fd810 00002cee 01338e18 00000000
[  775.336669] 3fe0: 00000000 beab5fb0 40e804dc 40e80bc4 80000010 00000031 8fbfe021 8fbfe421
[  775.345184] [<c00a1138>] (__bug+0x18/0x24) from [<c01b9768>] (jffs2_link_node_ref+0x88/0x1c4)
[  775.354064] [<c01b9768>] (jffs2_link_node_ref+0x88/0x1c4) from [<c01c69e0>]

(__jffs2_flush_wbuf+0xabc/0xc68)
[  775.364318] [<c01c69e0>] (__jffs2_flush_wbuf+0xabc/0xc68) from [<c01c6cc8>]

(jffs2_flash_writev+0xe4/0x46c)
[  775.374450] [<c01c6cc8>] (jffs2_flash_writev+0xe4/0x46c) from [<c01be8c0>]

(jffs2_write_dnode+0x178/0x3fc)
[  775.384490] [<c01be8c0>] (jffs2_write_dnode+0x178/0x3fc) from [<c01bf0f8>]

(jffs2_write_inode_range+0x2e4/0x424)
[  775.395080] [<c01bf0f8>] (jffs2_write_inode_range+0x2e4/0x424) from [<c01b8fc4>]

(jffs2_write_end+0x18c/0x2e4)
[  775.405487] [<c01b8fc4>] (jffs2_write_end+0x18c/0x2e4) from [<c0126d14>]

(generic_file_buffered_write+0x16c/0x228)
[  775.416259] [<c0126d14>] (generic_file_buffered_write+0x16c/0x228) from [<c0128b4c>]

(__generic_file_aio_write+0x3fc/0x444)
[  775.427825] [<c0128b4c>] (__generic_file_aio_write+0x3fc/0x444) from [<c0128c00>]

(generic_file_aio_write+0x6c/0xcc)
[  775.438781] [<c0128c00>] (generic_file_aio_write+0x6c/0xcc) from [<c0153ff4>]

(do_sync_write+0x98/0xe4)
[  775.448547] [<c0153ff4>] (do_sync_write+0x98/0xe4) from [<c01549fc>] (vfs_write+0xac/0x134)
[  775.457244] [<c01549fc>] (vfs_write+0xac/0x134) from [<c0154b30>] (sys_write+0x3c/0x68)
[  775.465576] [<c0154b30>] (sys_write+0x3c/0x68) from [<c009d540>] (ret_fast_syscall+0x0/0x3c)
[  775.474365] Code: e92d4010 e59f000c eb0ae51c e3a03000 (e5833000)[  775.481079] —[ end trace 1b75b31a2719ed1e ]—

 

各位高手帮帮 由于这个原因系统经常会死机

kooking:

应该是驱动还有问题,查一下你使用的flash内核是否支持,

roger2:

回复 kooking:

这个在哪里看,具体位置,我看了下内核里面没有具体的NANDFLASH驱动,X-LOAD里面倒是有

leo chen:

回复 roger2:

有的,你把打印的分区信息发上来

roger2:

回复 leo chen:

[    1.555816] Creating 6 MTD partitions on "omap2-nand.0":[    1.561431] 0x000000000000-0x000000080000 : "xloader-nand"[    1.578094] 0x000000080000-0x000000240000 : "uboot-nand"[    1.592224] 0x000000240000-0x000000280000 : "params-nand"[    1.605590] 0x000000280000-0x000000780000 : "linux-nand"[    1.621124] 0x000000780000-0x000008480000 : "jffs2-nand"[    1.699188] 0x000008480000-0x000010000000 : "cramfs-nand"

roger2:

回复 leo chen:

我用的NANDFLASH芯片是三星的K9F2G08U0M

Yaoming Qin:

回复 roger2:

请您先看看下面的连接

http://processors.wiki.ti.com/index.php/Create_a_JFFS2_Target_Image

http://processors.wiki.ti.com/index.php/Put_JFFS2_Image_to_Flash

http://processors.wiki.ti.com/index.php/JFFS2_kernel_configuration

赞(0)
未经允许不得转载:TI中文支持网 » JFFS2文件系统报错
分享到: 更多 (0)