Hello VLADIMIR SIRIK,
T10xx can boot from SPI with SDK 1.7 image.
1. Build SPI u-boot in SDK 1.7.
$ bitbake -c cleansstate u-boot
Add "T1040RDB_SPIFLASH" in UBOOT_MACHINES of meta-fsl-ppc/conf/machine/t1040rdb.conf.
$ bitbake u-boot
2. Create SPL image and deploy image to SPI flash.
Please refer to Freescale Technical Information Center, SDK 1.7 Document->u-boot->eSPI/NAND/SD boot,
use QCS tool to generate PBL image, for T1040, u-boot size is 768K, but CPC is 512K, not enough to store the whole u-boot, two stage u-boot images need to be used. Please use build_t1040rdb_release/tmp/work/t1040rdb-fsl-linux/u-boot/2014.01+fslgit-r0/git/T1040RDB_SPIFLASH/u-boot-spl.bin to generate PBL image. The procedure is similar as SD card, please refer to this thread T1040RDB: SD boot procedure?.
Similar as T2080, write two Images, the first is the PBL1.bin produced by QCS tool, the second is the u-boot.bin.
1) write PBL1.bin at offset 0:
=>tftp 100000 PBL1.bin
=>sf probe 0
=>sf erase 0 100000
=>sf write 100000 0 $filesize
2) write u-boot.bin at offset 0x40000 (256KB):
=>tftp 100000 u-boot.bin
=>sf write 100000 40000 $filesize
3) write ucode to eSPI from offset 0x110000
=>tftp 100000 ucode.bin
=>sf erase 110000 10000
=>sf write 100000 110000 $filesize
3. Switch setting
SW1 [1:8] = 0010 0010
SW2 [1:8] = 1011 1011
SW3 [1:8] = 1110 0001
For any problem, please feel free to let me know.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------