home Home > News > eMMC Health on Linux
Company News, Industry News, News

eMMC Health on Linux

Published: Dec 02, 2026

Share:

Use mmc extcsd read to check eMMC health on Linux boards with eMMC 5.0 or newer. It can show two wear estimates and a separate warning about spare blocks. The RK3588 has an eMMC 5.1 host interface, and the values come from the flash device fitted to the board.

That gives you something to check before a service visit. You can record the eMMC health readings from a working board, compare them with the last visit, and decide whether to take a spare. Write-heavy jobs like a camera recorder and a gateway that only stores its settings can make very different demands on the same chip.

Rockchips cover with a top-view illustration of an eMMC flash package
eMMC flash package illustration.

Find the eMMC

Identify the device

Start by finding the eMMC. A single board can expose two devices called mmcblk, one for the bootable microSD card and one for the soldered flash.

Find the source of the root filesystem and then look at the block device tree. If the source is a mapped volume, trace it down to the backing disk. And if you booted a rescue image from microSD, the root device tells you where the rescue system lives. The eMMC can be a different entry entirely.

The card type from sysfs helps here. For a built-in slot, SD identifies the SD card and MMC identifies an MMC device. Confirm the capacity and the board’s storage layout as well, especially if there’s more than one MMC device.

Use the whole eMMC device, such as /dev/mmcblk1. A name ending in p1 identifies a partition. The boot0 and boot1 nodes are separate eMMC hardware areas, so leave those out of this check too.

Terminal · Bash
findmnt -n -o SOURCE /
lsblk -o NAME,TYPE,SIZE,MOUNTPOINT
for path in /sys/block/mmcblk*/device/type; do
    [ -r "$path" ] || continue
    printf '%s: ' "$path"
    cat "$path"
done
Kiwi Pi 5 Pro board with ports and components visible
Kiwi Pi 5 Pro product photo, top view.

Read EXT_CSD

Install mmc-utils from your distribution if the image doesn’t already include it. Recent builds have mmc health, which prints a compact report with decoded labels. The mmc-utils command reference also documents extcsd read, which works on older builds that lack the health subcommand.

Run the read with the device name you confirmed. Keep the full output for the service record and filter a copy down to the two life estimates and Pre EOL. That way, you still have the register revision and the rest of the report if you need to compare devices later.

Terminal · Bash
dev=/dev/mmcblk1  # Replace with the verified eMMC device
sudo mmc extcsd read "$dev" > emmc-extcsd.txt &&
    grep -iE 'life.?time|pre.?eol' emmc-extcsd.txt

If the command fails, check the device name and permissions, then confirm the command runs on the host. A container can see a disk name and still lack permission to issue the MMC ioctl. An empty filtered result deserves a look at the full output and the command’s exit status.

Read eMMC health values

Life time estimates A and B

The A and B fields describe wear for memory areas or types tracked by the eMMC controller. Check the flash vendor’s part documentation before assigning either field to a specific area. A pair of numbers tells you more if you keep both of them with the exact part and board revision.

Say A is 0x03 and B is 0x01. The controller estimates 20-30% of the rated life used for A and 0-10% for B. That’s a pair of ranges from an example, so there’s no reason to average them into a single percentage.

Each range is ten percentage points wide. Two readings weeks apart can land in the same band, even while the device is accumulating writes. Use the history to see when the band changes, and record workload changes alongside it.

Pre EOL and spare blocks

Pre EOL is about the controller’s reserve of spare blocks. It has its own normal, warning and urgent states. A normal value can sit beside a high wear estimate because the two fields describe different things.

Common eMMC health register values
FieldRaw valueMeaning
Life time A / B0x00Undefined
Life time A / B0x01 to 0x0A0-10% through 90-100% of rated life used
Life time A / B0x0BMaximum estimated life exceeded
Pre EOL0x00Undefined
Pre EOL0x01 / 0x02 / 0x03Normal / warning / urgent
Top-view illustration of a generic eMMC flash package
Generic eMMC flash package, top-view illustration.

A warning is a reason to check the backup and plan service. An urgent reading or an exceeded lifetime estimate moves that work up the list, particularly on an unattended device that has to reboot on its own.

The eMMC and SSD comparison gives a useful picture of why that service can take longer on a board with soldered storage. If flash replacement means replacing the whole board, keep the correct image and board revision with the spare.

If the filesystem goes read-only or the kernel reports repeated I/O errors, preserve whatever data you still need and capture the kernel log. A low wear estimate leaves other faults on the table, including power drops and communication errors. If the system stops booting, the Rockchip UART console guide shows how to capture the last visible boot stage.

Plan for replacement

Record the first reading

Take the first reading during commissioning. Store it off the device with the flash identity, the Linux image version and the date. On an RK3588 single-board computer, that record is most useful when it follows the particular unit through updates and repairs.

For an edge recorder, check where clips, temporary files and logs actually go. A separate recording drive can take most of the writes, while a busy journal or database still lands on the boot flash. Check the paths before changing the storage configuration.

If you’re ordering a board for a workload like that, ask which eMMC part ships with the configuration and whether you can read its health fields from the supplied Linux image. That gives you a check you can repeat when the next batch arrives.

Rockchip Embedded Platforms

Configure an RK3588 board

Send your expected write workload, storage capacity and service interval so we can discuss an RK3588 board configuration and a practical replacement plan.

Rockchip RK3588 processor, top view illustration

FAQ

Can I check eMMC health on Linux while the board is running?

Yes. Read EXT_CSD from the whole eMMC device with the appropriate permissions. The read command checks the register without writing to the filesystem or changing the eMMC settings.

Does a normal reading rule out failure?

The estimate describes flash wear in bands. If reads fail or a filesystem goes read-only, collect the kernel log and protect the data even when Pre EOL still says normal.

What should go in the service record?

Keep both wear fields, the Pre EOL value, the flash identifier and the date. Save them outside the board so you still have the previous reading if the unit fails.

Technical references: Rockchip RK3588 datasheet · mmc-utils health decoder

close_white

Contact US

    Name *

    Email Address *

    Phone

    Your Campany Name

    Message *