From ffb8a1f123f1fcbfe2ac63c55736642cdcf2aaa7 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 6 Feb 2017 15:35:38 +0100 Subject: [PATCH] arm64: zynqmp: Fix SPI layout for SPL 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 --- include/configs/xilinx_zynqmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index e4cbb778387..bbf9c7d9816 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -410,7 +410,7 @@ # 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 */ -- 2.47.3