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…») |
|||
Строка 4: | Строка 4: | ||
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: |