* Mounting UBIFS fails intermittently @ 2008-12-10 12:27 Manish Jain 2008-12-10 12:59 ` Artem Bityutskiy 0 siblings, 1 reply; 6+ messages in thread From: Manish Jain @ 2008-12-10 12:27 UTC (permalink / raw) To: linux-mtd Hello All, In our system , we have created two partition in Nand flash. One is mounted as root and the other(which is quite big)is mounted for keeping data. The problem is that data mount fails intermittently. Here is the kernel error log, when we try to mount ubifs. error (pid 303): ubifs_scan: corrupt empty space at LEB 1:4160 UBIFS error (pid 303): ubifs_scanned_corruption: corrupted data at LEB 1:4160 00000000: 49269565 00000000 49269553 00000000 00000000 00000000 00000000 00000002 e.&I....S.&I.................... 00000020: 00000000 00000000 000041fd 00000000 00000000 00000000 00000000 00000000 .........A...................... 00000040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 00000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................ 00000080: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................ 000000a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................ ... ... 00000fa0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................ 00000fc0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................ 00000fe0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................ UBIFS error (pid 303): ubifs_scan: LEB 1 scanning failed UBIFS error (pid 303): ubifs_recover_master_node: failed to recover master node Kind Regards, Manish Reply ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Mounting UBIFS fails intermittently 2008-12-10 12:27 Mounting UBIFS fails intermittently Manish Jain @ 2008-12-10 12:59 ` Artem Bityutskiy 2008-12-10 13:12 ` Manish Jain 0 siblings, 1 reply; 6+ messages in thread From: Artem Bityutskiy @ 2008-12-10 12:59 UTC (permalink / raw) To: Manish Jain; +Cc: linux-mtd On Wed, 2008-12-10 at 12:27 +0000, Manish Jain wrote: > Hello All, > > In our system , we have created two partition in Nand flash. One is mounted as root and the other(which is quite big)is mounted for keeping data. > The problem is that data mount fails intermittently. > > Here is the kernel error log, when we try to mount ubifs. I saw huge amount of e-mails like this, but for JFFS2. In most of the cases the reporters had one of: 1. flash problems - the driver or HW was broken 2. flashed images incorrectly Please, check these 2 cases. To check the first ones, please use mtd-tests git repository: git://git.infradead.org/users/dedekind/mtd-tests-2.6.git (http://git.infradead.org/users/dedekind/mtd-tests-2.6.git) The tests are not in main-line so far, so you have to take the 8 patches from the above git tree, apply them to your tree, enable the tests and compile. The tests are kernel modules. Please, make sure they work without errors for you. Note, be careful with the torture test - either do not run it or realize what it is doing before running. Vs. the second possible issue - just describe how you flash your UBIFS image to your "data" partition, if you do this at all. -- Best regards, Artem Bityutskiy (Битюцкий Артём) ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Mounting UBIFS fails intermittently 2008-12-10 12:59 ` Artem Bityutskiy @ 2008-12-10 13:12 ` Manish Jain 2008-12-10 13:32 ` Artem Bityutskiy 0 siblings, 1 reply; 6+ messages in thread From: Manish Jain @ 2008-12-10 13:12 UTC (permalink / raw) To: dedekind; +Cc: linux-mtd Thanks Artem. I'll try tests for case 1. With respect to case2: Within our flash, we have two partitions. And there is singe image of flash contents(namely er.ubi). We flash our file image using ubiformat command.: Ubiformat /dev/mtd5 -y -s 512 -f /CFCard/er.ubi Though this problem is intermittent, but it is more likely to happen when we re-format mtd device. Kind Regards, Manish -----Original Message----- From: Artem Bityutskiy [mailto:dedekind@infradead.org] Sent: 10 December 2008 13:00 To: Manish Jain Cc: linux-mtd@lists.infradead.org Subject: Re: Mounting UBIFS fails intermittently On Wed, 2008-12-10 at 12:27 +0000, Manish Jain wrote: > Hello All, > > In our system , we have created two partition in Nand flash. One is mounted as root and the other(which is quite big)is mounted for keeping data. > The problem is that data mount fails intermittently. > > Here is the kernel error log, when we try to mount ubifs. I saw huge amount of e-mails like this, but for JFFS2. In most of the cases the reporters had one of: 1. flash problems - the driver or HW was broken 2. flashed images incorrectly Please, check these 2 cases. To check the first ones, please use mtd-tests git repository: git://git.infradead.org/users/dedekind/mtd-tests-2.6.git (http://git.infradead.org/users/dedekind/mtd-tests-2.6.git) The tests are not in main-line so far, so you have to take the 8 patches from the above git tree, apply them to your tree, enable the tests and compile. The tests are kernel modules. Please, make sure they work without errors for you. Note, be careful with the torture test - either do not run it or realize what it is doing before running. Vs. the second possible issue - just describe how you flash your UBIFS image to your "data" partition, if you do this at all. -- Best regards, Artem Bityutskiy (Битюцкий Артём) ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Mounting UBIFS fails intermittently 2008-12-10 13:12 ` Manish Jain @ 2008-12-10 13:32 ` Artem Bityutskiy 2008-12-10 13:39 ` Manish Jain 0 siblings, 1 reply; 6+ messages in thread From: Artem Bityutskiy @ 2008-12-10 13:32 UTC (permalink / raw) To: Manish Jain; +Cc: linux-mtd On Wed, 2008-12-10 at 13:12 +0000, Manish Jain wrote: > Thanks Artem. > > I'll try tests for case 1. > > With respect to case2: > > Within our flash, we have two partitions. And there is singe image of flash contents(namely er.ubi). > We flash our file image using ubiformat command.: > > Ubiformat /dev/mtd5 -y -s 512 -f /CFCard/er.ubi well, providing your sub-page size is really 512 bytes, this should be doing the right things. Although I do not utilize ubiformat myself, so I am not 100% sure it does not have bugs which may lead to what you see. -- Best regards, Artem Bityutskiy (Битюцкий Артём) ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Mounting UBIFS fails intermittently 2008-12-10 13:32 ` Artem Bityutskiy @ 2008-12-10 13:39 ` Manish Jain 2008-12-10 14:01 ` Artem Bityutskiy 0 siblings, 1 reply; 6+ messages in thread From: Manish Jain @ 2008-12-10 13:39 UTC (permalink / raw) To: dedekind; +Cc: linux-mtd Can you please suggest any alternate to ubiformat, I would like to try that out. Kind Regards, Manish -----Original Message----- From: Artem Bityutskiy [mailto:dedekind@infradead.org] Sent: 10 December 2008 13:32 To: Manish Jain Cc: linux-mtd@lists.infradead.org Subject: RE: Mounting UBIFS fails intermittently On Wed, 2008-12-10 at 13:12 +0000, Manish Jain wrote: > Thanks Artem. > > I'll try tests for case 1. > > With respect to case2: > > Within our flash, we have two partitions. And there is singe image of flash contents(namely er.ubi). > We flash our file image using ubiformat command.: > > Ubiformat /dev/mtd5 -y -s 512 -f /CFCard/er.ubi well, providing your sub-page size is really 512 bytes, this should be doing the right things. Although I do not utilize ubiformat myself, so I am not 100% sure it does not have bugs which may lead to what you see. -- Best regards, Artem Bityutskiy (Битюцкий Артём) ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Mounting UBIFS fails intermittently 2008-12-10 13:39 ` Manish Jain @ 2008-12-10 14:01 ` Artem Bityutskiy 0 siblings, 0 replies; 6+ messages in thread From: Artem Bityutskiy @ 2008-12-10 14:01 UTC (permalink / raw) To: Manish Jain; +Cc: linux-mtd On Wed, 2008-12-10 at 13:39 +0000, Manish Jain wrote: > Can you please suggest any alternate to ubiformat, I would like to try that out. Well, ubiformat is kind of the right solution, because it preserves erase counters. But you may try nandwrite which is available in mtd-utils. It destroys erase counters, but it is OK if you are developing. -- Best regards, Artem Bityutskiy (Битюцкий Артём) ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-12-10 14:03 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-12-10 12:27 Mounting UBIFS fails intermittently Manish Jain 2008-12-10 12:59 ` Artem Bityutskiy 2008-12-10 13:12 ` Manish Jain 2008-12-10 13:32 ` Artem Bityutskiy 2008-12-10 13:39 ` Manish Jain 2008-12-10 14:01 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox