ERROR: BL2: Failed to load image id 3 (-2) Authentication failure

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

ERROR: BL2: Failed to load image id 3 (-2) Authentication failure

1,081 Views
cnweibo
Contributor II

Hi, 

I use ls1046a cpu in our board.

Board booted up with qspi flash, after boot into uboot, i manually erase and program fip_uboot.bin and bl2_qspi.pbl via tftp:

tftp a0000000  fip_uboot.bin

sf probe 0:0

sf erase 100000 +$filesize && sf write $load_addr 100000 $filesize

tftp a0000000  bl2_qspi.pbl

sf probe 0:0

sf erase 0 +$filesize && sf write $load_addr 0 $filesize

 

unfortunately, after above two files burned into qspi flash, and re-powered up the board, board can not boot up. Following is the error information,

 

NOTICE: Fixed DDR on board

NOTICE: 4 GB DDR4, 64-bit, CL=15, ECC on
NOTICE: BL2: v2.4(release):04ab4fd
NOTICE: BL2: Built : 20:29:50, Dec 19 2022
ERROR: BL2: Failed to load image id 3 (-2)
Authentication failure

 

What does that mean, how can i fix that?

 

thanks

0 Kudos
3 Replies

1,027 Views
June_Lu
NXP TechSupport
NXP TechSupport

Glad that you solve the issue, please try my last reply if the issue reproduces again.

0 Kudos

1,038 Views
cnweibo
Contributor II

After I clean all the built output, and rebuilt composite firmware, upgrade it, it is ok now. 

I do not what is the cause, but it really works.

0 Kudos

1,065 Views
June_Lu
NXP TechSupport
NXP TechSupport

According to your error log, it seems that DDR controller initialization section provided in ATF is not suitable for your custom board.

Please use the DDRv tool to connect to your target board to do validation and optimization to get the optimized DDR controller configuration parameters. More details please refer to QCVS_DDR_User_Guide

In ATF source code flexbuild_lsdk2108/components/firmware/atf, please modify plat/nxp/soc-ls1046a/ls1046ardb/ddr_init.c according to your custom board.

0 Kudos