Get Trusted Computing Measurement Information
更新时间: 2026/08/06
在Gitcode上查看源码

Get Trusted Computing Measurement Information

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

Query trusted computing measurement information.

Privilege

ReadOnly

Command Information

Request Information

ByteData Field
NetFn30h
CMD93h
1:3Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
4Sub command, sub command=93h
5Data type. For details, see Table 1.
6:7Reserved
8:9Offset of the read data, LS Byte first
10Length: read length

Response Information

ByteData Field
1Completion Code
2:4Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
2:4Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
5End of list, indicating whether the data reading is complete.
Long data may need to be read multiple times. This field is used to check whether data is completely read.
[7:1]: reserved
[0]: End of list
0=last data
1=middle data
6:NIndicates the data. The returned data may be less than or equal to the read length.

Table 1 Data types of trusted computing queries

Data TypeData FormatRead/Write TypeSubcommand word available channelDescription
0See Table 2.read onlybt/ipmbChip version and firmware version. For details, see the version information format in the following table.
1See Table 3.read onlybt/ipmbBMC basic firmware measurement information
2See Table 3.read onlybt/ipmbBMC boot firmware measurement information
3See Table 3.read onlybt/ipmbBMC running firmware measurement information
4See Table 3.read onlybt/ipmbFirmware measurement information of the BMC security coprocessor
5See Table 3.read onlybt/ipmbBIOS firmware measurement information
6See Table 4.read onlybt/ipmbHost Secure Boot Firmware Measurement Information
7See Table 4.read onlybt/ipmbHost boot firmware measurement information
8See Table 4.read onlybt/ipmbHost boot firmware configuration measurement information
9See Table 4.read onlybt/ipmbHost kernel firmware measurement information
10See Table 4.read onlybt/ipmbMeasurement information of the initial root file system of the host
11See Table 5.read onlybt/ipmbCPU hardware measurement information
12See Table 5.read onlybt/ipmbNIC hardware measurement information
13See Table 5.read onlybt/ipmbNPU device hardware measurement information
14See Table 5.read onlybt/ipmbGPU device hardware measurement information

Table 2 Version information format

Byte sequence of DataLength (byte)Description
data 11Information format version number. The current version number is 1.
data 2:54TCM chip version (hexadecimal code), LS Byte first
data 6:94TCM firmware version (hexadecimal code), LS Byte first

Table 3 BMC information format

Byte sequence of DataLength (byte)Description
data 11Information format version number. The current version number is 1.
data 2:54TCG-defined type, index value of the platform status register, starting from 1 (LS byte first)
data 6:94Type defined by the TCG, indicating the log event type. The value of the current event type is 0xf1, LS Byte first.
data 10:4132data 46: hash value of N+32 data (hexadecimal code)
data 42:454data 46: N+32 data length
data 46:494Firmware type. The value can be ** 1 - L1, 2 - UBoot, 3 - Rootfs, 4 - BIOS** or 7 (coprocessor).
data 50:534Firmware Quantity
data 54:N40 x Number of firmwaresOffset (4 bytes), size (4 bytes), and hash value (32 bytes) of each firmware in the storage area
data N+1:N+3232Hash value calculated after the hash values of all firmware are combined
data N+33:N+6432Firmware name (character string, including the terminator)
data N+65:N+9632Actual measurement value (hexadecimal code)
data N+97:N+12832Base measurement value (hexadecimal code)
data N+1291Comparison result. 255: not updated/invalid data; 0: successful; 1: failed
data N+1301Control behavior. 255: not updated/invalid data; 0: startup allowed; 1: startup blocked

Table 4 OS information format

Byte sequence of DataLength (byte)Description
data 11Information format version number. The current version number is 1.
data 2:3332Firmware name (character string, including the terminator)
data 34:6532Actual measurement value (hexadecimal code)
data 66:9732Base measurement value (hexadecimal code)
data 981Comparison result. 255: not updated/invalid data; 0: successful; 1: failed
data 991Control behavior. 255: not updated/invalid data; 0: startup allowed; 1: startup blocked

Table 5 Hardware measurement information format

Data Byte OrderLength (Byte)Description
data 11Information format version number. The current version number is 1.
data 21Number of modules
data 3:3432Firmware name (character string, including the end character), with the slot ID.
data 35:6632Actual measurement value (hexadecimal code)
data 67:9832Base measurement value (hexadecimal code)
data 99:13032Actual model (character string, including the terminator)
data 131:16232Base model (character string, including the terminator)
data 163:19432Actual vendor (character string, including the terminator)
data 195:22632Benchmark vendor (character string, including the terminator)
data 227:29064Actual ID (character string, including the terminator)
data 291:35464Reference ID (character string, including the terminator)
data 3551Component status. 0: normal; 1: added; 2: removed; 3: changed; others: failed
data 356:N353If there are multiple components, the format is the same as that of data 3:355.

Command Example

Query the trusted computing version.

Request:

bash
ipmitool raw 0x30 0x93 0xdb 0x07 0x00 0x93 0x00 0x00 0x00 0x00 0x00 0xc0

Response:

text
db 07 00 00 01 4e 1b 03 06 23 09 05 10

Back to Index