From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Tue, 8 Sep 2015 16:36:21 +0200 Subject: [U-Boot] Zynq build failure In-Reply-To: References: Message-ID: <55EEF265.9090207@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/08/2015 11:48 AM, Jagan Teki wrote: > On 4 September 2015 at 14:22, Jagan Teki wrote: >> Hi Michal/Siva, >> >> Any fix for this failure? >> >> CC spl/drivers/mtd/spi/spi_spl_load.o >> drivers/mtd/spi/spi_spl_load.c: In function 'spi_load_image_os': >> drivers/mtd/spi/spi_spl_load.c:26:24: error: >> 'CONFIG_SYS_SPI_KERNEL_OFFS' undeclared (first use in this function) >> drivers/mtd/spi/spi_spl_load.c:26:24: note: each undeclared identifier >> is reported only once for each function it appears in >> drivers/mtd/spi/spi_spl_load.c:38:24: error: >> 'CONFIG_SYS_SPI_ARGS_OFFS' undeclared (first use in this function) >> drivers/mtd/spi/spi_spl_load.c:39:10: error: >> 'CONFIG_SYS_SPI_ARGS_SIZE' undeclared (first use in this function) >> make[3]: *** [spl/drivers/mtd/spi/spi_spl_load.o] Error 1 > > Any help? > It is just MTD map. It means it can be whatever. :-) Let's say - bitstream first - max 0x1100000 for 7z100 Then DTB - 0.5MB max and the rest kernel #define CONFIG_SYS_SPI_ARGS_OFFS 0x1100000 #define CONFIG_SYS_SPI_ARGS_SIZE 0x80000 #define CONFIG_SYS_SPI_KERNEL_OFFS (CONFIG_SYS_SPI_ARGS_OFFS + CONFIG_SYS_SPI_ARGS_SIZE) Adding this to zynq-common and we are done. Do you want me to send the patch for it? Thanks, Michal