Hello support!!!
I use ti-processor-sdk-linux-am57xx-evm-06.03.00.106 on am5749 (custom board).
I would like to write U-boot to s25fl256s1.
I found solution here: https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Foundational_Components_U-Boot.html?highlight=boot
section 3.1.1.7.1. Writing to SPI from U-Boot.
Here we have a good example:
U-Boot # mmc rescan
U-Boot # sf probe 0
U-Boot # sf erase 0 +80000
U-Boot # fatload mmc 0 ${loadaddr} MLO.byteswap
U-Boot # sf write ${loadaddr} 0 ${filesize}
U-Boot # fatload mmc 0 ${loadaddr} u-boot.img
U-Boot # sf write ${loadaddr} 0x20000 ${filesize}
U-Boot # sf erase 80000 +${spiimgsize}
U-Boot # fatload mmc 0 ${loadaddr} zImage
U-Boot # sf write ${loadaddr} ${spisrcaddr} ${filesize}
But I have a couple of questions:
1.I see the meanings with $ and like I understood it is meaning defined like u-boot environment variables. Variable for all rows here is loadaddr=0x82000000?
2.How I should get filesize?(How to measure the size correctly?)
3.How I should get spiimgsize? (How to measure the size correctly?)
4.Like I understood it is address where located zImage?
5.How I should get spisrcaddr?
6.How I should get MLO.byteswap?? I didn't find any MLO.byteswap in directory U-boot after building.
Or maybe I am not right and I should use QSPI section.
BR,
Oleg