Get SoC Environment Variable
更新时间: 2026/08/06
在Gitcode上查看源码Get SoC Environment Variable
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Query the SoC environment variables.
Privilege
Permissions vary depending on parameters. For details about parameters and permissions, see Table 1 Parameters for querying SoC environment variables.
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 90h |
| 1 | Sub command, sub command=81h |
| 2 | Parameter Selector, function number, Table 1 |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2 | Data Length |
| 3:N | For details about Parameter Data, see Table 1. |
Table 1 Parameters for querying SoC environment variables
| Parameter | Operation Rights | # | Parameter Data | Description |
|---|---|---|---|---|
| Get Host Gmac | BasicSetting | 01h | Request: Data Length: 1; data4: HostGmacIndex Response: Data Length: 6; data[3-8]: MacAddr | NA |
| Get Coprocessor Boot Mem Limit | SecurityMgmt | 02h | Request: Data Length: 0 Response: Data Length: 4; data[3-6]: MemSize, hexadecimal | For equipment use only |
Command Example
Query the GMAC address of the environment variable.
Request:
bash
ipmitool raw 0x30 0x90 0x01Response:
text
0x06 0x60 0x61 0x62 0x63 0x64 0x65