
2/11/2020
TS-7100 - Technologic Systems Manuals
https://wiki.embeddedarm.com/w/index.php?title=TS-7100&printable=yes
31/44
The 'mmc-utils' package is used to enable these modes. The command is pre-installed on the latest image.
Additionally we have created a script to safely enable the write reliability and pSLC modes. Since the U-Boot
binary and environment reside on the eMMC, care must be taken to save the current state of the boot partitions,
enable the modes, restore the boot partitions, and re-enable proper booting options. This script can be used in
combination with the production mechanism scripting to complete these steps as part of an end application
production process.
WARNING:
Enabling these modes causes all data on the disk to become
invalid and must be rewritten. Do not attempt to run the 'mmc'
commands from the script individually, all steps in the script
must occur as they are or the unit may be unable to boot. If
there are any failures of the script, care must be taken to resolve
any issues while the unit is still booted or it may fail to boot in
the future.
Note:
Enabling these modes is a one-way operation, it is not possible to undo
them once they are made. Because of this, setting these eMMC modes
will invalidate Technologic Systems' return/replacement warranty on the
unit. See the warranty section for more information on this.
The script must be run when boot from any media other than eMMC, such as NFS, or USB. No partition of the
eMMC disk can be mounted when these commands are run. Doing so may result in corruption or inability for the
unit to boot. Once the pSLC mode is enabled, all data on the disk will become invalid. This means the partition
table will need to be re-created, the filesystems formatted, and all filesystem contents re-written to disk. This is why
we recommend using this script in conjunction with the production mechanism scripting. The 'emmc_reliability'
script can be run first, then the rest of the production script can create and format the partitions as well as write data
to disk.
The script requires a single argument, the device node of the eMMC disk, and will output verbosely to stderr. Any
specific errors will also be printed out on stderr.
Example usage:
./emmc_reliability /dev/mmcblk0
Upon successful run, the script will return 0. Any errors will return a positive code. See the script for detailed error
code information.
10.8 Ethernet