Hi @mark123
About the BOOT SEARCH COUNT, Please refer the below link:
https://community.nxp.com/t5/i-MX-Processors/How-to-do-for-nand-boot-config-quot-boot-search-count-q...
I think this link well help you about your request:
https://community.nxp.com/t5/iMX-and-Vybrid-Support/How-to-use-UUU-to-program-FlexSPI-on-I-MX8QXP-wi...
uuu_version 1.2.39
# This command will be run when ROM support stream mode
SDPS: boot -f flash.bin
# Program the SPI-NOR Flash Chip
FB: ucmd mmc list
FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: ucmd sf probe
FB[-t 40000]: ucmd sf erase 0 +0x600000
FB: download -f qspi-bin_b0 >> this is header of qspi header prebuilt that we use
FB[-t 30000]: ucmd sf write ${fastboot_buffer} 0x400 0x200
FB: download -f flash-1.bin >> this is flash.bin that is generated with imx-mkimage "make SOC=iMX8QX flash"
FB[-t 30000]: ucmd sf write ${fastboot_buffer} 0x1000 0x100000
FB: download -f flash-2.bin
FB[-t 30000]: ucmd sf write ${fastboot_buffer} 0x401000 0x100000
FB: done
B.R