Enable HAB on apalis-imx6 raises build error in u-boot

I am using the toradex manifest default.xml from branch kirkstone-6.x.y for the Apalis imx6 som. I have enabled the CONFIG_IMX_HAB for the u-boot-toradex, which results me a build error:

| /home/timedevel/work/sn/yocto/build/tmp/work/apalis_imx6_sn_dyonics-tdx-linux-gnueabi/u-boot-toradex/1_2022.07-r0/recipe-sysroot-native/usr/bin/arm-tdx-linux-gnueabi/…/…/libexec/arm-tdx-linux-gnueabi/gcc/arm-tdx-linux-gnueabi/11.3.0/ld: /tmp/cc5FyV66.ltrans0.ltrans.o: in function imx_hab_is_enabled': | /home/timedevel/work/sn/yocto/build/tmp/work/apalis_imx6_sn_dyonics-tdx-linux-gnueabi/u-boot-toradex/1_2022.07-r0/git/arch/arm/mach-imx/hab.c:875: undefined reference to fuse_read’

How to fix this?

Greetings @Saaisanthosh,

You’re getting this error because our default U-Boot configuration uses an SPL. For HAB SPL must also be signed, to allow this the fuse functionality must be made available to the SPL. Therefore you must also enable the following configs:


Best Regards,

Thanks @jeremias.tx . It works.

Glad I was able to help!