imx8mm: Invalid IVT structure

Fabio Estevam festevam at gmail.com
Wed Jun 8 18:23:27 CEST 2022


Hi Michael,

On Wed, Jun 8, 2022 at 11:15 AM Michael Nazzareno Trimarchi
<michael at amarulasolutions.com> wrote:
>
> Hi
>
> On Wed, Jun 8, 2022 at 4:13 PM Fabio Estevam <festevam at gmail.com> wrote:
> >
> > Hi,
> >
> > On top of tree U-Boot, when CONFIG_IMX_HAB=y is selected in
> > imx8mm_evk_defconfig, the following error messages are seen:
> >
> > U-Boot SPL 2022.07-rc3-00097-g26aa5e5c3fbc-dirty (Jun 08 2022 - 10:59:56 -0300)
> > SEC0:  RNG instantiated
> > Normal Boot
> > WDT:   Started watchdog at 30280000 with servicing (60s timeout)
> > Trying to boot from MMC1
> > hab fuse not enabled
> >
> > Authenticate image from DDR location 0x401fcdc0...
> > bad magic magic=0x0 length=0x00 version=0x0
> > bad length magic=0x0 length=0x00 version=0x0
> > bad version magic=0x0 length=0x00 version=0x0
> > Error: Invalid IVT structure
>
> You need to have a sign image

Yes, I understand that.

On other platforms, with IMX_HAB selected, I don't see these errors
even when the image is not signed.

On a warp7, which has CONFIG_IMX_HAB=y by default:

U-Boot 2022.07-rc3-00094-g15d0b98acf-dirty (Jun 08 2022 - 13:16:07 -0300)

CPU:   Freescale i.MX7S rev1.2 800 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 44C
Reset cause: POR
Model: Warp i.MX7 Board
Board: WARP7 in secure mode OPTEE DRAM 0x9d000000-0xa0000000
DRAM:  464 MiB
Core:  68 devices, 17 uclasses, devicetree: separate
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 3, FSL_SDHC: 0
Loading Environment from MMC... OK
In:    serial at 30860000
Out:   serial at 30860000
Err:   serial at 30860000
SEC0:  RNG instantiated
Net:   usb_ether
Hit any key to stop autoboot:  0
=>

It seems the error comes when IMX_HAB is used with SPL.

Just tried it on a imx6sabresd board:

--- a/configs/mx6sabresd_defconfig
+++ b/configs/mx6sabresd_defconfig
@@ -122,3 +122,5 @@ CONFIG_VIDEO_IPUV3=y
 CONFIG_SPLASH_SCREEN=y
 CONFIG_SPLASH_SCREEN_ALIGN=y
 CONFIG_BMP_16BPP=y
+CONFIG_IMX_HAB=y
+CONFIG_SPL_DRIVERS_MISC=y

U-Boot SPL 2022.07-rc3-00094-g15d0b98acf-dirty (Jun 08 2022 - 13:04:35 -0300)
Trying to boot from MMC1
hab fuse not enabled

Authenticate image from DDR location 0x177fcd40...
bad magic magic=0xc5 length=0x54b2 version=0xf8
bad length magic=0xc5 length=0x54b2 version=0xf8
bad version magic=0xc5 length=0x54b2 version=0xf8
Error: Invalid IVT structure

(The board hangs here)

Not sure if this is related to the hang that Andrey observes on
i.MX8MP when IMX_HAB is selected.


More information about the U-Boot mailing list