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