U-Boot Toradex Password

I’m trying to configre a password for u-boot bootloader. I changed the following in my imx7 uboot defconig file:

CONFIG_AUTOBOOT_KEYED=y
CONFIG_AUTOBOOT_ENCRYPTION=y
CONFIG_AUTOBOOT_STOP_STR_SHA256="<HASH>”

When I’m trying to login using the password I get the following output:

Autoboot in 1 seconds
Hash sha256 not supported
Booting from NAND

Do I have to enable sha256 support in u-boot? How can I do that?

Best regards,
Michael

Hello @michaelg

Here is a patch that can be helpful for you :http://u-boot.10912.n7.nabble.com/Password-protection-of-U-Boot-command-line-td118415.html

Best Regards,
Janani