~ # /mtd/sbin/flash_erase /dev/mtd0 0 0 Erasing 128 Kibyte @ 1dfe0000 -- 100 % complete ~ # echo all > /proc/yaffs ~ # mkdir -p /mnt/nand ~ # mount -t yaffs2 /dev/mtdblock0 /mnt/nand yaffs: dev is 32505856 name is "mtdblock0" rw yaffs: passed flags "" <7>yaffs: nandmtd2_read_chunk_tags chunk 90880 data (null) tags cc469bc8 <7>yaffs: packed tags obj -1 chunk -1 byte -1 seq -1 <7>yaffs: packed tags obj -1 chunk -1 byte -1 seq -1 ~ # cd mnt/nand/ /mnt/nand # ls lost+found /mnt/nand # cat /proc/yaffs Multi-version YAFFS built:Jan 11 2012 09:16:37 Device 0 "jffs2" start_block.......... 0 end_block............ 3839 total_bytes_per_chunk 2048 use_nand_ecc......... 1 no_tags_ecc.......... 0 is_yaffs2............ 1 inband_tags.......... 0 empty_lost_n_found... 1 disable_lazy_load.... 0 refresh_period....... 500 n_caches............. 10 n_reserved_blocks.... 5 always_check_erased.. 0 data_bytes_per_chunk. 2048 chunk_grp_bits....... 0 chunk_grp_size....... 1 n_erased_blocks...... 3840 blocks_in_checkpt.... 0 n_tnodes............. 0 n_obj................ 4 n_free_chunks........ 245760 n_page_writes........ 0 n_page_reads......... 0 n_erasures........... 0 n_gc_copies.......... 0 all_gcs.............. 0 passive_gc_count..... 0 oldest_dirty_gc_count 0 n_gc_blocks.......... 0 bg_gcs............... 0 n_retried_writes..... 0 n_retired_blocks..... 0 n_ecc_fixed.......... 0 n_ecc_unfixed........ 0 n_tags_ecc_fixed..... 0 n_tags_ecc_unfixed... 0 cache_hits........... 0 n_deleted_files...... 0 n_unlinked_files..... 0 refresh_count........ 1 n_bg_deletions....... 0 tags_used............ 0 summary_used......... 0 /mnt/nand # cd lost\+found/ /mnt/nand/lost+found # ls /mnt/nand/lost+found # cd .. /mnt/nand # mkdir test Unable to handle kernel paging request for data at address 0x0000040f Faulting instruction address: 0xc0119a20 Oops: Kernel access of bad area, sig: 11 [#1] BRE750FX last sysfs file: /sys/devices/platform/bre_nand.0/mtd/mtd0/flags Modules linked in: NIP: c0119a20 LR: c0119a08 CTR: c017a624 REGS: cc46bac0 TRAP: 0300 Not tainted (2.6.39.3-svn471) MSR: 00009032 CR: 24044282 XER: 20000000 DAR: 0000040f, DSISR: 42000000 TASK = cbc58b40[841] 'mkdir' THREAD: cc46a000 GPR00: 80000001 cc46bb70 cbc58b40 0000001f c04545ea 00000019 c0452eb0 00004000 GPR08: 000000ff c0349700 0000040b 0000030c 24044222 100db7cc cc46bc28 c02da4b8 GPR16: 40000010 c02da430 c02da380 c02da3e0 c02da3b0 c0350000 00000000 cbd52800 GPR24: 00000001 00000000 00000000 00000041 cc46bcc8 00000041 cbd5a000 00000041 NIP [c0119a20] yaffs_summary_add+0xb8/0x264 LR [c0119a08] yaffs_summary_add+0xa0/0x264 Call Trace: [cc46bb70] [c0119a08] yaffs_summary_add+0xa0/0x264 (unreliable) [cc46bc00] [c01145a0] yaffs_wr_chunk_tags_nand+0x8c/0xfc [cc46bc20] [c010ec98] yaffs_write_new_chunk+0x2dc/0x588 [cc46bcc0] [c011078c] yaffs_update_oh+0x298/0x498 [cc46be80] [c0116510] yaffs_set_attribs+0xa8/0xc0 [cc46be90] [c01086d4] yaffs_setattr+0xd4/0x190 [cc46beb0] [c00a15a8] notify_change+0xf0/0x2a8 [cc46bee0] [c0088238] sys_fchmodat+0xb8/0xdc [cc46bf40] [c000f1ac] ret_from_syscall+0x0/0x38 --- Exception: c01 at 0xfdc08ec LR = 0x10031a64 Instruction dump: 7f84e378 38610008 4bffa6a9 3c60c02e 3863be8c 4bf03f75 811e0e08 57e0103a 57eb2036 7d605850 80010010 7d4b4214 <900a0004> 81210014 912a0008 8001000c ---[ end trace 2587c3887bbd6046 ]--- Segmentation fault /mnt/nand # yaffs: yaffs_write_super Unable to handle kernel paging request for data at address 0x00000113 Faulting instruction address: 0xc0108000 Oops: Kernel access of bad area, sig: 11 [#2] BRE750FX last sysfs file: /sys/devices/platform/bre_nand.0/mtd/mtd0/flags Modules linked in: NIP: c0108000 LR: c0109dfc CTR: c017a624 REGS: cc46fea0 TRAP: 0300 Tainted: G D (2.6.39.3-svn471) MSR: 00009032 CR: 24002084 XER: 20000000 DAR: 00000113, DSISR: 40000000 TASK = cc43b2c0[79] 'sync_supers' THREAD: cc46e000 GPR00: 000000ff cc46ff50 cc43b2c0 cbd5a000 00000000 ffffffff c0452eb0 00000000 GPR08: 000000ff 000000ff 000000ff 0000fe01 24000082 100db7cc 00000001 0d0cc000 GPR16: 0000003f 0cff2d24 0cfaaaac 0cfaa6ac 00000000 0cfaa2c6 00000001 0cfaa268 GPR24: 00000000 c003795c c0350000 cc425f44 00000000 00000000 cbcc1a00 cbd5a000 NIP [c0108000] yaffs_bg_gc_urgency+0x24/0x70 LR [c0109dfc] yaffs_do_sync_fs+0x3c/0x17c Call Trace: [cc46ff80] [c008c5f0] sync_supers+0xf8/0x110 [cc46ffa0] [c006ab60] bdi_sync_supers+0x30/0x54 [cc46ffb0] [c00379d8] kthread+0x7c/0x80 [cc46fff0] [c000dd84] kernel_thread+0x4c/0x68 Instruction dump: 38000000 90030008 4e800020 8103000c 38e00000 80030124 81230d48 7d6801d6 81430090 7f8b4840 409c0008 7ceb4850 <800a0014> 2f800000 419e003c 5500083c ---[ end trace 2587c3887bbd6047 ]--- yaffs: yaffs_background yaffs: yaffs locking cbc59680 Unable to handle kernel paging request for unknown fault Faulting instruction address: 0xc02524e0 Oops: Kernel access of bad area, sig: 11 [#3] BRE750FX last sysfs file: /sys/devices/platform/bre_nand.0/mtd/mtd0/flags Modules linked in: NIP: c02524e0 LR: c0108150 CTR: c017a624 REGS: cc48be70 TRAP: 0600 Tainted: G D (2.6.39.3-svn471) MSR: 00009032 CR: 24000082 XER: 20000000 DAR: 00000117, DSISR: 00000000 TASK = cbc59680[835] 'yaffs-bg-1' THREAD: cc48a000 GPR00: c0108190 cc48bf20 cbc59680 00000117 00265f18 ffffffff c0452eb0 00004000 GPR08: 00265f18 c0349700 00265f18 c03503d0 44000082 100db7cc 00000001 0d0cc000 GPR16: 0000003f 0cff2d24 c02d96ec c0350000 c0350000 c0340000 c010b3dc cbd4b000 GPR24: cc48bf38 0000627e cbd5a000 000061b6 000061b6 000060bc c0350000 cbd5a000 NIP [c02524e0] mutex_lock+0x0/0x1c LR [c0108150] yaffs_gross_lock+0x30/0x74 Call Trace: [cc48bf20] [c0108190] yaffs_gross_lock+0x70/0x74 (unreliable) [cc48bf30] [c010b474] yaffs_bg_thread_fn+0x78/0x204 [cc48bfb0] [c00379d8] kthread+0x7c/0x80 [cc48bff0] [c000dd84] kernel_thread+0x4c/0x68 Instruction dump: 4bdc6895 80010014 38210010 7c0803a6 4e800020 7c001828 30000001 7c00192d 40a2fff4 2f800000 4dbd0020 4bffffb0 <7c001828> 3000ffff 7c00192d 40a2fff4 ---[ end trace 2587c3887bbd6048 ]--- /mnt/nand # cat /proc/yaffs Multi-version YAFFS built:Jan 11 2012 09:16:37 Device 0 "(null)" start_block.......... 255 end_block............ 255 total_bytes_per_chunk 255 use_nand_ecc......... 255 no_tags_ecc.......... 255 is_yaffs2............ 255 inband_tags.......... 255 empty_lost_n_found... 255 disable_lazy_load.... 255 refresh_period....... 255 n_caches............. 255 n_reserved_blocks.... 255 always_check_erased.. 255 data_bytes_per_chunk. 255 chunk_grp_bits....... 0 chunk_grp_size....... 255 n_erased_blocks...... 255 blocks_in_checkpt.... 255 n_tnodes............. 255 n_obj................ 255 n_free_chunks........ 255 n_page_writes........ 255 n_page_reads......... 255 n_erasures........... 255 n_gc_copies.......... 255 all_gcs.............. 255 passive_gc_count..... 255 oldest_dirty_gc_count 255 n_gc_blocks.......... 255 bg_gcs............... 255 n_retried_writes..... 255 n_retired_blocks..... 255 n_ecc_fixed.......... 255 n_ecc_unfixed........ 255 n_tags_ecc_fixed..... 255 n_tags_ecc_unfixed... 255 cache_hits........... 255 n_deleted_files...... 255 n_unlinked_files..... 255 refresh_count........ 255 n_bg_deletions....... 255 tags_used............ 255 summary_used......... 255 /mnt/nand # --------------------------------------------------------