Please check whether RCW is valid for your custom board.
1. You need to modify all RCW fields according to your custom board.
2. RCW image needs to be swapped before flashing to QSPI flash.
Please refer to the following procedure to generate ATF bl2 image, then deploy it to the target board to do verification.
1. Please use the following method to build RCW binary image in your Linux host PC.
$ git clone https://github.com/nxp-qoriq/rcw.git
$ cd rcw
$ git checkout -b LSDK-21.08 LSDK-21.08
Then modify ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.rcw according to your target board, please check all RCW fields and delete no used PBI commands.
$ make
You will get ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.bin
2.
$ git clone https://github.com/nxp-qoriq/atf.git
$ cd atf
$ git checkout -b LSDK-21.08 LSDK-21.08
$ sudo apt-get install gcc-aarch64-linux-gnu
$ export CROSS_COMPILE=aarch64-linux-gnu-
$ make PLAT=ls1046ardb bl2 BOOT_MODE=qspi pbl RCW=~/rcw/ ls1046ardb/RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot.bin
Note: please specify RCW binary path generated by you.
You will get build/ls1046ardb/release/bl2_qspi.pbl, please program bl2_qspi.pbl at offset 0 of QSPI flash.