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
- Raspberry Pi 1 or later model
- NVIDIA Jetson Nano
-
Supported SD cards
- Transcend Embedded microSD 430T / 450I / 460I / 460T
- Transcend Embedded SD SDC460T / SDC400I / SDC240T
-
Supported Card Reader
- Transcend RDF5
-
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.
- The mmc-utils package and modify it to support SMART DUMP and Secure Erase function. Please download the source code and modify it step by step.
- Download the code by following command with terminal.
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
- After build success, check the availability of the mmc tool by -h
sudo ./mmc –h
- Get SMART buffer by following command.
sudo ./mmc smtbuffer /dev/mmcblk0
- Get SMART information by following command.
sudo ./mmc smart /dev/mmcblk0
- Get Card life by following command.
sudo ./mmc health /dev/mmcblk0
- Get CID information by following command.
sudo ./mmc cidinfo /dev/mmcblk0
- Secure erase SD card by following command.
sudo ./mmc sderase /dev/mmcblk0
Please change the < device > parameter by the USB card reader device. ex. /dev/sda
Note: For other SMART / CID Data Structure, please refer to Transcend Embedded microSD / SD datasheet.