Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package: mmc-utils: Initial commit #490

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

alistair23
Copy link

@alistair23 alistair23 commented Nov 4, 2021

Add support for the mmc-utils package. This can be used to determine the life of the MMC, for example as described here: https://www.cnx-software.com/2019/08/16/wear-estimation-emmc-flash-memory/

This also completes part of: #9

Signed-off-by: Alistair Francis <[email protected]>
Copy link
Member

@Eeems Eeems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installs and works for me on my rM1. Did you test on a rM2?

We probably should add some sort of helper script to parse the output and provide better health information. Most of it is vendor specific fields or just an overload of information to wrap your head around.

@Eeems Eeems mentioned this pull request Nov 4, 2021
28 tasks
@Eeems
Copy link
Member

Eeems commented Nov 4, 2021

The good news is, my device is still between 0-10% usage:

reMarkable: ~/packages/ mmc extcsd read /dev/mmcblk1 | grep -i LIFE
eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x01
eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x01
reMarkable: ~/packages/ mmc extcsd read /dev/mmcblk1 | grep -i EOL
eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x01

Maybe some patches to add the vendor specific field handling would also be in order.

@alistair23
Copy link
Author

I tested this on my rM2, so it works there.

I don't have plans to add scripts or vendor specific patches. Someone is welcome to add a script though. For vendor patches it's probably worth trying to send them upstream first.

I also see between 0-10% usage for my flash which is good :)

@Eeems Eeems merged commit c1e7c7f into toltec-dev:testing Nov 4, 2021
@alistair23 alistair23 deleted the alistair/mmc branch November 4, 2021 22:24
Eeems pushed a commit that referenced this pull request Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants