[Update BIOS]
Update image steps from redfish: 

step1:
Create a MANIFEST file with the following content:
ex:
purpose=xyz.openbmc_project.Software.Version.VersionPurpose.Host
version=[BIOS_BUILD_DATE]
ExtendedVersion=primary
MachineName=r12spd-r

step2:
Create a tar file including the firmware image and MAINFEST file:
ex:
$ tar -cvf bios_image.tar bios_image MANIFEST

step3:
command:
curl -k -u root:0penBmc --location 'https://${bmc}/redfish/v1/UpdateService/update' \
                        --form 'UpdateFile=@"<bmc image tar file path>"' \
                        --form 'UpdateParameters={
                               "Targets": ["/redfish/v1/UpdateService/FirmwareInventory/bios_active"],
                               "@Redfish.OperationApplyTime": "Immediate"
                         }'

Note: This Works for the main SPI-NOR. For the secondary SPI-NOR modify the purpose and extend version as follows
ex:
purpose=xyz.openbmc_project.Software.Version.VersionPurpost.Host
ExtendedVersion=secondary

========================================================================================================================================================

[Update BMC]
Update image steps from redfish:

step:
command
curl -k -u root:0penBmc --location 'https://${bmc}/redfish/v1/UpdateService/update' \
                        --form 'UpdateFile=@"<bmc image tar file path>"' \
                        --form 'UpdateParameters={
                               "Targets": ["/redfish/v1/UpdateService/FirmwareInventory/bmc_active"],
                               "@Redfish.OperationApplyTime": "Immediate"
                         }'

example:
curl -k -u root:0penBmc --location 'https://10.135.178.184/redfish/v1/UpdateService/update' \
                        --form 'UpdateFile=@/home/ryan/tmp/bmc_image.tar' \
                        --form 'UpdateParameters={
                               "Targets": ["/redfish/v1/UpdateService/FirmwareInventory/bmc_active"],
                               "@Redfish.OperationApplyTime": "Immediate"
                        }'
