EMMC flash storage wear level Wiren Board 5: различия между версиями
(Новая страница: «The following commands are used to get the estimated wear level of the eMMC flash storage chip used in Wiren Board 5 controllers: Mount debugfs <pre> mount -t…») |
|||
(не показаны 3 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
=== eMMC Health Status === | |||
The following commands are used to get the estimated wear level of the eMMC flash storage chip used in Wiren Board 5 controllers: | The following commands are used to get the estimated wear level of the eMMC flash storage chip used in Wiren Board 5 controllers: | ||
Строка 4: | Строка 6: | ||
Mount debugfs | Mount debugfs | ||
< | <syntaxhighlight lang="bash"> | ||
mount -t debugfs none /sys/kernel/debug/ | mount -t debugfs none /sys/kernel/debug/ | ||
</ | </syntaxhighlight> | ||
Read the wear level estimation | Read the wear level estimation | ||
< | <syntaxhighlight lang="bash"> | ||
cat /sys/kernel/debug/mmc0/mmc0\:0001/ext_csd | python -c 'import binascii, sys; print "~%d%% wear" % (ord(binascii.unhexlify(sys.stdin.read().strip())[0x5e])*10)' | cat /sys/kernel/debug/mmc0/mmc0\:0001/ext_csd \ | ||
< | | python -c 'import binascii, sys; print "~%d%% wear" % (ord(binascii.unhexlify(sys.stdin.read().strip())[0x5e])*10)' | ||
</syntaxhighlight> | |||
Example output: | Example output: | ||
Строка 21: | Строка 24: | ||
The level is returned in multiplies of 10 percent. The minimum wear is 0% (new device), the maximum is supposed to be 100%. | The level is returned in multiplies of 10 percent. The minimum wear is 0% (new device), the maximum is supposed to be 100%. | ||
=== Sources === | |||
* [http://eip.dediprog.com/dediprog/get_file.php?path=upload/mcusupport/321/0984d71f2cb0fee63a96cba5943a7d14.PDF&filename=SDIN7DP2-4G.PDF SanDisk SDIN7DP2-4G datasheet] |
Версия 02:02, 22 января 2016
eMMC Health Status
The following commands are used to get the estimated wear level of the eMMC flash storage chip used in Wiren Board 5 controllers:
Mount debugfs
mount -t debugfs none /sys/kernel/debug/
Read the wear level estimation
cat /sys/kernel/debug/mmc0/mmc0\:0001/ext_csd \
| python -c 'import binascii, sys; print "~%d%% wear" % (ord(binascii.unhexlify(sys.stdin.read().strip())[0x5e])*10)'
Example output:
~10% wear
The level is returned in multiplies of 10 percent. The minimum wear is 0% (new device), the maximum is supposed to be 100%.