Add SSH mmc-utils

would it be possible to add this tool to CoreElec? Good for emmc diagnostics for example for Odroid.

https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/about/

Can you try if this one works on CE19?


vim3 ~ $ ./mmc
Usage:
        mmc extcsd read <device>
                Print extcsd data from <device>.
        mmc writeprotect boot get <device>
                Print the boot partitions write protect status for <device>.
        mmc writeprotect boot set <device> [<number>]
                Set the boot partition write protect status for <device>.
                If <number> is passed (0 or 1), only protect that particular
                eMMC boot partition, otherwise protect both. It will be
                write-protected until the next boot.
        .........
2 Likes

It is working fine on latest nightly.

I may be doing something wrong, but it doesnā€™t work for me. For example, I put the file in the videos folder. And Iā€™ll enter

cd videos
./mmc

What is the procedure?

chmod 755 mmc
./mmc

oh such nonsense. thanks a lot. It works

1 Like

Works also for CE 9.2.

Maybe it could be added as addon package? Or into system-tools? Its kinda usefull check emmc health status through it.

Can you copy/paste the usage of this tool?

example
mmc extcsd read /dev/mmcblk0

EXT_CSD_DEVICE_LIFE_TIME_EST should be related to reserved blocks, so that value could be usefull for userā€¦

I have send PR to LibreELEC. And after merging there it will be available to CoreELEC too.

3 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.