*******************************************************************************
               Instruction to Update BIOS through UEFI SAA
*******************************************************************************

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

2. Extract the files from the BIOS 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 BIOS update package.

   Shell> fs0:
   fs0:\> cd X14BIOS

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

4. Run the below command to update BIOS.

   SAA.efi -I Redfish_HI -u <BMC username> -p <BMC password> -c UpdateBios
   --file <BIOS image file> --reboot
   
   Example:
   SAA.efi -I Redfish_HI -u ADMIN -p PASSWORD -c UpdateBIOS --file 
   BIOS_X14DBTB-1D3C_20240423_1.0_STDsp.bin --reboot


5. If step 4 failed to update BIOS 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:\X14BIOS> cp script\saa_activate_RHI.nsh .
   fs0:\X14BIOS> cp script\saa_deactivate_RHI.nsh .

7. Execute saa_activate_RHI.nsh activate Redfish Host Interface.

   fs0:\X14BIOS> 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 BIOS is updated successfully.

11.Execute saa_deactivate_RHI.nsh deactivate Redfish Host Interface.

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

