Get S.M.A.R.T / CID data for Transcend Embedded microSD / SD products.
The various statuses of microSD products are located in the SMART block of the device. By reading and analyzing the SMART block, you can get the product name, serial number, firmware version, Erase count, health, etc. of the device, so as to monitor and find the device early potential problems. This document provides a way to use the MMC test tools called mmc-utils that get SMART block to enable SMART command via the native microSD slot or Transcend RDF5 Card Reader on Raspberry Pi / NVIDIA Jetson Nano.
Note : The project works for Transcend Embedded microSD / SD products.
Supported Platforms
Supported SD cards
Supported Card Reader
Download and install Raspberry Pi OS Imager(64-bit or 32-bit) to the tartget microSD with an SD card reader at https://www.raspberrypi.com/software
Insert the microSD to Raspberry Pi native microSD or SD slot.
Download Jetson Nano Developer Kit SD Card Image from https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write
Write the SD card image into the target microSD using a graphical program like Etcher.
Insert the microSD to NVIDIA Jetson native microSD slot.
git clone https://kernel.googlesource.com/pub/scm/utils/mmc/mmc-utils
Update the 5 files in mmc-utils folder to the corresponding files.
Use the Make command to compile the updated source code.
make
Tip: If you encounter the error
/bin/sh: 1: sparse: not found
during the compilation process, it means that thesparse
tool is not installed. You can install it using the following command:sudo apt-get install sparse
After the installation is complete, run the
make
command again to continue the compilation process.
sudo ./mmc –h
sudo ./mmc smtbuffer /dev/mmcblk0
sudo ./mmc smart /dev/mmcblk0
sudo ./mmc health /dev/mmcblk0
sudo ./mmc cidinfo /dev/mmcblk0
sudo ./mmc sderase /dev/mmcblk0
Please change the < device > parameter by the USB card reader device. ex. /dev/sda
To dump SMART raw data
To show SMART info
To show card life(Heath)
To show CID info
Note: For other SMART / CID Data Structure, please refer to Transcend Embedded microSD / SD datasheet.