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