AM2634: HsmServer_UpdateKeyRevHandler does not run in TIFS source Code as Provided

Part Number: AM2634
Other Parts Discussed in Thread: LP-AM263,

Without altering the HSM firmware source code provided in TIFS, it is not possible to use HSM services to update the key revision OTP value to switch the root of trust. The following changes were made in TIFS to compile a modified HSM image that updates the key revision successfully:

  1. The HSM Message value for the update key rev handler was not registered in the isr msg ids array. It was appended at the end.
  2. The HsmServer_UpdateKeyRevHandler function pointer was not registered in the isr func ptrs array. It was appeneded at the end.
  3. The definition for the number of HSM ISRS was incremented by one to account for the above changes.
  4. In the function ROT_UpdateKeyRev, the status flag is never set to SUCCESS upon succesful reading of read/write lock protection status from the OTP row. This causes the the update to fail prematurely, despite being otherwise properly configured. A new line setting status to true was added in the appropriate condition block and allows the function to run to completion.

TIFS Version: 11_00_00_01

Board: LP-AM263 Rev A

Device_Type: HS_SE

Device Revision: SR 1.1

  • Hi Daniel,

    Allow us to get back on this after analysing the issue later in the week, please feel free to ping back incase I have not replied back by Friday. 

  • Hi ,

    Due to device limitations and key availibility on AM2634, the HsmServer_UpdateKeyRevHandler feature is disabled in TIFS. This has been fixed in Silicon Revision 1.2. For more details, please reach out to TI representative for more information on the same.

    Best Regards,
    Aakash

  • Has SR 1.2 been released? All of the boards we have been working with are SR 1.1 and we just purchased the launchpad boards last month. Will there also be a new revision of TIFS that re-enables this handler if the SR is 1.2 or higher going forward?

  • Has SR 1.2 been released? All of the boards we have been working with are SR 1.1 and we just purchased the launchpad boards last month. Will there also be a new revision of TIFS that re-enables this handler if the SR is 1.2 or higher going for

    1.2 has not been released. Yes once the silicon revision is released, the software support will be added