当前位置: 技术问答>linux和unix
JFFS2文件系统警告
来源: 互联网 发布时间:2017-04-27
本文导语: 各位大神,我用的是TI的AM3505,内核是2.6.37,文件系统是JFFS2,从USB复制文件到本地后会出现如下打印信息, [ 44.057525] jffs2_flush_wbuf(): Write failed with -5 [ 44.063507] Write of 1302 bytes at 0x023d14d8 failed. returned ...
各位大神,我用的是TI的AM3505,内核是2.6.37,文件系统是JFFS2,从USB复制文件到本地后会出现如下打印信息,
[ 44.057525] jffs2_flush_wbuf(): Write failed with -5
[ 44.063507] Write of 1302 bytes at 0x023d14d8 failed. returned -5, retlen 0
[ 44.070953] Not marking the space at 0x023d14d8 as dirty because the flash driver returned retlen zero
这是怎么回事,有时候复制后会直接系统崩溃,打印信息如下
[ 141.776062] jffs2_flush_wbuf(): Write failed with -5
[ 141.782623] Recovery of wbuf succeeded to 016e0000
[ 141.787933] Write of 1256 bytes at 0x01702d50 failed. returned -5, retlen 0
[ 141.795349] Not marking the space at 0x01702d50 as dirty because the flash driver returned retlen zero
[ 142.565124] jffs2_flush_wbuf(): Write failed with -5
[ 142.571563] Recovery of wbuf succeeded to 015e0000
[ 142.576873] Write of 1233 bytes at 0x0161dfa0 failed. returned -5, retlen 0
[ 142.584289] Not marking the space at 0x0161dfa0 as dirty because the flash driver returned retlen zero
[ 143.205749] jffs2_flush_wbuf(): Write failed with -5
[ 143.221374] Recovery of wbuf failed due to a second write error
[ 143.227600] Write of 1315 bytes at 0x01567dd4 failed. returned -5, retlen 0
[ 143.235046] Not marking the space at 0x01567dd4 as dirty because the flash driver returned retlen zero
[ 143.245910] JFFS2 error: (463) jffs2_link_node_ref: Adding new ref cbcee8f0 at (0x01568000-0x01568000) not immediately after previous (0x01567dd4-0x01568000)
[ 143.260833] kernel BUG at fs/jffs2/nodelist.c:644!
[ 143.265960] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 143.274536] pgd = cbd2c000
[ 143.277435] [00000000] *pgd=8bc6b031, *pte=00000000, *ppte=00000000
[ 143.284118] Internal error: Oops: 817 [#1]
[ 143.288391] last sysfs file: /sys/devices/platform/omap/omap_i2c.1/i2c-1/i2c-dev/i2c-1/dev
[ 143.296997] Modules linked in:
[ 143.300170] CPU: 0 Tainted: G W (2.6.37 #23)
[ 143.305786] PC is at __bug+0x18/0x24
[ 143.309509] LR is at __bug+0x14/0x24
[ 143.313232] pc : [] lr : [] psr: 60000013
[ 143.313232] sp : cbc4fbc0 ip : cbc4e000 fp : cf393130
[ 143.325164] r10: 00000000 r9 : 01540000 r8 : 01540000
[ 143.330596] r7 : 00000000 r6 : 00000000 r5 : cbcee8f0 r4 : cecc3040
[ 143.337371] r3 : 00000000 r2 : cbc4fbb4 r1 : c0433920 r0 : 0000003c
[ 143.344177] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 143.351593] Control: 10c5387d Table: 8bd2c019 DAC: 00000015
[ 143.357543] Process cp (pid: 463, stack limit = 0xcbc4e2f0)
[ 143.363342] Stack: (0xcbc4fbc0 to 0xcbc50000)
[ 143.367889] fbc0: cecc3040 c01b9768 01568000 01568000 01567dd4 01568000 00000001 00000000
[ 143.376373] fbe0: cecc6400 ceca62bc 00000001 c01c69e0 00000000 cbc4fc34 cf7c9000 c035da14
[ 143.384887] fc00: cecc66a4 cecc6400 01540000 00000000 cecc66a8 80000013 cecc3558 01540000
[ 143.393402] fc20: 00000090 c01c6c38 00000003 c00f6940 cecc66d8 00000800 00000130 01560000
[ 143.401916] fc40: 01540000 cecc6400 cecc6400 01540000 01540000 00000000 cf393130 c01c6cc8
[ 143.410400] fc60: c01be7b0 c00f3ef4 cecc3040 c0152028 000000d0 00000002 cbc4fcd0 cecc66a4
[ 143.418914] fc80: 60000013 cecc2988 000000d0 c0152028 cf5f8b40 cd0d7840 01540000 00020000
[ 143.427429] fca0: cecc6400 cecc2988 00000523 00000000 cf393130 c01be8c0 01540000 00000000
[ 143.435913] fcc0: cbc4fce4 00000081 00020000 00000002 cd0d7840 00000044 ce738000 000004df
[ 143.444427] fce0: cecc6400 cbc4fd4c cac3b000 00000000 00000007 00000010 00000000 00000000
[ 143.452941] fd00: cf393130 00000004 cd0d7840 c01bf0f8 000004df 00000003 00000000 000000df
[ 143.461425] fd20: 00000000 00000060 00000000 00000007 cac3b000 cecc6400 00000000 00000001
[ 143.469940] fd40: 000004df 00001000 00020000 ce738000 cf5f8a40 00426000 cd0d7840 cf3931a8
[ 143.478454] fd60: 00000000 c0d43760 00001000 00000000 cecc6400 c01b8fc4 00426000 00001000
[ 143.486968] fd80: cbc4fd9c c06902a8 cecc3040 cecc34c8 00426000 00000000 00426000 00000000
[ 143.495452] fda0: 00001000 00001000 00000000 00426000 00000000 00001000 cf393304 cbc4e000
[ 143.503967] fdc0: 00000000 c0126d14 00001000 00001000 c0d43760 cf3931a8 cd3fa080 00001000
[ 143.512481] fde0: 00000000 c0391aa0 cbc4ff40 00000001 00000000 00001000 cf3931a8 c0d43760
[ 143.520965] fe00: 52548d37 00427000 00000000 00001000 cbc4ff40 00426000 00000000 00001000
[ 143.529479] fe20: 00000000 c0128b4c 00426000 00000000 cbc4ff00 00001000 00000000 cecc3040
[ 143.537994] fe40: cf39328c cbc4ff00 cbc4fec8 cd3fa080 cf393304 00000001 00000002 00000000
[ 143.546508] fe60: c0128bec cd3fa910 22222222 00001000 22222222 cf39324c 00000000 cbc4fec8
[ 143.554992] fe80: 00000001 cbc4ff40 cd3fa080 00426000 00000000 c0128c00 cbc4fec8 cbc4ff40
[ 143.563507] fea0: 00426000 00000000 cbc4fec8 cd3fa080 cbc4ff80 cbc4e000 00000000 c0153ff4
[ 143.572021] fec0: 00426000 00000000 c018249c c00f28b0 00000000 00000001 ffffffff cd3fa080
[ 143.580505] fee0: 00000000 00000000 00000000 00000000 cecc3040 00020000 00000000 00000000
[ 143.589019] ff00: 00426000 00000000 cbc4e000 00000000 00001000 c01d6460 00001000 00000002
[ 143.597534] ff20: 00426000 00000000 cf3931a8 c01541ec 00000000 00000000 c009d5ac cd3fa888
[ 143.606048] ff40: beb10a38 00001000 cd3fa080 00001000 beb10a38 cbc4ff80 beb10a38 c01549fc
[ 143.614532] ff60: cd3fa080 beb10a38 00426000 00000000 cd3fa080 00001000 beb10a38 c0154b30
[ 143.623046] ff80: 00426000 00000000 00001000 00000000 00001000 beb10a38 00000004 00000004
[ 143.631561] ffa0: c009d708 c009d540 00001000 beb10a38 00000004 beb10a38 00001000 001f0a80
[ 143.640045] ffc0: 00001000 beb10a38 00000004 00000004 00000000 00000004 00000001 00000000
[ 143.648559] ffe0: 001f14c0 beb10a00 0000c1c4 00008eac 60000010 00000004 00000000 00000000
[ 143.657073] [] (__bug+0x18/0x24) from [] (jffs2_link_node_ref+0x88/0x1c4)
[ 143.665985] [] (jffs2_link_node_ref+0x88/0x1c4) from [] (__jffs2_flush_wbuf+0xabc/0xc68)
[ 143.676208] [] (__jffs2_flush_wbuf+0xabc/0xc68) from [] (jffs2_flash_writev+0xe4/0x46c)
[ 143.686340] [] (jffs2_flash_writev+0xe4/0x46c) from [] (jffs2_write_dnode+0x178/0x3fc)
[ 143.696380] [] (jffs2_write_dnode+0x178/0x3fc) from [] (jffs2_write_inode_range+0x2e4/0x424)
[ 143.706970] [] (jffs2_write_inode_range+0x2e4/0x424) from [] (jffs2_write_end+0x18c/0x2e4)
[ 143.717376] [] (jffs2_write_end+0x18c/0x2e4) from [] (generic_file_buffered_write+0x16c/0x228)
[ 143.728149] [] (generic_file_buffered_write+0x16c/0x228) from [] (__generic_file_aio_write+0x3fc/0x444)
[ 143.739715] [] (__generic_file_aio_write+0x3fc/0x444) from [] (generic_file_aio_write+0x6c/0xcc)
[ 143.750671] [] (generic_file_aio_write+0x6c/0xcc) from [] (do_sync_write+0x98/0xe4)
[ 143.760467] [] (do_sync_write+0x98/0xe4) from [] (vfs_write+0xac/0x134)
[ 143.769134] [] (vfs_write+0xac/0x134) from [] (sys_write+0x3c/0x68)
[ 143.777496] [] (sys_write+0x3c/0x68) from [] (ret_fast_syscall+0x0/0x3c)
[ 143.786254] Code: e92d4010 e59f000c eb0ae51c e3a03000 (e5833000)
[ 143.793029] ---[ end trace 1b75b31a2719ed1e ]---
[ 44.057525] jffs2_flush_wbuf(): Write failed with -5
[ 44.063507] Write of 1302 bytes at 0x023d14d8 failed. returned -5, retlen 0
[ 44.070953] Not marking the space at 0x023d14d8 as dirty because the flash driver returned retlen zero
这是怎么回事,有时候复制后会直接系统崩溃,打印信息如下
[ 141.776062] jffs2_flush_wbuf(): Write failed with -5
[ 141.782623] Recovery of wbuf succeeded to 016e0000
[ 141.787933] Write of 1256 bytes at 0x01702d50 failed. returned -5, retlen 0
[ 141.795349] Not marking the space at 0x01702d50 as dirty because the flash driver returned retlen zero
[ 142.565124] jffs2_flush_wbuf(): Write failed with -5
[ 142.571563] Recovery of wbuf succeeded to 015e0000
[ 142.576873] Write of 1233 bytes at 0x0161dfa0 failed. returned -5, retlen 0
[ 142.584289] Not marking the space at 0x0161dfa0 as dirty because the flash driver returned retlen zero
[ 143.205749] jffs2_flush_wbuf(): Write failed with -5
[ 143.221374] Recovery of wbuf failed due to a second write error
[ 143.227600] Write of 1315 bytes at 0x01567dd4 failed. returned -5, retlen 0
[ 143.235046] Not marking the space at 0x01567dd4 as dirty because the flash driver returned retlen zero
[ 143.245910] JFFS2 error: (463) jffs2_link_node_ref: Adding new ref cbcee8f0 at (0x01568000-0x01568000) not immediately after previous (0x01567dd4-0x01568000)
[ 143.260833] kernel BUG at fs/jffs2/nodelist.c:644!
[ 143.265960] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 143.274536] pgd = cbd2c000
[ 143.277435] [00000000] *pgd=8bc6b031, *pte=00000000, *ppte=00000000
[ 143.284118] Internal error: Oops: 817 [#1]
[ 143.288391] last sysfs file: /sys/devices/platform/omap/omap_i2c.1/i2c-1/i2c-dev/i2c-1/dev
[ 143.296997] Modules linked in:
[ 143.300170] CPU: 0 Tainted: G W (2.6.37 #23)
[ 143.305786] PC is at __bug+0x18/0x24
[ 143.309509] LR is at __bug+0x14/0x24
[ 143.313232] pc : [] lr : [] psr: 60000013
[ 143.313232] sp : cbc4fbc0 ip : cbc4e000 fp : cf393130
[ 143.325164] r10: 00000000 r9 : 01540000 r8 : 01540000
[ 143.330596] r7 : 00000000 r6 : 00000000 r5 : cbcee8f0 r4 : cecc3040
[ 143.337371] r3 : 00000000 r2 : cbc4fbb4 r1 : c0433920 r0 : 0000003c
[ 143.344177] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 143.351593] Control: 10c5387d Table: 8bd2c019 DAC: 00000015
[ 143.357543] Process cp (pid: 463, stack limit = 0xcbc4e2f0)
[ 143.363342] Stack: (0xcbc4fbc0 to 0xcbc50000)
[ 143.367889] fbc0: cecc3040 c01b9768 01568000 01568000 01567dd4 01568000 00000001 00000000
[ 143.376373] fbe0: cecc6400 ceca62bc 00000001 c01c69e0 00000000 cbc4fc34 cf7c9000 c035da14
[ 143.384887] fc00: cecc66a4 cecc6400 01540000 00000000 cecc66a8 80000013 cecc3558 01540000
[ 143.393402] fc20: 00000090 c01c6c38 00000003 c00f6940 cecc66d8 00000800 00000130 01560000
[ 143.401916] fc40: 01540000 cecc6400 cecc6400 01540000 01540000 00000000 cf393130 c01c6cc8
[ 143.410400] fc60: c01be7b0 c00f3ef4 cecc3040 c0152028 000000d0 00000002 cbc4fcd0 cecc66a4
[ 143.418914] fc80: 60000013 cecc2988 000000d0 c0152028 cf5f8b40 cd0d7840 01540000 00020000
[ 143.427429] fca0: cecc6400 cecc2988 00000523 00000000 cf393130 c01be8c0 01540000 00000000
[ 143.435913] fcc0: cbc4fce4 00000081 00020000 00000002 cd0d7840 00000044 ce738000 000004df
[ 143.444427] fce0: cecc6400 cbc4fd4c cac3b000 00000000 00000007 00000010 00000000 00000000
[ 143.452941] fd00: cf393130 00000004 cd0d7840 c01bf0f8 000004df 00000003 00000000 000000df
[ 143.461425] fd20: 00000000 00000060 00000000 00000007 cac3b000 cecc6400 00000000 00000001
[ 143.469940] fd40: 000004df 00001000 00020000 ce738000 cf5f8a40 00426000 cd0d7840 cf3931a8
[ 143.478454] fd60: 00000000 c0d43760 00001000 00000000 cecc6400 c01b8fc4 00426000 00001000
[ 143.486968] fd80: cbc4fd9c c06902a8 cecc3040 cecc34c8 00426000 00000000 00426000 00000000
[ 143.495452] fda0: 00001000 00001000 00000000 00426000 00000000 00001000 cf393304 cbc4e000
[ 143.503967] fdc0: 00000000 c0126d14 00001000 00001000 c0d43760 cf3931a8 cd3fa080 00001000
[ 143.512481] fde0: 00000000 c0391aa0 cbc4ff40 00000001 00000000 00001000 cf3931a8 c0d43760
[ 143.520965] fe00: 52548d37 00427000 00000000 00001000 cbc4ff40 00426000 00000000 00001000
[ 143.529479] fe20: 00000000 c0128b4c 00426000 00000000 cbc4ff00 00001000 00000000 cecc3040
[ 143.537994] fe40: cf39328c cbc4ff00 cbc4fec8 cd3fa080 cf393304 00000001 00000002 00000000
[ 143.546508] fe60: c0128bec cd3fa910 22222222 00001000 22222222 cf39324c 00000000 cbc4fec8
[ 143.554992] fe80: 00000001 cbc4ff40 cd3fa080 00426000 00000000 c0128c00 cbc4fec8 cbc4ff40
[ 143.563507] fea0: 00426000 00000000 cbc4fec8 cd3fa080 cbc4ff80 cbc4e000 00000000 c0153ff4
[ 143.572021] fec0: 00426000 00000000 c018249c c00f28b0 00000000 00000001 ffffffff cd3fa080
[ 143.580505] fee0: 00000000 00000000 00000000 00000000 cecc3040 00020000 00000000 00000000
[ 143.589019] ff00: 00426000 00000000 cbc4e000 00000000 00001000 c01d6460 00001000 00000002
[ 143.597534] ff20: 00426000 00000000 cf3931a8 c01541ec 00000000 00000000 c009d5ac cd3fa888
[ 143.606048] ff40: beb10a38 00001000 cd3fa080 00001000 beb10a38 cbc4ff80 beb10a38 c01549fc
[ 143.614532] ff60: cd3fa080 beb10a38 00426000 00000000 cd3fa080 00001000 beb10a38 c0154b30
[ 143.623046] ff80: 00426000 00000000 00001000 00000000 00001000 beb10a38 00000004 00000004
[ 143.631561] ffa0: c009d708 c009d540 00001000 beb10a38 00000004 beb10a38 00001000 001f0a80
[ 143.640045] ffc0: 00001000 beb10a38 00000004 00000004 00000000 00000004 00000001 00000000
[ 143.648559] ffe0: 001f14c0 beb10a00 0000c1c4 00008eac 60000010 00000004 00000000 00000000
[ 143.657073] [] (__bug+0x18/0x24) from [] (jffs2_link_node_ref+0x88/0x1c4)
[ 143.665985] [] (jffs2_link_node_ref+0x88/0x1c4) from [] (__jffs2_flush_wbuf+0xabc/0xc68)
[ 143.676208] [] (__jffs2_flush_wbuf+0xabc/0xc68) from [] (jffs2_flash_writev+0xe4/0x46c)
[ 143.686340] [] (jffs2_flash_writev+0xe4/0x46c) from [] (jffs2_write_dnode+0x178/0x3fc)
[ 143.696380] [] (jffs2_write_dnode+0x178/0x3fc) from [] (jffs2_write_inode_range+0x2e4/0x424)
[ 143.706970] [] (jffs2_write_inode_range+0x2e4/0x424) from [] (jffs2_write_end+0x18c/0x2e4)
[ 143.717376] [] (jffs2_write_end+0x18c/0x2e4) from [] (generic_file_buffered_write+0x16c/0x228)
[ 143.728149] [] (generic_file_buffered_write+0x16c/0x228) from [] (__generic_file_aio_write+0x3fc/0x444)
[ 143.739715] [] (__generic_file_aio_write+0x3fc/0x444) from [] (generic_file_aio_write+0x6c/0xcc)
[ 143.750671] [] (generic_file_aio_write+0x6c/0xcc) from [] (do_sync_write+0x98/0xe4)
[ 143.760467] [] (do_sync_write+0x98/0xe4) from [] (vfs_write+0xac/0x134)
[ 143.769134] [] (vfs_write+0xac/0x134) from [] (sys_write+0x3c/0x68)
[ 143.777496] [] (sys_write+0x3c/0x68) from [] (ret_fast_syscall+0x0/0x3c)
[ 143.786254] Code: e92d4010 e59f000c eb0ae51c e3a03000 (e5833000)
[ 143.793029] ---[ end trace 1b75b31a2719ed1e ]---
|
使用--no-cleanmarkers创建文件系统