Upload firmware through TFTP on REDFISH interface.

Andrew Geissler geissonator at gmail.com
Tue Oct 8 23:17:09 AEDT 2019


On Mon, Oct 7, 2019 at 10:30 PM Xiaochao Ma (马小超) <maxiaochao at inspur.com> wrote:
>
> 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"}'

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"}'


>
> How should the address of TFTP be configured?
>


More information about the openbmc mailing list