Difference between revisions of "EMMC/zh"
From FriendlyELEC WiKi
(Created page with "English ===S5P4418/S5P6818 GPIO pin definition===") |
|||
Line 1: | Line 1: | ||
[[eMMC|English]] | [[eMMC|English]] | ||
− | === | + | ===如何检查emmc寿命 (内核4.x以上支持)=== |
+ | <syntaxhighlight lang="text"> | ||
+ | cat /sys/class/mmc_host/mmc0/mmc0\:0001/pre_eol_info | ||
+ | cat /sys/class/mmc_host/mmc0/mmc0\:0001/life_time | ||
+ | </syntaxhighlight> | ||
+ | 节点名称不同的设备可能有所不同。 | ||
+ | |||
+ | ===关于寿命的说明=== | ||
+ | <syntaxhighlight lang="text"> | ||
+ | Since e.MMC 5.0, device health status became part of the standard. It provides life time estimation for SLC and MLC areas as well as pre EOL status: | ||
+ | Device life time estimation type A: life time estimation for SLC eraseblocks, provided in steps of 10%, e.g.: | ||
+ | 0x02 means 10%-20% device life time used. | ||
+ | Device life time estimation type B: life time estimation for MLC eraseblocks, provided in steps of 10%, e.g.: | ||
+ | 0x02 means 10%-20% device life time used. | ||
+ | Pre EOL information: overall status for reserved blocks. Possible values are: | ||
+ | 0x00 - Not defined. | ||
+ | 0x01 - Normal: consumed less than 80% of the reserved blocks. | ||
+ | 0x02 - Warning: consumed 80% of the reserved blocks. | ||
+ | 0x03 - Urgent: consumed 90% of the reserved blocks. | ||
+ | </syntaxhighlight> |
Revision as of 06:16, 24 December 2020
1 如何检查emmc寿命 (内核4.x以上支持)
cat /sys/class/mmc_host/mmc0/mmc0\:0001/pre_eol_info cat /sys/class/mmc_host/mmc0/mmc0\:0001/life_time
节点名称不同的设备可能有所不同。
2 关于寿命的说明
Since e.MMC 5.0, device health status became part of the standard. It provides life time estimation for SLC and MLC areas as well as pre EOL status: Device life time estimation type A: life time estimation for SLC eraseblocks, provided in steps of 10%, e.g.: 0x02 means 10%-20% device life time used. Device life time estimation type B: life time estimation for MLC eraseblocks, provided in steps of 10%, e.g.: 0x02 means 10%-20% device life time used. Pre EOL information: overall status for reserved blocks. Possible values are: 0x00 - Not defined. 0x01 - Normal: consumed less than 80% of the reserved blocks. 0x02 - Warning: consumed 80% of the reserved blocks. 0x03 - Urgent: consumed 90% of the reserved blocks.