Closed griffini closed 2 years ago
Thanks
any update on this?
Hi, This driver was not been tested and released, it was inadvertently left in the HSS unused. You can store data in sNVM using the system services driver during runtime. Please checkout and see if it meets your requirement. Thanks
Alright, thanks
@fcuzzocrea Closing this while you try the sNVM. Please reach out in case you have further questions. Thanks.
Actually, I am trying to write something on the sNVM, using the MSS_SYS_SNVM_NON_AUTHEN_TEXT_REQUEST_CMD format.
I fail to understand how this is supposed to work though.
The documentation here says that non authenticated plaintext is supported:
so I would assume that this means that we can skip setting a password and we can use a NULL_BUFFER as p_user_key or am I wrong?
Because the subsequent checks are assuming that p_user_key is not NULL.
Also, the documentation refers to a ROMFLAG which, if set will prevent the sNVM to be written, but I wasn't able to find any documentation in which is explained how to set that flag.
Hi, Yes, you can skip the password for the Non-authenticated plaintext service. We will update the driver to cover this possibility.
The ROMFLAG is set when the page is configured as Read-only. If ROMFLAG = 1, then the page cannot be written by the SNVM system service at runtime. This configuration should be done in the libero design from Configure Design Initialization Data and Memories.
Alright!
So, just to clarify it to myself, even if the MSS_SYS_secure_nvm_write() function can take as format
NON_AUTHENTICATED_PLAINTEXT_FORMAT
, this is currently not supported, right? (since the function always check for p_user_key to be different from NULL).
Thanks for the hint at ROMFLAG, I will take a look at Libero then!
Yes, the current implementation will always check for p_user_key to be different from NULL.
In https://github.com/polarfire-soc/hart-software-services/issues/35#issue-1031102411, @fcuzzocrea asks...
I've moved this ticket here, as it is a question on a bare metal driver... The HSS no longer uses the eNVM driver.