[U-Boot] Zynq build failure

Jagan Teki jteki at openedev.com
Tue Sep 8 19:51:59 CEST 2015


On 8 September 2015 at 20:06, Michal Simek <michal.simek at xilinx.com> wrote:
> On 09/08/2015 11:48 AM, Jagan Teki wrote:
>> On 4 September 2015 at 14:22, Jagan Teki <jteki at openedev.com> 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?

Please do, I will take this as part of qspi patches.

thanks!
-- 
Jagan | openedev.


More information about the U-Boot mailing list