eMMC file system corruption and data loss issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

eMMC file system corruption and data loss issues

Jump to solution
6,030 Views
kchen21
Contributor II

Hello,

The processor we use is P2020,file system and data stored in eMMC. Now we have encountered a serious problem:File system and data stored on eMMC are often corrupted.

The specific performance is as follows: we have database files (sqlite) and other R/W files stored on the emmc partition, and the superblock damage occurs during use, causing the partition mount failure. Sometimes it can be repaired with e2fsck, sometimes it can only be re-partitioned to be used again.
When the superblock is damaged, it can be successfully mounted after using the reboot/reset system, but using e2fsck, you can see that the partition table information (superblock / bitmap, etc) is abnormal.
Our kernel version is Linux-3.8.13. When the kernel is updated to Linux-4.14.140, the system is stuck and the emmc device cannot be found during the test. You can only repartition after uboot erases.
When power loss during emmc writing, the superblock damage phenomenon is easier to reproduce. We have enabled the power loss protection mechanism inside emmc, but the problem has not improved.
Do you have encountered similar problems and have corresponding solutions?
Looking forward to your reply.

1 Solution
5,702 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Chen Kun,

Typical eMMC devices also should not be powered down during a write/erase cycle, as they can be prone to the same failures as an SD Card. However, the eMMC devices that Technologic Systems uses in our products include support for a "Write Reliability" mode, and a "psuedo SLC" mode. These modes can be access by setting a fuse on the eMMC device.

Used with ext3/4 and the filesystem configured to journal data, this can provide a very robust system.

Thanks,

Yiping

View solution in original post

1 Reply
5,703 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Chen Kun,

Typical eMMC devices also should not be powered down during a write/erase cycle, as they can be prone to the same failures as an SD Card. However, the eMMC devices that Technologic Systems uses in our products include support for a "Write Reliability" mode, and a "psuedo SLC" mode. These modes can be access by setting a fuse on the eMMC device.

Used with ext3/4 and the filesystem configured to journal data, this can provide a very robust system.

Thanks,

Yiping