iMX6, CONFIG_IMX_HAB and fuse_read()

Lisandro Pérez Meyer lpmeyer at ics.com
Fri Dec 8 21:09:14 CET 2023


Don't forget to CC me ;-)

On Fri, Dec 8, 2023 at 4:54 PM Lisandro Pérez Meyer <lpmeyer at ics.com> wrote:
[snip]
> > On the mx7dsabresd_defconfig, for example, both CONFIG_IMX_HAB=y and
> > CONFIG_CMD_FUSE=y are selected
> > and this target builds fine.
>
> Sure thing!
>
> For the sake of completeness:
>
> gcc: gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz as per
> https://developer-archives.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code#tab-4-imx-6
>
> ```
> $ export ARCH=arm
> $ export DTC_FLAGS="-@"
> $ export PATH=~/gcc-linaro/bin/:$PATH
> $ export CROSS_COMPILE=arm-none-linux-gnueabihf-
> ```
>
> I added IMX_HAB:
>
> ```
> $ echo "CONFIG_IMX_HAB=y" >> configs/apalis_imx6_defconfig
> ```
>
> And built:
>
> ```
> $ make apalis_imx6_defconfig
> $ make -j16
> [...]
>   LD      spl/u-boot-spl
> arm-none-linux-gnueabihf-ld.bfd: arch/arm/mach-imx/hab.o: in function
> `imx_hab_is_enabled':
> /tmp/tmp.iSzdlFQa34/u-boot/arch/arm/mach-imx/hab.c:879: undefined
> reference to `fuse_read'
> make[1]: *** [scripts/Makefile.spl:527: spl/u-boot-spl] Error 1
> ```
>
> Same error :-/

Forgot to mention: I used master's current HEAD, commit
2f0282922b2c458eea7f85c500a948a587437b63


-- 
Lisandro Pérez Meyer
Embedded Platform Engineer


More information about the U-Boot mailing list