*******************************************************************************
               Instruction to Update BMC through UEFI SAA
*******************************************************************************

1. Save the BMC update package to your workstation computer.

2. Extract the files from the BMC flash package to a USB stick. 
   
   Note: The USB stick doesn't have to be bootable, but has to be formatted with
         the FAT32 file system.

3. Plug the USB stick into a USB port, boot to the Built-In UEFI Shell, and
   switch to BMC update package.

   Shell> fs0:
   fs0:\> cd X14BMC

   Note: The BMC account used for the BMC update must have admin privileges.

4. Run the below command to update BMC.

   SAA.efi -I Redfish_HI -u <BMC username> -p <BMC password> -c UpdateBmc
   --file <BMC image file>
   
   Example:
   SAA.efi -I Redfish_HI -u ADMIN -p PASSWORD -c UpdateBmc --file 
   BMC_X14AST2600-ROT20-4501MS_20240524_01.00.07.00_STDsp.bin


5. If step 4 failed to update BMC with the following error, try to activate
   Redfish Host Interface by executing steps 6-11.

   ********************************<<<<<ERROR>>>>>*********************************
    
   ExitCode                = 86
   Description             = Required tool does not exist
   Program Error Code      = 9.421
   Error message:
           Wrong SMBIOS type 42 interface type
   Instruction:
           Check SMBIOS Type 42 data is valid or not
    
   ********************************************************************************


6. Copy scripts: saa_activate_RHI.nsh and saa_deactivate_RHI.nsh from script\
   to the current folder.

   fs0:\X14BMC> cp script\saa_activate_RHI.nsh .
   fs0:\X14BMC> cp script\saa_deactivate_RHI.nsh .

7. Execute saa_activate_RHI.nsh activate Redfish Host Interface.

   fs0:\X14BMC> saa_activate_RHI.nsh

8. Execute step 4.

9. If still see error from step 5, reboot the system and try step 4 again.

10.Do not interrupt the process until the BMC is updated successfully.

11.Execute saa_deactivate_RHI.nsh deactivate Redfish Host Interface.

   Shell> fs0:
   fs0:\> cd X14BMC
   fs0:\X14BMC> saa_deactivate_RHI.nsh 