Hoping to get some insight into why I might be getting this error.
The Following is the output from the build of the header:
/home/dmerrill/projects/hardware/bsp/build/tmp-glibc/work/ls1046ardb-oe-linux/atf/git-r0/recipe-sysroot-native/usr/bin/cst/create_hdr_isbc --in /home/dmerrill/devtool-workspace/atf/build/ls1046ardb/debug/bl2.bin --out /home/dmerrill/devtool-workspace/atf/build/ls1046ardb/debug/hdr_bl2 drivers/nxp/auth/csf_hdr_parser/input_bl2_ch2 --verbose
EL3 Runtime Firmware BL31: offset=0x88, size=0xF63D, cmdline="--soc-fw"
Non-Trusted Firmware BL33: offset=0xF6C5, size=0xD1436, cmdline="--nt-fw"
#----------------------------------------------------#
#------- -------- -------- -------#
#------- CST (Code Signing Tool) Version 2.0 -------#
#------- -------- -------- -------#
#----------------------------------------------------#
file name is /home/dmerrill/devtool-workspace/atf/build/ls1046ardb/debug/bl2.bin
file name is /home/dmerrill/devtool-workspace/atf/build/ls1046ardb/debug/hdr_bl2
?? getopt returned character code 00 ??
==========================================================
This tool includes software developed by OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/)
This product includes cryptographic software written by
Eric Young (eay@cryptsoft.com)
==========================================================
Input File is drivers/nxp/auth/csf_hdr_parser/input_bl2_ch2
-----------------------------------------------
- Dumping the Header Fields
-----------------------------------------------
- SRK Information
- SRK Offset : 200
- SRK Flag = 1
- Number of Keys : 1
- Key Select : 1
- Key List :
- Key1 srk.pub(100)
- UID Information
- UID Flags = 00
- FSL UID = 00000000_00000000
- OEM UID = 00000000_00000000
- FLAGS Information
- Secondary Image = 0
- Manufacturing Protection = 1
- Image Information
- SG Table Offset : 800
- Number of entries : 1
- Entry Point : 10000000
- Entry 1 : /home/dmerrill/devtool-workspace/atf/build/ls1046ardb/debug/bl2.bin (Size = 000102ea src=10000000 DST = ffffffff)
- RSA Signature Information
- RSA Offset : a00
- RSA Size : 80
-----------------------------------------------
Image Hash:
71b7fe65ee12a5da6555048a48871ad81c5a0b9d1e93a0421a6245d7a32886cb
************************************************
* Header File is with Signature appended
************************************************
Header File Created: /home/dmerrill/devtool-workspace/atf/build/ls1046ardb/debug/hdr_bl2
SRK (Public Key) Hash:
948b3f42396e770df696c178f5fff0f315d678052ceed215d38a94780360f66f
SFP SRKHR0 = 948b3f42
SFP SRKHR1 = 396e770d
SFP SRKHR2 = f696c178
SFP SRKHR3 = f5fff0f3
SFP SRKHR4 = 15d67805
SFP SRKHR5 = 2ceed215
SFP SRKHR6 = d38a9478
SFP SRKHR7 = 0360f66f
The bl2 is programmed into qspi and the srkh registers are programmed during boot hold off with the values as show in the attached image:

Boot is released, however once boot reaches BL2 it is set to non secure and SRATCHRW2 is set to 0x341. I can't figure out what about the signature is invalid. Any help would be appreciated. Thanks.