sm.rst 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. SPDX-License-Identifier: GPL-2.0+:
  2. sm command
  3. ==========
  4. Synopis
  5. -------
  6. ::
  7. sm serial <address>
  8. sm reboot_reason [name]
  9. sm efuseread <offset> <size> <address>
  10. sm efusewrite <offset> <size> <address>
  11. sm efusedump <offset> <size>
  12. Description
  13. -----------
  14. The sm command is used to request services from the secure monitor. User
  15. can call secure monitor to request special TEE function, for example chip
  16. serial number info, reboot reason, etc.
  17. sm serial
  18. Retrieve chip unique serial number from sm and write it to memory on
  19. appropriate address.
  20. sm reboot_reason
  21. Print reboot reason to the console, if parameter [name] isn't specified.
  22. If parameter specified, set reboot reason string to environment variable
  23. with this name.
  24. sm efuseread
  25. Read <size> bytes starting from <offset> from efuse memory bank and write
  26. result to the address <address>.
  27. sm efusewrite
  28. Write into efuse memory bank, starting from <offset>, the <size> bytes
  29. of data, located at address <address>.
  30. sm efusedump
  31. Read <size> bytes starting from <offset> from efuse memory bank and print
  32. them to the console.
  33. Configuration
  34. -------------
  35. To use the sm command you must specify CONFIG_CMD_MESON=y