public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot]  Zynq build failure
@ 2015-09-04  8:52 Jagan Teki
  2015-09-08  9:48 ` Jagan Teki
  0 siblings, 1 reply; 8+ messages in thread
From: Jagan Teki @ 2015-09-04  8:52 UTC (permalink / raw)
  To: u-boot

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

thanks!
-- 
Jagan | openedev.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Zynq build failure
  2015-09-04  8:52 [U-Boot] Zynq build failure Jagan Teki
@ 2015-09-08  9:48 ` Jagan Teki
  2015-09-08 14:36   ` Michal Simek
  0 siblings, 1 reply; 8+ messages in thread
From: Jagan Teki @ 2015-09-08  9:48 UTC (permalink / raw)
  To: u-boot

On 4 September 2015 at 14:22, Jagan Teki <jteki@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?

thanks!
-- 
Jagan | openedev.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Zynq build failure
  2015-09-08  9:48 ` Jagan Teki
@ 2015-09-08 14:36   ` Michal Simek
  2015-09-08 17:51     ` Jagan Teki
  0 siblings, 1 reply; 8+ messages in thread
From: Michal Simek @ 2015-09-08 14:36 UTC (permalink / raw)
  To: u-boot

On 09/08/2015 11:48 AM, Jagan Teki wrote:
> On 4 September 2015 at 14:22, Jagan Teki <jteki@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?

Thanks,
Michal

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Zynq build failure
  2015-09-08 14:36   ` Michal Simek
@ 2015-09-08 17:51     ` Jagan Teki
  2015-09-09  5:32       ` Siva Durga Prasad Paladugu
  0 siblings, 1 reply; 8+ messages in thread
From: Jagan Teki @ 2015-09-08 17:51 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Zynq build failure
  2015-09-08 17:51     ` Jagan Teki
@ 2015-09-09  5:32       ` Siva Durga Prasad Paladugu
  2015-09-09  7:27         ` Jagan Teki
  0 siblings, 1 reply; 8+ messages in thread
From: Siva Durga Prasad Paladugu @ 2015-09-09  5:32 UTC (permalink / raw)
  To: u-boot

Hi Jagan,


> -----Original Message-----
> From: Jagan Teki [mailto:jteki at openedev.com]
> Sent: Tuesday, September 08, 2015 11:22 PM
> To: Michal Simek
> Cc: Siva Durga Prasad Paladugu; u-boot at lists.denx.de
> Subject: Re: [U-Boot] Zynq build failure
> 
> On 8 September 2015 at 20:06, Michal Simek <michal.simek@xilinx.com>
> wrote:
> > On 09/08/2015 11:48 AM, Jagan Teki wrote:
> >> On 4 September 2015 at 14:22, Jagan Teki <jteki@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.
We are getting the below compilation error after defining these macros. We are seeing this issue after moving to driver model. Could you please look into this.

In file included from drivers/mtd/spi/sf_probe.c:11:0:
drivers/mtd/spi/sf_probe.c: In function 'spi_flash_std_probe':
drivers/mtd/spi/sf_probe.c:636:54: error: dereferencing pointer to incomplete type
  debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
                                                      ^
include/common.h:109:26: note: in definition of macro 'debug_cond'
    printf(pr_fmt(fmt), ##args); \
                          ^
drivers/mtd/spi/sf_probe.c:636:2: note: in expansion of macro 'debug'
  debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
  ^
make[2]: *** [spl/drivers/mtd/spi/sf_probe.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC      spl/common/command.o
  CC      spl/common/s_record.o
make[1]: *** [spl/drivers/mtd/spi] Error 2
make[1]: *** Waiting for unfinished jobs....

Regards,
Siva

> 
> thanks!
> --
> Jagan | openedev.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Zynq build failure
  2015-09-09  5:32       ` Siva Durga Prasad Paladugu
@ 2015-09-09  7:27         ` Jagan Teki
  2015-09-09  8:55           ` Siva Durga Prasad Paladugu
  0 siblings, 1 reply; 8+ messages in thread
From: Jagan Teki @ 2015-09-09  7:27 UTC (permalink / raw)
  To: u-boot

On 9 September 2015 at 11:02, Siva Durga Prasad Paladugu
<siva.durga.paladugu@xilinx.com> wrote:
> Hi Jagan,
>
>
>> -----Original Message-----
>> From: Jagan Teki [mailto:jteki at openedev.com]
>> Sent: Tuesday, September 08, 2015 11:22 PM
>> To: Michal Simek
>> Cc: Siva Durga Prasad Paladugu; u-boot at lists.denx.de
>> Subject: Re: [U-Boot] Zynq build failure
>>
>> On 8 September 2015 at 20:06, Michal Simek <michal.simek@xilinx.com>
>> wrote:
>> > On 09/08/2015 11:48 AM, Jagan Teki wrote:
>> >> On 4 September 2015 at 14:22, Jagan Teki <jteki@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.
> We are getting the below compilation error after defining these macros. We are seeing this issue after moving to driver model. Could you please look into this.
>
> In file included from drivers/mtd/spi/sf_probe.c:11:0:
> drivers/mtd/spi/sf_probe.c: In function 'spi_flash_std_probe':
> drivers/mtd/spi/sf_probe.c:636:54: error: dereferencing pointer to incomplete type
>   debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
>                                                       ^
> include/common.h:109:26: note: in definition of macro 'debug_cond'
>     printf(pr_fmt(fmt), ##args); \
>                           ^
> drivers/mtd/spi/sf_probe.c:636:2: note: in expansion of macro 'debug'
>   debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
>   ^
> make[2]: *** [spl/drivers/mtd/spi/sf_probe.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
>   CC      spl/common/command.o
>   CC      spl/common/s_record.o
> make[1]: *** [spl/drivers/mtd/spi] Error 2
> make[1]: *** Waiting for unfinished jobs....

Probably you might pull, different branch - take u-boot-spi/master.

thanks!
-- 
Jagan | openedev.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Zynq build failure
  2015-09-09  7:27         ` Jagan Teki
@ 2015-09-09  8:55           ` Siva Durga Prasad Paladugu
  2015-09-09  9:51             ` Jagan Teki
  0 siblings, 1 reply; 8+ messages in thread
From: Siva Durga Prasad Paladugu @ 2015-09-09  8:55 UTC (permalink / raw)
  To: u-boot

Hi Jagan,

> -----Original Message-----
> From: Jagan Teki [mailto:jteki at openedev.com]
> Sent: Wednesday, September 09, 2015 12:57 PM
> To: Siva Durga Prasad Paladugu
> Cc: Michal Simek; u-boot at lists.denx.de
> Subject: Re: [U-Boot] Zynq build failure
> 
> On 9 September 2015 at 11:02, Siva Durga Prasad Paladugu
> <siva.durga.paladugu@xilinx.com> wrote:
> > Hi Jagan,
> >
> >
> >> -----Original Message-----
> >> From: Jagan Teki [mailto:jteki at openedev.com]
> >> Sent: Tuesday, September 08, 2015 11:22 PM
> >> To: Michal Simek
> >> Cc: Siva Durga Prasad Paladugu; u-boot at lists.denx.de
> >> Subject: Re: [U-Boot] Zynq build failure
> >>
> >> On 8 September 2015 at 20:06, Michal Simek <michal.simek@xilinx.com>
> >> wrote:
> >> > On 09/08/2015 11:48 AM, Jagan Teki wrote:
> >> >> On 4 September 2015 at 14:22, Jagan Teki <jteki@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.
> > We are getting the below compilation error after defining these macros.
> We are seeing this issue after moving to driver model. Could you please look
> into this.
> >
> > In file included from drivers/mtd/spi/sf_probe.c:11:0:
> > drivers/mtd/spi/sf_probe.c: In function 'spi_flash_std_probe':
> > drivers/mtd/spi/sf_probe.c:636:54: error: dereferencing pointer to
> incomplete type
> >   debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
> >                                                       ^
> > include/common.h:109:26: note: in definition of macro 'debug_cond'
> >     printf(pr_fmt(fmt), ##args); \
> >                           ^
> > drivers/mtd/spi/sf_probe.c:636:2: note: in expansion of macro 'debug'
> >   debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
> >   ^
> > make[2]: *** [spl/drivers/mtd/spi/sf_probe.o] Error 1
> > make[2]: *** Waiting for unfinished jobs....
> >   CC      spl/common/command.o
> >   CC      spl/common/s_record.o
> > make[1]: *** [spl/drivers/mtd/spi] Error 2
> > make[1]: *** Waiting for unfinished jobs....
> 
> Probably you might pull, different branch - take u-boot-spi/master.
I Just got it, To make it working we should have these macros defined in config file and also there are some changes which are required to
Support DM in SPL for these compilation failures. Simon already has those patches in dm tree. 
http://git.denx.de/?p=u-boot/u-boot-dm.git;a=shortlog;h=refs/heads/zynq-working

Regards,
Siva

> 
> thanks!
> --
> Jagan | openedev.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] Zynq build failure
  2015-09-09  8:55           ` Siva Durga Prasad Paladugu
@ 2015-09-09  9:51             ` Jagan Teki
  0 siblings, 0 replies; 8+ messages in thread
From: Jagan Teki @ 2015-09-09  9:51 UTC (permalink / raw)
  To: u-boot

On 9 September 2015 at 14:25, Siva Durga Prasad Paladugu
<siva.durga.paladugu@xilinx.com> wrote:
> Hi Jagan,
>
>> -----Original Message-----
>> From: Jagan Teki [mailto:jteki at openedev.com]
>> Sent: Wednesday, September 09, 2015 12:57 PM
>> To: Siva Durga Prasad Paladugu
>> Cc: Michal Simek; u-boot at lists.denx.de
>> Subject: Re: [U-Boot] Zynq build failure
>>
>> On 9 September 2015 at 11:02, Siva Durga Prasad Paladugu
>> <siva.durga.paladugu@xilinx.com> wrote:
>> > Hi Jagan,
>> >
>> >
>> >> -----Original Message-----
>> >> From: Jagan Teki [mailto:jteki at openedev.com]
>> >> Sent: Tuesday, September 08, 2015 11:22 PM
>> >> To: Michal Simek
>> >> Cc: Siva Durga Prasad Paladugu; u-boot at lists.denx.de
>> >> Subject: Re: [U-Boot] Zynq build failure
>> >>
>> >> On 8 September 2015 at 20:06, Michal Simek <michal.simek@xilinx.com>
>> >> wrote:
>> >> > On 09/08/2015 11:48 AM, Jagan Teki wrote:
>> >> >> On 4 September 2015 at 14:22, Jagan Teki <jteki@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.
>> > We are getting the below compilation error after defining these macros.
>> We are seeing this issue after moving to driver model. Could you please look
>> into this.
>> >
>> > In file included from drivers/mtd/spi/sf_probe.c:11:0:
>> > drivers/mtd/spi/sf_probe.c: In function 'spi_flash_std_probe':
>> > drivers/mtd/spi/sf_probe.c:636:54: error: dereferencing pointer to
>> incomplete type
>> >   debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
>> >                                                       ^
>> > include/common.h:109:26: note: in definition of macro 'debug_cond'
>> >     printf(pr_fmt(fmt), ##args); \
>> >                           ^
>> > drivers/mtd/spi/sf_probe.c:636:2: note: in expansion of macro 'debug'
>> >   debug("%s: slave=%p, cs=%d\n", __func__, slave, plat->cs);
>> >   ^
>> > make[2]: *** [spl/drivers/mtd/spi/sf_probe.o] Error 1
>> > make[2]: *** Waiting for unfinished jobs....
>> >   CC      spl/common/command.o
>> >   CC      spl/common/s_record.o
>> > make[1]: *** [spl/drivers/mtd/spi] Error 2
>> > make[1]: *** Waiting for unfinished jobs....
>>
>> Probably you might pull, different branch - take u-boot-spi/master.
> I Just got it, To make it working we should have these macros defined in config file and also there are some changes which are required to
> Support DM in SPL for these compilation failures. Simon already has those patches in dm tree.
> http://git.denx.de/?p=u-boot/u-boot-dm.git;a=shortlog;h=refs/heads/zynq-working

OK, please send the missing config patch - anyway this should require
even for Simon SPL changes.

thanks!
-- 
Jagan.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-09-09  9:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-04  8:52 [U-Boot] Zynq build failure Jagan Teki
2015-09-08  9:48 ` Jagan Teki
2015-09-08 14:36   ` Michal Simek
2015-09-08 17:51     ` Jagan Teki
2015-09-09  5:32       ` Siva Durga Prasad Paladugu
2015-09-09  7:27         ` Jagan Teki
2015-09-09  8:55           ` Siva Durga Prasad Paladugu
2015-09-09  9:51             ` Jagan Teki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox