tee_otp_get_hw_unique_key() actually generates a master key verification blob. The actual job is done by
get_hw_unq_key_blob_hw() defined in another package, PPA, file ppa/drivers/fsl_sec/src/hw_key_blob.c
One possible reason to fail is that you are using a security-disabled chip. If should not fail, however, if you
did not program OTPMK and don't attempt Secure Boot, as the predefined test key is used for the blob in this case.
To get to the exact reason of the failure, see what error is returned by the hardware after run_descriptor_jr()
Have a great day,
Platon
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------