How to read/write special keys via U-boot prompt?

岁酱吖の 提交于 2020-01-15 11:12:29

问题


How to write mac address and other special keys via U-boot prompt? Is there a general purpose command for this?

I know this can not be handled when the system is running as it deals with some security features.


回答1:


It is somewhat depended on your hardware platform. My board uses keyman and keyunify commands. There can be found in U-boot help. Also the usage of these commands. For example:

keyman argv:
init seedNum <dtbAddr>
read keyname addr <hex/str>
write keyname size addr
write keyname hex/str value
query exist/secure/size keyname
exit

Another note: You said

I know this can not be handled when the system is running as it deals with some security features.

This may not be true. The keys can be accessed via unifykey driver (or something similar for your platform) and thereafter can be read/wrote. Consult you OS provider to find more.



来源:https://stackoverflow.com/questions/50567854/how-to-read-write-special-keys-via-u-boot-prompt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!