IMX8M High Assurance Boot (HAB) failing with CAAM error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8M High Assurance Boot (HAB) failing with CAAM error

Jump to solution
422 Views
TomHarvey
Contributor II

Hi all,

I am currently trying to use High Assurance Boot (HAB) on my IMX8M device. And run into the following error once I have booted up the device:

U-Boot SPL 2021.04-00002-gf752480a4c-dirty (Nov 15 2024 - 16:47:52 +0000)
power_bd71837_init
set buck8 to 1.2v for DDR4
DDRINFO: start DRAM init
DDRINFO: DRAM rate 2400MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0:  RNG instantiated
Normal Boot
Trying to boot from MMC1
hab fuse not enabled

Authenticate image from DDR location 0x401fcdc0...


U-Boot 2021.04-00002-gf752480a4c-dirty (Nov 15 2024 - 16:47:52 +0000)

CPU:   i.MX8MQ rev2.1 1500 MHz (running at 1000 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 46C
Reset cause: POR
Model: Avnet Maaxboard
DRAM:  2 GiB
Error binding driver 'caam_jr': -96
Some drivers failed to bind
Error binding driver 'simple_bus': -96
Some drivers failed to bind
Error binding driver 'simple_bus': -96
Some drivers failed to bind
initcall sequence 00000000bffcd8d0 failed at call 000000004021c440 (err=-96)
### ERROR ### Please RESET the board ###

HAB relies on CAAM, so I am assuming the issue I am facing is the error in binding the driver 'caam_jr'.

I have followed these steps:

https://github.com/Avnet/uboot-imx/blob/maaxboard_v2020.04_5.4.24_2.1.0/doc/imx/habv4/guides/mx8m_se...

I am using the default branch of uboot-imx:

https://github.com/Avnet/uboot-imx

Please can someone help me understand why I am seeing this error. I have followed the instructions, so any advice other than what is just included in the instructions would be greatly appreciated!

Thanks,

Tom

 

 

 

 

 

1 Solution
229 Views
TomHarvey
Contributor II

Thanks Harvey for the response.

It turns out i needed to use a specific set of branches for each of the components needed to build U-Boot to work with HAB. When using the default branches for each of the following repositories it resulted in the original error. There may be other combinations that work. Here are the following repos:

git clone --branch "maaxboard_lf-6.1.22-2.0.0" "https://github.com/Avnet/uboot-imx.git"

git clone --branch "maaxboard_lf-6.1.22-2.0.0" "https://github.com/Avnet/imx-mkimage"

git clone --branch "maaxboard_lf-6.1.22-2.0.0" "https://github.com/Avnet/imx-atf"

curl "https://sources.buildroot.net/firmware-imx/firmware-imx-8.22.bin" --output firmware-imx-8.22.bin

For me I have been following the IMX8m instructions as listed in my original post. The board I am using is the Maaxboard.

View solution in original post

0 Kudos
Reply
2 Replies
230 Views
TomHarvey
Contributor II

Thanks Harvey for the response.

It turns out i needed to use a specific set of branches for each of the components needed to build U-Boot to work with HAB. When using the default branches for each of the following repositories it resulted in the original error. There may be other combinations that work. Here are the following repos:

git clone --branch "maaxboard_lf-6.1.22-2.0.0" "https://github.com/Avnet/uboot-imx.git"

git clone --branch "maaxboard_lf-6.1.22-2.0.0" "https://github.com/Avnet/imx-mkimage"

git clone --branch "maaxboard_lf-6.1.22-2.0.0" "https://github.com/Avnet/imx-atf"

curl "https://sources.buildroot.net/firmware-imx/firmware-imx-8.22.bin" --output firmware-imx-8.22.bin

For me I have been following the IMX8m instructions as listed in my original post. The board I am using is the Maaxboard.

0 Kudos
Reply
355 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi Tom,

A similar issue from internal feedback as below.

"The issue seems to be related to caam_jr device driver binding and related to the way its corresponding implementation of device tree and the bind function in your custom board. Would you explain what are the changes made to the caam_jr device tree entry and the binding function?"

Would you please raise a ticket to AVNET for the BSP that you are testing?

And hope this U-Boot-quot-error-binding-CAAM-driver-quot-on-i-MX-6SX be helpful for you.

 

Regards

Harvey

0 Kudos
Reply