The patch:
"spi_flash: zynqmp: Dont use 4K sector erase by default"
(sha1:
246880b5ef7616c766a195d100b75f2443f9b02f)
breaks SPL code because increased erase sector size which were used
for writing SPL code to QSPI.
Fix u-boot.img position.
mmcinfo
sf probe
load mmc 0
10000000 boot.bin
sf erase 0 +$filesize
sf write
10000000 0 $filesize
load mmc 0
10000000 atf-spi.ub
sf erase 0x80000 +$filesize
sf write
10000000 0x80000 $filesize
load mmc 0
10000000 u-boot.bin
sf erase 0xa0000 +$filesize
sf write
10000000 0xa0000 $filesize
#Fixed location from 0x140000 to 0x170000
load mmc 0
10000000 u-boot.img
sf erase 0x170000 +$filesize
sf write
10000000 0x170000 $filesize
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
# define CONFIG_SYS_SPI_ARGS_OFFS 0xa0000
# define CONFIG_SYS_SPI_ARGS_SIZE 0xa0000
-# define CONFIG_SYS_SPI_U_BOOT_OFFS 0x140000
+# define CONFIG_SYS_SPI_U_BOOT_OFFS 0x170000
#endif
/* u-boot is like dtb */