Write File to BMC
更新时间: 2025/06/26
在Gitcode上查看源码09h-向BMC写数据(Write-File-to-BMC)(BT超长帧)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
通过带外通道批量发送数据给BMC(BT超长帧)。
权限
ReadOnly
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | 30h |
| CMD | 92h |
| 1:3 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 说明: Internet Assigned Numbers Authority (IANA):因特网地址分配组织 |
| 4 | Sub command,子命令=09h |
| 5 | BIOS ID:预留给多host场景,单host场景固定填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 备注:File Selector分配表参见 表1 的文件编码。 |
| 7 | Operation: 00h Write Prepare. 01h Write Data 03h Write Finish |
| (8) | 说明: 本字段可选,仅当Operation为Write Data和Write Finish时需要提供本字段。 Data checksum. 当Operation为Write Data时,本字段表示数据内容累加和。 当Operation为Write Finish时,本字段表示整个文件的累加和。 |
| (9:12) | 说明: 本字段可选,仅当Operation为Write Prepare,Write Data时需要提供本字段。 当Operation为Write Prepare时: File Size, LSB First,文件大小。 当Operation为Write Data时:Offset to write,LSB First,数据段相对于File开始位置的偏移。 |
| (13:n) | Data. 数据内容。 约束条件为:总的IPMI命令长度不能超过254字节,也就是n不大于247(不包含checksum校验)。 本字段可选,仅当Operation为Write Data时需要提供本字段。 |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code 00h Command Completed Normally 80h Invalid Checksum 81h Wrong Data Offset D5h Invalid Status |
| 2:4 | Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。 |
| (5:8) | Required offset. 请求BIOS开始重传的偏移地址。 本字段可选,当完成码为81h的时候,才需要提供本字段, |
命令样例
批量配置BIOS数据
请求:
ipmicmd -k "0f 00 30 92 db 07 00 09 00 01 00 01" smi 0响应:
0f 31 00 92 00 db 07 00