need help interpreting debug output from JFFS2
Still tracking problems. I've set JFFS2 debug level to 1. Does the output below indicate any horrible evil bugginess or unrecoverableness?
Or is it just normal chatty debugging spew?
--Adam
Quoted 602 lines · XXXXXXXXX
APC was in bad state. Pingable but not logintoable. Here was the serial console debug
# sync jffs2_lookup() jffs2_lookup() jffs2_lookup() jffs2_read_inode(): inode->i_ino == 162 jffs2_do_read_inode(): ino #162 nlink is 1 jffs2_get_inode_nodes(): ino #162 Node at 00080254 is a data node version 1, highest_version now 1 dnode @00080254: ver 1, offset 0000, dsize 000c jffs2_add_full_dnode_to_inode(ino #162, f c324d5c0, fn c3f48e40) jffs2_read_inode() returning Node read from 00080254: node_crc 43769282, calculated CRC 43769282. dsize c, c0 Node read from 00080254: node_crc 43769282, calculated CRC 43769282. dsize c, c0 s# sync Node read from 00080254: node_crc 43769282, calculated CRC 43769282. dsize c, c0 # # # # # # sync Node read from 00080254: node_crc 43769282, calculated CRC 43769282. dsize c, c0# sync; reboot
Node read from 00080254:node_crc43769282, calculated CRC 43769282. dsize c, c0jffs2_lookup()jffs2_lookup()jffs2_lookup()jffs2_lookup()jffs2_lookup()jffs2_read_inode():inode->i_ino== 365jffs2_do_read_inode(): ino #365 nlink is 1jffs2_get_inode_nodes(): ino #365
Node at008b16c0is a data node
version 1,highest_versionnow 1
dnode @008b16c0: ver 1, offset 0000, dsize 000cjffs2_add_full_dnode_to_inode(ino #365, f c324d200, fn c3f48e30)jffs2_read_inode()returning
Node read from008b16c0:node_crcaee1ab3e, calculated CRCaee1ab3e. dsize c, c0
Node read from008b16c0:node_crcaee1ab3e, calculated CRCaee1ab3e. dsize c, c0The system is going down NOW !!
Sending SIGTERM to allprocessesjffs2_clear_inode(): ino #2993 mode 100000
obliterating obsoleted node at0x019bcfc8jffs2_reserve_space(): Requested0x30bytesjffs2_reserve_space(): alloc sem gotjffs2_do_reserve_space(): Giving0x3b330bytes at0x19c4cd0jffs2_write_dirent(ino #112, name at *0xc3844bfc "atd.pid"->ino #0, name_crc 0x)jffs2_add_physical_node_ref(): Node at0x19c4cd0, size0x30jffs2_complete_reservation()thread_should_wake():nr_free_blocks0,nr_erasing_blocks70,dirty_size0x46ccjffs2_add_fd_to_list( c3e8e360, c3c9d5dc (->c3e96520))Marking old dirent node (ino #2982) obsolete
obliterating obsoleted node at0x019af3d8
Dirent "dhcpd.pid" (hash0x10eb41ba, ino #2984
Dirent "atd.pid" (hash0xe6981d12, ino #0
Dirent "sbusd.pid" (hash0xea5a9fa8, ino #2987jffs2_clear_inode(): ino #2982 mode 100644
obliterating obsoleted node at0x019af408
eth0: Promiscuous mode enabled.
Terminated
#jffs2_reserve_space(): Requested0x34bytesjffs2_reserve_space(): alloc sem gotjffs2_do_reserve_space(): Giving0x3b300bytes at0x19c4d00jffs2_write_dirent(ino #18, name at *0xc3c3bb3c "systemd.in"->ino #0, name_crc )jffs2_add_physical_node_ref(): Node at0x19c4d00, size0x34jffs2_complete_reservation()thread_should_wake():nr_free_blocks0,nr_erasing_blocks70,dirty_size0x4744jffs2_add_fd_to_list( c3e96620, c3ca9f1c (->c3e96660))Marking old dirent node (ino #2981) obsolete
obliterating obsoleted node at0x019af360
Dirent "systemd.in" (hash0x2bc0eb74, ino #0
Dirent ".sysjournal" (hash0x55ee7c4f, ino #2988
Dirent "timezone18568.tmp" (hash0x776fa589, ino #0
Dirent ".sysalarm" (hash0xfd250adc, ino #2978
Sending SIGKILL to all processes.jffs2_clear_inode(): ino #2985 mode 100000
obliterating obsoleted node at0x019af79cjffs2_clear_inode(): ino #2979 mode 100000
obliterating obsoleted node at0x019af204jffs2_clear_inode(): ino #2981 mode 10644
obliterating obsoleted node at0x019af31cjffs2_garbage_collect_thread(): SIGKILL received.jffs2_lookup()jffs2_read_inode():inode->i_ino== 182jffs2_do_read_inode(): ino #182 nlink is 1jffs2_get_inode_nodes(): ino #182
Node at000fe534is a data node
version 1,highest_versionnow 1
dnode @000fe534: ver 1, offset 0000, dsize 000cjffs2_add_full_dnode_to_inode(ino #182, f c39af7a0, fn c3ec99a0)jffs2_read_inode()returning
Node read from000fe534:node_crc99719a3f, calculated CRC99719a3f. dsize c, c0jffs2_readdir()fordir_i#3
Dirent 0: ".", ino #3
Dirent 1: "..", ino #1jffs2_lookup()jffs2_read_inode():inode->i_ino== 209jffs2_do_read_inode(): ino #209 nlink is 1jffs2_get_inode_nodes(): ino #209
Node at 00120938 is a data node
version 1,highest_versionnow 1
dnode @00120938: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #209, f c3c02f00, fn c3ec9a00)Reading device numbers from flash
Node read from 00120938:node_crc71005e1e, calculated CRC71005e1e. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 213jffs2_do_read_inode(): ino #213 nlink is 1jffs2_get_inode_nodes(): ino #213
Node at00120b14is a data node
version 1,highest_versionnow 1
dnode @00120b14: ver 1, offset 0000, dsize 0004jffs2_add_full_dnode_to_inode(ino #213, f c3c02d20, fn c3ef7600)jffs2_read_inode()returning
Node read from00120b14:node_crc235fd40c, calculated CRC235fd40c. dsize 4, c0jffs2_lookup()jffs2_read_inode():inode->i_ino== 205jffs2_do_read_inode(): ino #205 nlink is 1jffs2_get_inode_nodes(): ino #205
Node at 00120768 is a data node
version 1,highest_versionnow 1
dnode @00120768: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #205, f c3c02960, fn c3edbda0)Reading device numbers from flash
Node read from 00120768:node_crcd372441d, calculated CRCd372441d. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 210jffs2_do_read_inode(): ino #210 nlink is 1jffs2_get_inode_nodes(): ino #210
Node at001209acis a data node
version 1,highest_versionnow 1
dnode @001209ac: ver 1, offset 0000, dsize 000djffs2_add_full_dnode_to_inode(ino #210, f c3c02780, fn c3f45e30)jffs2_read_inode()returning
Node read from001209ac:node_crcafc4ef65, calculated CRCafc4ef65. dsize d, c0jffs2_lookup()jffs2_read_inode():inode->i_ino== 238jffs2_do_read_inode(): ino #238 nlink is 1jffs2_get_inode_nodes(): ino #238
Node at001216bcis a data node
version 1,highest_versionnow 1
dnode @001216bc: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #238, f c38eef00, fn c3f48e20)Reading device numbers from flash
Node read from001216bc:node_crcc66d3e8a, calculated CRCc66d3e8a. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 239jffs2_do_read_inode(): ino #239 nlink is 1jffs2_get_inode_nodes(): ino #239
Node at 00121730 is a data node
version 1,highest_versionnow 1
dnode @00121730: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #239, f c38eeb40, fn c3f48e10)Reading device numbers from flash
Node read from 00121730:node_crce2de107d, calculated CRCe2de107d. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 240jffs2_do_read_inode(): ino #240 nlink is 1jffs2_get_inode_nodes(): ino #240
Node at001217a4is a data node
version 1,highest_versionnow 1
dnode @001217a4: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #240, f c38ee960, fn c3f48e00)Reading device numbers from flash
Node read from001217a4:node_crc7338e416, calculated CRC7338e416. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 241jffs2_do_read_inode(): ino #241 nlink is 1jffs2_get_inode_nodes(): ino #241
Node at 00121818 is a data node
version 1,highest_versionnow 1
dnode @00121818: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #241, f c2c88700, fn c3f48df0)Reading device numbers from flash
Node read from 00121818:node_crc4ae2a5d5, calculated CRC4ae2a5d5. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 214jffs2_do_read_inode(): ino #214 nlink is 1jffs2_get_inode_nodes(): ino #214
Node at00120b88is a data node
version 1,highest_versionnow 1
dnode @00120b88: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #214, f c2ac9180, fn c3f48de0)Reading device numbers from flash
Node read from00120b88:node_crcc60971d6, calculated CRCc60971d6. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 208jffs2_do_read_inode(): ino #208 nlink is 1jffs2_get_inode_nodes(): ino #208
Node at001208c4is a data node
version 1,highest_versionnow 1
dnode @001208c4: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #208, f c2ac9540, fn c3f48dd0)Reading device numbers from flash
Node read from001208c4:node_crcd2967652, calculated CRCd2967652. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 212jffs2_do_read_inode(): ino #212 nlink is 1jffs2_get_inode_nodes(): ino #212
Node at00120aa0is a data node
version 1,highest_versionnow 1
dnode @00120aa0: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #212, f c2962740, fn c3f48dc0)Reading device numbers from flash
Node read from00120aa0:node_crc8caa0572, calculated CRC8caa0572. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 204jffs2_do_read_inode(): ino #204 nlink is 1jffs2_get_inode_nodes(): ino #204
Node at001206f4is a data node
version 1,highest_versionnow 1
dnode @001206f4: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #204, f c2962ce0, fn c3f48db0)Reading device numbers from flash
Node read from001206f4:node_crc70e46c51, calculated CRC70e46c51. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 206jffs2_do_read_inode(): ino #206 nlink is 1jffs2_get_inode_nodes(): ino #206
Node at001207dcis a data node
version 1,highest_versionnow 1
dnode @001207dc: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #206, f c2962560, fn c3f48da0)Reading device numbers from flash
Node read from001207dc:node_crcecb93a88, calculated CRCecb93a88. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 207jffs2_do_read_inode(): ino #207 nlink is 1jffs2_get_inode_nodes(): ino #207
Node at 00120850 is a data node
version 1,highest_versionnow 1
dnode @00120850: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #207, f c316d980, fn c3f48d90)Reading device numbers from flash
Node read from 00120850:node_crc4f2f12c4, calculated CRC4f2f12c4. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 215jffs2_do_read_inode(): ino #215 nlink is 1jffs2_get_inode_nodes(): ino #215
Node at00120bfcis a data node
version 1,highest_versionnow 1
dnode @00120bfc: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #215, f c36da760, fn c3f48d80)Reading device numbers from flash
Node read from00120bfc:node_crc6a05e02d, calculated CRC6a05e02d. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 216jffs2_do_read_inode(): ino #216 nlink is 1Jffs2_get_inode_nodes(): ino #216
Node at00120c70is a data node
version 1,highest_versionnow 1
dnode @00120c70: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #216, f c36da580, fn c3f48d70)Reading device numbers from flash
Node read from00120c70:node_crcaae364ec, calculated CRCaae364ec. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 217jffs2_do_read_inode(): ino #217 nlink is 1jffs2_get_inode_nodes(): ino #217
Node at00120ce4is a data node
version 1,highest_versionnow 1
dnode @00120ce4: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #217, f c35203e0, fn c3f48d60)Reading device numbers from flash
Node read from00120ce4:node_crc09754ca0, calculated CRC09754ca0. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 218jffs2_do_read_inode(): ino #218 nlink is 1jffs2_get_inode_nodes(): ino #218
Node at00120d58is a data node
version 1,highest_versionnow 1
dnode @00120d58: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #218, f c3520200, fn c3f48d50)Reading device numbers from flash
Node read from00120d58:node_crc36be3235, calculated CRC36be3235. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 219jffs2_do_read_inode(): ino #219 nlink is 1jffs2_get_inode_nodes(): ino #219
Node at00120dccis a data node
version 1,highest_versionnow 1
dnode @00120dcc: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #219, f c35207a0, fn c3f48d40)Reading device numbers from flash
Node read from00120dcc:node_crc95281a79, calculated CRC95281a79. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 220jffs2_do_read_inode(): ino #220 nlink is 1jffs2_get_inode_nodes(): ino #220
Node at00120e40is a data node
version 1,highest_versionnow 1
dnode @00120e40: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #220, f c33ce540, fn c3f48d30)Reading device numbers from flash
Node read from00120e40:node_crc4928cf1f, calculated CRC4928cf1f. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 244jffs2_do_read_inode(): ino #244 nlink is 1jffs2_get_inode_nodes(): ino #244
Node at0012197cis a data node
version 1,highest_versionnow 1
dnode @0012197c: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #244, f c33ce360, fn c3f48d20)Reading device numbers from flash
Node read from0012197c:node_crcf9e911ce, calculated CRCf9e911ce. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 190jffs2_do_read_inode(): ino #190 nlink is 1jffs2_get_inode_nodes(): ino #190
Node at 00120078 is a data node
version 1,highest_versionnow 1
dnode @00120078: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #190, f c33ce180, fn c3f48d10)Reading device numbers from flash
Node read from 00120078:node_crc9e609b88, calculated CRC9e609b88. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 191jffs2_do_read_inode(): ino #191 nlink is 1jffs2_get_inode_nodes(): ino #191
Node at001200ecis a data node
version 1,highest_versionnow 1
dnode @001200ec: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #191, f c3414ca0, fn c3f48d00)Reading device numbers from flash
Node read from001200ec:node_crc3df6b3c4, calculated CRC3df6b3c4. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 192jffs2_do_read_inode(): ino #192 nlink is 1jffs2_get_inode_nodes(): ino #192
Node at 00120160 is a data node
version 1,highest_versionnow 1
dnode @00120160: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #192, f c34148e0, fn c3f48cf0)Reading device numbers from flash
Node read from 00120160:node_crc50775fef, calculated CRC50775fef. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 193jffs2_do_read_inode(): ino #193 nlink is 1jffs2_get_inode_nodes(): ino #193
Node at001201d4is a data node
version 1,highest_versionnow 1
dnode @001201d4: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #193, f c3414700, fn c3f48ce0)Reading device numbers from flash
Node read from001201d4:node_crcf3e177a3, calculated CRCf3e177a3. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 194jffs2_do_read_inode(): ino #194 nlink is 1jffs2_get_inode_nodes(): ino #194
Node at 00120248 is a data node
version 1,highest_versionnow 1
dnode @00120248: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #194, f c3414340, fn c3f48cd0)Reading device numbers from flash
Node read from 00120248:node_crccc2a0936, calculated CRCcc2a0936. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 245jffs2_do_read_inode(): ino #245 nlink is 1jffs2_get_inode_nodes(): ino #245
Node at001219f0is a data node
version 1,highest_versionnow 1
dnode @001219f0: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #245, f c3414e80, fn c3f48cc0)Reading device numbers from flash
Node read from001219f0:node_crc5a7f3982, calculated CRC5a7f3982. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 246jffs2_do_read_inode(): ino #246 nlink is 1jffs2_get_inode_nodes(): ino #246
Node at00121a64is a data node
version 1,highest_versionnow 1
dnode @00121a64: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #246, f c1b27580, fn c3f48cb0)Reading device numbers from flash
Node read from00121a64:node_crc65b44717, calculated CRC65b44717. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 247jffs2_do_read_inode(): ino #247 nlink is 1jffs2_get_inode_nodes(): ino #247
Node at00121ad8is a data node
version 1,highest_versionnow 1
dnode @00121ad8: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #247, f c1b27760, fn c3f48ca0)Reading device numbers from flash
Node read from00121ad8:node_crcc6226f5b, calculated CRCc6226f5b. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 248jffs2_do_read_inode(): ino #248 nlink is 1jffs2_get_inode_nodes(): ino #248
Node at00121b4cis a data node
version 1,highest_versionnow 1
dnode @00121b4c: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #248, f c2c25920, fn c3f48c90)Reading device numbers from flash
Node read from00121b4c:node_crc06c4eb9a, calculated CRC06c4eb9a. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 237jffs2_do_read_inode(): ino #237 nlink is 1jffs2_get_inode_nodes(): ino #237
Node at 00121648 is a data node
version 1,highest_versionnow 1
dnode @00121648: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #237, f c2c25380, fn c3f48c80)Reading device numbers from flash
Node read from 00121648:node_crcb2a7dbf2, calculated CRCb2a7dbf2. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 243jffs2_do_read_inode(): ino #243 nlink is 1jffs2_get_inode_nodes(): ino #243
Node at 00121908 is a data node
version 1,highest_versionnow 1
dnode @00121908: ver 1, offset 0000, dsize 0004jffs2_add_full_dnode_to_inode(ino #243, f c2c251a0, fn c3f48c70)jffs2_read_inode()returning
Node read from 00121908:node_crc2f506fba, calculated CRC2f506fba. dsize 4, c0jffs2_lookup()jffs2_read_inode():inode->i_ino== 242jffs2_do_read_inode(): ino #242 nlink is 1jffs2_get_inode_nodes(): ino #242
Node at 00121890 is a data node
version 1,highest_versionnow 1
dnode @00121890: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #242, f c2c25560, fn c3f48c60)Reading device numbers from flash
Node read from 00121890:node_crc8d516ff9, calculated CRC8d516ff9. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 4jffs2_do_read_inode(): ino #4 nlink is 1jffs2_get_inode_nodes(): ino #4
Node at000001c8is a dirent node
Adding fd "dci1300", ino #6jffs2_add_fd_to_list( c02ae240, c25b1d0c (->00000000))Dirent "dci1300" (hash0x023f0d22, ino #6
Node at 00000158 is a dirent node
Adding fd "bci", ino #5jffs2_add_fd_to_list( c3e8e420, c25b1d0c (->c02ae240))Dirent "bci" (hash0x00232f8a, ino #5
Dirent "dci1300" (hash0x023f0d22, ino #6
Node at 00000114 is a data node
version 1,highest_versionnow 4
dnode @00000114: ver 1, offset 0000, dsize 0000
metadata @00000114: ver 1jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 282jffs2_do_read_inode(): ino #282 nlink is 1jffs2_get_inode_nodes(): ino #282
Node at00122ac0is a data node
version 1,highest_versionnow 1
dnode @00122ac0: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #282, f c2602520, fn c3f48c40)Reading device numbers from flash
Node read from00122ac0:node_crcc0017418, calculated CRCc0017418. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 285jffs2_do_read_inode(): ino #285 nlink is 1jffs2_get_inode_nodes(): ino #285
Node at00122c30is a data node
version 1,highest_versionnow 1
dnode @00122c30: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #285, f c2602ca0, fn c3f48c30)Reading device numbers from flash
Node read from00122c30:node_crc37b15920, calculated CRC37b15920. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_read_inode():inode->i_ino== 224jffs2_do_read_inode(): ino #224 nlink is 1jffs2_get_inode_nodes(): ino #224
Node at 00121020 is a data node
version 1,highest_versionnow 1
dnode @00121020: ver 1, offset 0000, dsize 0002jffs2_add_full_dnode_to_inode(ino #224, f c2602ac0, fn c3f48c20)Reading device numbers from flash
Node read from 00121020:node_crcef9f3ac9, calculated CRCef9f3ac9. dsize 2, c8jffs2_read_inode()returningjffs2_lookup()jffs2_lookup()jffs2_lookup()jffs2_read_inode():inode->i_ino== 371jffs2_do_read_inode(): ino #371 nlink is 1jffs2_get_inode_nodes(): ino #371
Node at008c9ec8is a data node
version 1,highest_versionnow 1
dnode @008c9ec8: ver 1, offset 0000, dsize 000cjffs2_add_full_dnode_to_inode(ino #371, f c26028e0, fn c3f48c10)jffs2_read_inode()returning
Node read from008c9ec8:node_crcf45da4fd, calculated CRCf45da4fd. dsize c, c0jffs2_lookup()jffs2_lookup()jffs2_lookup()
Please stand by while rebooting the system.
Restarting systeíppcboot 0.9.2 (Jan 14 2002 - 10:54:14)
MPC8260 Reset Status:
MPC8260 Clock Configuration
- Bus-to-Core Mult 2.5x, VCO Div 2, 60x Bus Freq 40-120, Core Freq 100-240
- dfbrg 0, corecnf0x06, busdf 3, cpmdf 1, plldf 0, pllmf 1
-vco_out264000000,cpm_clk132000000,bus_clk66000000
-scc_clk66000000,brg_clk66000000,cpu_clk165000000Initializing...
CPU: MPC8260 (Rev 01, Mask A.1 1K22A-XC) at 165 MHz
Board: Comdev 8260 Network Processor
DRAM: 64 MB
FLASH: 128 MB
In: serial
Out: serial
Err: serialHit any key to stop autoboot: 0
Signature · 4 lines
Adam Wozniak (KG6GZR) COM DEV Wireless - Digital and Software Systems [email protected] 3450 Broad St. 107, San Luis Obispo, CA 93401 http://www.comdev.cc Voice: (805) 544-1089 Fax: (805) 544-2055
Quoted 3 lines · [email protected] said:
Still tracking problems. I've set JFFS2 debug level to 1. Does the
output below indicate any horrible evil bugginess or unrecoverableness? Or is it just normal chatty debugging spew?
That lot is harmless, at first scan.
--
dwmw2
optimum geometry
I've got 8 x 8 bit chips forming my 64 bit wide flash area. An erase block on a single chip is 128K bytes, so I've really got 128K * 8 == 1024 K == 1 M erase blocks. My JFFS2 partition is 96 Megs, so I've only got 96 erase blocks.
I'm beginning to fear that this is far from optimum. What is an optimum erase block size?
I could drop back and rewrite the MTD driver to address each chip seperately, but I'm concerned that would be both messy and tough on performance.
Thoughts?
Signature · 4 lines
Adam Wozniak (KG6GZR) COM DEV Wireless - Digital and Software Systems [email protected] 3450 Broad St. 107, San Luis Obispo, CA 93401 http://www.comdev.cc Voice: (805) 544-1089 Fax: (805) 544-2055
Re: optimum geometry
Quoted 2 lines · [email protected] said:
I'm beginning to fear that this is far from optimum. What is an
optimum erase block size?
As small as possible. The free space required by JFFS2 is measured in blocks. It could probably be reduced to 2 or 3 blocks from the current 5/6 but will always be a straight multiple of blocksize, I think.
Quoted 3 lines
I could drop back and rewrite the MTD driver to address each chip seperately, but I'm concerned that would be both messy and tough on performance.
By treating them as two pairs, you'll halve the write performance and also halve the amount of wasted space. It's a tradeoff which you have to decide on.
--
dwmw2
Re: optimum geometry
Hi!
Quoted 6 lines
Quoted 2 lines
I'm beginning to fear that this is far from optimum. What is an
optimum erase block size?As small as possible. The free space required by JFFS2 is measured in blocks. It could probably be reduced to 2 or 3 blocks from the current 5/6 but will always be a straight multiple of blocksize, I think.
I partially disagree. You are absolutely right about the "unused" blocks. But with mkfs.jffs2, I create smaller images with a blocksize of 128k, than with a blocksize of 64k. This makes sense, as jffs[12] must store some information per eraseblock, so fewer eraseblocks mean less overhead.
In effect, there is an optimal erase block size, depending on the size of your filesystem, where the sum of both effects is minimal. But in most currently practical cases, the smallest possible is still the best.
Jörn
Signature · 2 lines
Remember that not getting what you want is sometimes a wonderful stroke of luck.
Re: optimum geometry
Quoted 8 lines · [email protected] said:
I partially disagree. You are absolutely right about the "unused"
blocks. But with mkfs.jffs2, I create smaller images with a blocksize of 128k, than with a blocksize of 64k. This makes sense, as jffs[12] must store some information per eraseblock, so fewer eraseblocks mean less overhead. In effect, there is an optimal erase block size, depending on the size of your filesystem, where the sum of both effects is minimal. But in most currently practical cases, the smallest possible is still the best.
Yes, you're right. The overhead per-block is 12 bytes, but probably more important than that is the fact that more nodes have to be split up between blocks rather than being written out in one go - meaning an extra 70-odd byte header, and worse compression.
--
dwmw2
Re: optimum geometry
Hi!
Quoted 4 lines
Yes, you're right. The overhead per-block is 12 bytes, but probably more important than that is the fact that more nodes have to be split up between blocks rather than being written out in one go - meaning an extra 70-odd byte header, and worse compression.
I did a quick test and had 292 saved Bytes per eraseblock. Compared to your numbers, 2/3 of the savings are due to better compression, so the numbers can only be a rough measure.
With f being the filesystem size and e being the erase block size, the optimum should be roughly: e = sqrt(60*f)
Reasoning:
Going from e to e/2, you waste 300*f/e Bytes. Going up from e to 2*e, you waste 5*e Bytes. Minimum is reached, when both effects are equal, thus:
5*e = 300*f/e
e^2 = 60f
e = sqrt(60f)
But again, this depends on compression, so take it with a grain of salt.
Jörn
Signature · 3 lines
If you treat your beta-testers as if they're your most valuable resource, they will respond by becoming your most valuable resource. -- Eric Raymond in "The cathedral and the bazaar"