Upload firmware through TFTP on REDFISH interface.
Hi, all.
I'm trying to update firmware using REDFISH interface. It can successfully upload images through TFTP on the BMCweb. However, the firmware upgrade command in
https://github.com/openbmc/docs/blob/master/REDFISH-cheatsheet.md
failed.(Through TFTP method)
The TFTP command here is not configured.
The results of the command are as follows:
$ curl -k -H "X-Auth-Token: $token" -X POST https://${bmc}/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate -d '{"TransferProtocol":"TFTP","ImageURI":"obmc-phosphor-image-fp5280g2-20190924042243.static.mtd.tar"}' Not Found
How should the address of TFTP be configured?
Quoted 11 lines · Xiaochao Ma (马小超)
Hi, all.
I'm trying to update firmware using REDFISH interface. It can successfully upload images through TFTP on the BMCweb. However, the firmware upgrade command in
https://github.com/openbmc/docs/blob/master/REDFISH-cheatsheet.md
failed.(Through TFTP method)
The TFTP command here is not configured.
The results of the command are as follows:
Quoted 1 line
$ curl -k -H "X-Auth-Token: $token" -X POST https://${bmc}/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate -d '{"TransferProtocol":"TFTP","ImageURI":"obmc-phosphor-image-fp5280g2-20190924042243.static.mtd.tar"}'
First make sure you have TFTP update enabled in bmcweb:
(BMCWEB_INSECURE_ENABLE_REDFISH_FW_TFTP_UPDATE)
https://github.com/openbmc/bmcweb/blob/master/CMakeLists.txt#L57
Then you need to be sure to provide the IP address of the TFTP server in your URI
-d '{"TransferProtocol":"TFTP","ImageURI":"<ip address of TFTP server>/obmc-phosphor-image-fp5280g2-20190924042243.static.mtd.tar"}'
Quoted 3 lines
How should the address of TFTP be configured?