U-Boot "error binding CAAM driver" on i.MX 6SX

cancel
Showing results for 
Search instead for 
Did you mean: 

U-Boot "error binding CAAM driver" on i.MX 6SX

514 Views
kanimozhi_t
Contributor V

Hi,

 

We're using i.MX 6SX based custom board with QSPI boot medium with U-Boot 2021.04. While enabling HAB support (CONFIG_IMX_HAB), booting stops abruptly.

hab-caam-jr-error.png

 

 The detailed error message is as follows:

U-Boot 2021.04-20220224+g83a8c869aa (Feb 24 2022 - 09:15:35 +0000)

CPU: i.MX6SX rev1.3 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 53C
Reset cause: POR
DRAM: 1 GiB

bind node caam@2100000
- attempt to match compatible string 'fsl,sec-v4.0'
- found match at 'caam_jr': 'fsl,sec-v4.0' matches 'fsl,sec-v4.0'
Error binding driver 'caam_jr': -96
caam@2100000: ret=-96

bind node aips-bus@2200000
- attempt to match compatible string 'fsl,aips-bus'
- attempt to match compatible string 'simple-bus'
- found match at 'simple_bus': 'simple-bus' matches 'simple-bus'
bind node spba-bus@2240000
- attempt to match compatible string 'fsl,spba-bus'
- attempt to match compatible string 'simple-bus'
- found match at 'simple_bus': 'simple-bus' matches 'simple-bus'
bind node pcie@8ffc000
- attempt to match compatible string 'fsl,imx6sx-pcie'
- found match at 'imx_pcie': 'fsl,imx6q-pcie' matches 'fsl,imx6sx-pcie'
Some drivers failed to bind
Error binding driver 'simple_bus': -96
soc: ret=-96

Some drivers failed to bind

dm_scan_fdt() failed: -96
dm_extended_scan() failed: -96
dm_scan() failed: -96

initcall sequence bffa5ca0 failed at call 878138c9 (err=-96)

### ERROR ### Please RESET the board ###

Any help with this would be grateful. Thank in advance.

Labels (3)
Tags (3)
0 Kudos
3 Replies

478 Views
kanimozhi_t
Contributor V

Further debugging revealed more details as follows:

bind node caam@2100000
- attempt to match compatible string 'fsl,sec-v4.0'
- found match at 'caam_jr': 'fsl,sec-v4.0' matches 'fsl,sec-v4.0'
Cannot find uclass for id 54: please add the UCLASS_DRIVER() declaration for this UCLASS_... id
Missing uclass for driver caam_jr
Error binding driver 'caam_jr': -96
 

Also note the difference when grepping for "caam_jr" EVK vs custom board:

cb-imx-uboot-diff.png

Hoping these are helpful to debug & answer

0 Kudos

493 Views
kanimozhi_t
Contributor V

@Yuri @jamesbone where can we refer the Error code -96 on U-Boot source? Is it specific to NXP processors? What does it imply?

0 Kudos

513 Views
kanimozhi_t
Contributor V
0 Kudos