[Update BIOS]
Update image steps from curl: 

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

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

step3:
Open a new Redfish token:
ex:
$ export bmc=xx.xx.xx.xx
$ export token=`curl -k -H "Content-Type: application/json" -X POST https://${bmc}/login -d '{"username" :  "root", "password" :  "0penBmc"}' | grep token | awk '{print $2;}' | tr -d '"'`

step4:
Use the Redfish UpdateService to flash the UEFI firmware:
ex:
$ curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/octet-stream" -X POST -T bios_image.tar https://${bmc}/redfish/v1/UpdateService

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 curl:

step1:
Open a new Redfish token:
ex:
$ export bmc=xx.xx.xx.xx
$ export token=`curl -k -H "Content-Type: application/json" -X POST https://${bmc}/login -d '{"username" :  "root", "password" :  "0penBmc"}' | grep token | awk '{print $2;}' | tr -d '"'`

step2:
Redfish UpdateService to flash the BMC firmware:
$ curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/octet-stream" -X POST -T <image tar file path> https://${bmc}/redfish/v1/UpdateService

step3:
Reboot BMC to start the firmware update
