UBIFS error on freescale linux kernel

cancel
Showing results for 
Search instead for 
Did you mean: 

UBIFS error on freescale linux kernel

425 Views
smitharatnam
Contributor I

Hi,

We have a freescale linux(2.6) kernel. We are using the mtd devices to communicate with the Micron Nand Flash memory. We suddenly started to see some problems with the UBIFS.

We are mounting the rootfs on mtd4 and the logfs on mtd5.

The error we see in the logs is:

Jan  1 00:00:05 STX-16 user.notice kernel: klogd started: BusyBox v1.20.0 (2012-09-18 17:42:52 MST)
.....
user.err kernel: UBIFS error (pid 1119): ubifs_recover_leb: LEB 24 scanning failed 

The partition seems to be corrupt. When does this happen? I have read that it happens during a power loss in some scenarios.

Also, is there a way to retrieve data? The roots seems ok because the logging information is being handled by the logfs partition. I am unable to mount the logfs partition.

When I try to mount mtd5, I get an error:

mount: mounting ubi1:log on /mnt/nand failed: Structure needs cleaning

Please help.

Regards,

Smitha.

0 Kudos
5 Replies

149 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Smitha

you are right, nand can be corrupted after

sudden power loss, for example when power adapter is turned off.

Recommended to execute linux poweroff command

for finishing job. I am afraid it is not possible to retrieve data.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

149 Views
smitharatnam
Contributor I

Hi,

We dont know when there would be sudden power loss.

When do we use the power off command?

0 Kudos

149 Views
igorpadykov
NXP TechSupport
NXP TechSupport

power off command is used for finishing job.

0 Kudos

149 Views
smitharatnam
Contributor I

Hi,

Can you paste the command here? I am starting into all this recently.

Can the power off command be part of the linux kernel files?

Regards,

Smitha.

0 Kudos

149 Views
igorpadykov
NXP TechSupport
NXP TechSupport
0 Kudos