EMMC flash storage wear level Wiren Board 5: различия между версиями
Строка 12: | Строка 12: | ||
<syntaxhighlight lang="bash"> | <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> | </syntaxhighlight> | ||