Verified U-boot (Secure boot) on Khadas VIM

Hello

I want to make an image with ‘verified boot’ feature. When I follow the guides from Khadas wiki page on U-boot and after make CROSS_COMPILE=aarch64-linux-gnu- command I get this error:

../common/cmd_autoscript.c: In function ‘autoscript’:
../common/cmd_autoscript.c:67:7: error: ‘IMAGE_FORMAT_LEGACY’ undeclared (first use in this function)
  case IMAGE_FORMAT_LEGACY:
       ^
../common/cmd_autoscript.c:67:7: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [common/cmd_autoscript.o] Error 1
make[1]: *** [common] Error 2
make: *** [sub-make] Error 2

Anyone has tested it? My config file (edited kvim_defconfig) is as follows:

CONFIG_ARM=y
CONFIG_TARGET_MESON_GX=y
CONFIG_KVIM=y
CONFIG_DM=y
CONFIG_DM_GPIO=y
CONFIG_AML_GPIO=y


CONFIG_ENABLE_VBOOT=y
CONFIG_RSA=y
CONFIG_FIT=y
CONFIG_FIT_SIGNATURE=y
CONFIG_OF_CONTROL=y
CONFIG_OF_SEPARATE=y
CONFIG_OF_LIBFDT=y
CONFIG_FIT_VERBOSE=y
CONFIG_CMD_IMI=y

Thanks.

Hi salehdeh76,

The wiki is out of date, if you want to build u-boot for Android, please refer to Building Android Source Code. Or if you want to build u-boot for linux, you can refer to Build Ubuntu/Debian Image.

Thanks.

After some hassle I do that and in ‘uboot’ folder run the make command (as mentioned in my first post) BUT still get same error.

My humble quesion: Did you have ever tried verified boot feature of uboot on your boards or I should do this on my own (and have a lot of tedious developing work!)?
Thank you @numbqq

Hello salehdeh76,

I havn’t tried yet, but maybe you can have a try.

Thanks.

Hello,

Any update on this?