Tool/software: Linux
We have Beaglebone black based custom board with 256MB RAM and 4GB eMMC.
We are working on updating u-boot from version 2013.07 to u-boot-2017.01
We see there is a option to enable encrypted autoboot password.
I tried to enable by selecting AUTOBOOT_ENCRYPTION option in u-boot menuconfig
I had also set CONFIG_AUTOBOOT_STOP_STR_SHA256 with password encrypted with sha256sum.
Now When I boot that u-boot and try to enter password I see following error
Output buffer size -1913329052 too small (need 32 bytes)
I see that this is from common/hash.c but I don't know what is going wrong with this.
I also see following warning in the build.
../common/autoboot.c: In function 'passwd_abort': ../common/autoboot.c:71:2: warning: implicit declaration of function 'hash_parse_string' [-Wimplicit-function-declaration] ret = hash_parse_string(algo_name, sha_env_str, sha_env); ^ ../common/autoboot.c:91:4: warning: implicit declaration of function 'hash_block' [-Wimplicit-function-declaration] hash_block(algo_name, (const void *)presskey,
And I am not able to abort boot sequence.
Any suggestion as to how to solve this issue. I feel some config is missing but don't know what.
Thank you,
Regards,
Ankur