From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cerga.lunarpages.com ([67.210.123.115]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1NKGXh-0000gq-GF for linux-mtd@lists.infradead.org; Mon, 14 Dec 2009 19:25:17 +0000 Received: from [189.136.21.222] (helo=[10.25.3.10]) by cerga.lunarpages.com with esmtpa (Exim 4.69) (envelope-from ) id 1NKGXb-00009r-7r for linux-mtd@lists.infradead.org; Mon, 14 Dec 2009 11:25:07 -0800 Subject: ubi crash after change to read-only From: Esteban Lopez To: linux-mtd@lists.infradead.org Content-Type: text/plain Date: Mon, 14 Dec 2009 13:22:48 -0600 Message-Id: <1260818568.6544.24.camel@r2d2.local> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello Everybody, I have a ubifs over nandflash memory, my kernel version is 2.6.27, my uC is an at91sam9260 by ATMEL and I created my ubi image with the following commands: >mkfs.ubifs -e 0x1F800 -c 2048 -m 0x800 -x zlib -r MY_RFS_PATH -o myRFS.ubifs >ubinize -p 128KiB -m 2048 -s 512 -o myRFS.ubi myRFS-ubinize.cfg >mkfs.ubifs -V Version 1.2 > ubinize -V 1.0 My system run very well but after some days or months my rfs change suddenly to read-only mode, then if I reboot the system, ubi fail during its recovery process with this messanges UBIFS: recovery needed [] (dump_stack+0x0/0x14) from [] (alloc_lpt_leb +0xd0/0xd8) [] (alloc_lpt_leb+0x0/0xd8) from [] (ubifs_lpt_start_commit+ 0x50c/0x710) [] (ubifs_lpt_start_commit+0x0/0x710) from [] (do_commit+0xc 8/0x6f0) [] (do_commit+0x0/0x6f0) from [] (ubifs_run_commit +0x8c/0xa0 ) r8:c3819d28 r7:c3a04800 r6:0000056f r5:c392a0e4 r4:c392a000 [] (ubifs_run_commit+0x0/0xa0) from [] (ubifs_rcvry_gc_commi t +0x218/0x228) r5:c392a000 r4:00000000 [] (ubifs_rcvry_gc_commit+0x0/0x228) from [] (ubifs_get_sb+0 xc18/0xf70) r8:c3a04a00 r7:00000000 r6:0001f5d0 r5:00000001 r4:00000000 [] (ubifs_get_sb+0x0/0xf70) from [] (vfs_kern_mount +0x58/0xb 0) [] (vfs_kern_mount+0x0/0xb0) from [] (do_kern_mount +0x3c/0xd 8) r8:c034388c r7:c3a5b000 r6:00000000 r5:c39ff000 r4:00008000 [] (do_kern_mount+0x0/0xd8) from [] (do_new_mount +0x5c/0x84) r9:c3a5b000 r8:c39ff000 r7:c3819e98 r6:00000000 r5:00008000 r4:c3a5b000 [] (do_new_mount+0x0/0x84) from [] (do_mount +0x170/0x198) r7:c3819e98 r6:00000000 r5:00008000 r4:00000000 [] (do_mount+0x0/0x198) from [] (sys_mount +0x8c/0xd4) [] (sys_mount+0x0/0xd4) from [] (do_mount_root +0x28/0xb0) r7:00008000 r6:c384f000 r5:c0024844 r4:c384f000 [] (do_mount_root+0x0/0xb0) from [] (mount_block_root+0x100/ 0x220) r4:c384f000 [] (mount_block_root+0x0/0x220) from [] (prepare_namespace+0 xa0/0x1d0) r8:00000000 r7:00000000 r6:00000000 r5:c0024844 r4:c0024854 [] (prepare_namespace+0x0/0x1d0) from [] (kernel_init+0xc8/0 xf4) r5:00000000 r4:c0357920 [] (kernel_init+0x0/0xf4) from [] (do_exit +0x0/0x6fc) r4:00000000 UBIFS error (pid 1): do_commit: commit failed, error -28 UBIFS warning (pid 1): ubifs_ro_mode: switched to read-only mode, error -28 VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: 1f00 65536 mtdblock0 (driver?) 1f01 458752 mtdblock1 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Rebooting in 5 seconds..RomBOOT > I have always the same error . Is there some documented bug in kernel about this or Could you tell me some idea about how debug or fix this? Thankyou!