Write File to BMC
更新时间: 2026/08/06
在Gitcode上查看源码Write File to BMC
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Sends data (BT jumbo frames) to the BMC in batches through the out-of-band channel.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 92h |
| 1:3 | Manufacturer 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. NOTE: Internet Assigned Numbers Authority (IANA): Internet Assigned Numbers Authority |
| 4 | Sub command, sub command=09h |
| 5 | BIOS ID: This parameter is reserved for multi-host scenarios. In single-host scenarios, this parameter has a fixed value of 0. |
| 6 | File Selector 00h-Display.ini 01h-Options.ini 04h-image.hpm 08h-ClpConfig0.ini 2Ch-current_secureboot.json 2Dh-ConfigValue.json 2Eh-PolicyConfigRegistry.json other-Reserved Note: For details about the File Selector allocation table, see the Table 1 file code. |
| 7 | Operations: 00h Write Prepare. 01h Write Data 03h Write Finish |
| (8) | NOTE: This byte must be specified if the value of Operation is Write Data and Write Finish. Data checksum. When Operation is set to Write Data, this field indicates the sum of data content. If the value of Operation is Write Finish, this field indicates the total file size. |
| (9:12) | NOTE: This field must be specified if the value of Operation is Write Prepare or Write Data. When Operation is set to Write Prepare: File Size, LSB First: file size. When Operation is Write Data: Offset to write, LSB First, offset of the data segment relative to the start position of the file. |
| (13:n) | Data. Data content. The total length of IPMI commands cannot exceed 254 bytes. That is, n cannot be greater than 247 (excluding checksum verification). This field must be specified if the value of Operation is Write Data. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code 00h Command Completed Normally 80h Invalid Checksum 81h Wrong Data Offset D5h Invalid Status |
| 2:4 | Manufacturer 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. |
| (5:8) | Required offset. Indicates the offset address for requesting the BIOS to start retransmission. This field is optional. This field is required only when the completion code is 81h, |
Command Example
Configure BIOS data in batches.
Request:
bash
ipmicmd -k "0f 00 30 92 db 07 00 09 00 01 00 01" smi 0Response:
text
0f 31 00 92 00 db 07 00