All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
@ 2019-02-28 12:58 Fabio Estevam
  2019-02-28 13:21 ` Andrejs Cainikovs
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Fabio Estevam @ 2019-02-28 12:58 UTC (permalink / raw)
  To: u-boot

Hi,

I am not able to build top of tree U-Boot for imx8mq-evk:

WARNING './spl/u-boot-spl-ddr.bin' not found, resulting binary is not-functional
make[1]: Nothing to be done for 'SPL'.
  CFGCHK  u-boot.cfg

It works fine when I build from u-boot-imx tree though.

I have copied all the binaries to the U-Boot source as per the README.

Does anyone have any ideas to fix the build for U-boot mainline?

Thanks,

Fabio Estevam

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-02-28 12:58 [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found Fabio Estevam
@ 2019-02-28 13:21 ` Andrejs Cainikovs
  2019-02-28 13:38   ` Fabio Estevam
  2019-02-28 18:13 ` Chris Spencer
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 15+ messages in thread
From: Andrejs Cainikovs @ 2019-02-28 13:21 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

On 28/02/2019 13:58, Fabio Estevam wrote:
> Hi,
> 
> I am not able to build top of tree U-Boot for imx8mq-evk:
> 
> WARNING './spl/u-boot-spl-ddr.bin' not found, resulting binary is not-functional
> make[1]: Nothing to be done for 'SPL'.
>    CFGCHK  u-boot.cfg

Same for i.MX8QXP:
WARNING './spl/u-boot-spl.bin' not found, resulting binary is not-functional

But this still produces a working binary.

> It works fine when I build from u-boot-imx tree though.
> 
> I have copied all the binaries to the U-Boot source as per the README.
> 
> Does anyone have any ideas to fix the build for U-boot mainline?
> 
> Thanks,
> 
> Fabio Estevam
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
> 

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-02-28 13:21 ` Andrejs Cainikovs
@ 2019-02-28 13:38   ` Fabio Estevam
  0 siblings, 0 replies; 15+ messages in thread
From: Fabio Estevam @ 2019-02-28 13:38 UTC (permalink / raw)
  To: u-boot

Hi Andrejs,

On Thu, Feb 28, 2019 at 10:21 AM Andrejs Cainikovs
<Andrejs.Cainikovs@netmodule.com> wrote:

> Same for i.MX8QXP:
> WARNING './spl/u-boot-spl.bin' not found, resulting binary is not-functional
>
> But this still produces a working binary.

In my case the flash.bin binary is not generated.

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-02-28 12:58 [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found Fabio Estevam
  2019-02-28 13:21 ` Andrejs Cainikovs
@ 2019-02-28 18:13 ` Chris Spencer
  2019-03-01  1:17 ` Peng Fan
  2019-03-01 11:13 ` Stefano Babic
  3 siblings, 0 replies; 15+ messages in thread
From: Chris Spencer @ 2019-02-28 18:13 UTC (permalink / raw)
  To: u-boot

On Thu, 28 Feb 2019 at 12:58, Fabio Estevam <festevam@gmail.com> wrote:
> Hi,
>
> I am not able to build top of tree U-Boot for imx8mq-evk:
>
> WARNING './spl/u-boot-spl-ddr.bin' not found, resulting binary is not-functional
> make[1]: Nothing to be done for 'SPL'.
>   CFGCHK  u-boot.cfg
>
> It works fine when I build from u-boot-imx tree though.
>
> I have copied all the binaries to the U-Boot source as per the README.
>
> Does anyone have any ideas to fix the build for U-boot mainline?
>
> Thanks,
>
> Fabio Estevam

I'll have to double check in the office tomorrow, but I'm pretty sure
I'm using v2019.01 with the bash fix as the only relevant patch. Might
be worth doing a bisect from there.

Chris

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-02-28 12:58 [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found Fabio Estevam
  2019-02-28 13:21 ` Andrejs Cainikovs
  2019-02-28 18:13 ` Chris Spencer
@ 2019-03-01  1:17 ` Peng Fan
  2019-03-01  1:26   ` Fabio Estevam
  2019-03-01 11:13 ` Stefano Babic
  3 siblings, 1 reply; 15+ messages in thread
From: Peng Fan @ 2019-03-01  1:17 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

> -----Original Message-----
> From: Fabio Estevam [mailto:festevam at gmail.com]
> Sent: 2019年2月28日 20:59
> To: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>; Baruch Siach <baruch@tkos.co.il>;
> Chris Spencer <spencercw@gmail.com>; U-Boot-Denx <u-boot@lists.denx.de>
> Subject: i.MX8MQ: u-boot-spl-ddr.bin not found
> 
> Hi,
> 
> I am not able to build top of tree U-Boot for imx8mq-evk:
> 
> WARNING './spl/u-boot-spl-ddr.bin' not found, resulting binary is
> not-functional
> make[1]: Nothing to be done for 'SPL'.
>   CFGCHK  u-boot.cfg
> 
> It works fine when I build from u-boot-imx tree though.
> 
> I have copied all the binaries to the U-Boot source as per the README.
> 
> Does anyone have any ideas to fix the build for U-boot mainline?


Did you execute `make flash.bin`?

Regards,
Peng.

> 
> Thanks,
> 
> Fabio Estevam

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-03-01  1:17 ` Peng Fan
@ 2019-03-01  1:26   ` Fabio Estevam
  2019-03-01  1:49     ` Peng Fan
  0 siblings, 1 reply; 15+ messages in thread
From: Fabio Estevam @ 2019-03-01  1:26 UTC (permalink / raw)
  To: u-boot

Hi Peng,

On Thu, Feb 28, 2019 at 10:17 PM Peng Fan <peng.fan@nxp.com> wrote:
>
> Did you execute `make flash.bin`?

Yes, I did, but flash.bin is not generated for me in mainline U-Boot
tree, only in u-boot-imx tree.

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-03-01  1:26   ` Fabio Estevam
@ 2019-03-01  1:49     ` Peng Fan
  2019-03-01  8:33       ` Chris Spencer
  0 siblings, 1 reply; 15+ messages in thread
From: Peng Fan @ 2019-03-01  1:49 UTC (permalink / raw)
  To: u-boot



> -----Original Message-----
> From: Fabio Estevam [mailto:festevam at gmail.com]
> Sent: 2019年3月1日 9:26
> To: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>; Baruch Siach <baruch@tkos.co.il>;
> Chris Spencer <spencercw@gmail.com>; U-Boot-Denx <u-boot@lists.denx.de>
> Subject: Re: i.MX8MQ: u-boot-spl-ddr.bin not found
> 
> Hi Peng,
> 
> On Thu, Feb 28, 2019 at 10:17 PM Peng Fan <peng.fan@nxp.com> wrote:
> >
> > Did you execute `make flash.bin`?
> 
> Yes, I did, but flash.bin is not generated for me in mainline U-Boot tree, only in
> u-boot-imx tree.

That's weird, I did not meet issues. My command as following:

. /opt/fsl-imx-internal-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux
make CC="$CC" imx8mq_evk_defconfig
make CC="$CC"  flash.bin

Regards,
Peng.

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-03-01  1:49     ` Peng Fan
@ 2019-03-01  8:33       ` Chris Spencer
  2019-03-01  9:53         ` Peng Fan
  0 siblings, 1 reply; 15+ messages in thread
From: Chris Spencer @ 2019-03-01  8:33 UTC (permalink / raw)
  To: u-boot

On Fri, 1 Mar 2019 at 01:49, Peng Fan <peng.fan@nxp.com> wrote:
> > Hi Peng,
> >
> > On Thu, Feb 28, 2019 at 10:17 PM Peng Fan <peng.fan@nxp.com> wrote:
> > >
> > > Did you execute `make flash.bin`?
> >
> > Yes, I did, but flash.bin is not generated for me in mainline U-Boot tree, only in
> > u-boot-imx tree.
>
> That's weird, I did not meet issues. My command as following:
>
> . /opt/fsl-imx-internal-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux
> make CC="$CC" imx8mq_evk_defconfig
> make CC="$CC"  flash.bin
>
> Regards,
> Peng.

Works for me on the current U-Boot master as well. What happens when
you run the make script for u-boot-spl-ddr.bin manually?
make -f ./scripts/Makefile.build srctree=. obj=arch/arm/mach-imx
spl/u-boot-spl-ddr.bin

Or try running the tool directly:
srctree=. ./tools/imx8m_image.sh spl/u-boot-spl.cfgout 1

Chris

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-03-01  8:33       ` Chris Spencer
@ 2019-03-01  9:53         ` Peng Fan
  0 siblings, 0 replies; 15+ messages in thread
From: Peng Fan @ 2019-03-01  9:53 UTC (permalink / raw)
  To: u-boot



> -----Original Message-----
> From: Chris Spencer [mailto:spencercw at gmail.com]
> Sent: 2019年3月1日 16:34
> To: Peng Fan <peng.fan@nxp.com>
> Cc: Fabio Estevam <festevam@gmail.com>; Stefano Babic <sbabic@denx.de>;
> Baruch Siach <baruch@tkos.co.il>; U-Boot-Denx <u-boot@lists.denx.de>
> Subject: Re: i.MX8MQ: u-boot-spl-ddr.bin not found
> 
> On Fri, 1 Mar 2019 at 01:49, Peng Fan <peng.fan@nxp.com> wrote:
> > > Hi Peng,
> > >
> > > On Thu, Feb 28, 2019 at 10:17 PM Peng Fan <peng.fan@nxp.com> wrote:
> > > >
> > > > Did you execute `make flash.bin`?
> > >
> > > Yes, I did, but flash.bin is not generated for me in mainline U-Boot
> > > tree, only in u-boot-imx tree.
> >
> > That's weird, I did not meet issues. My command as following:
> >
> > .
> > /opt/fsl-imx-internal-xwayland/4.14-sumo/environment-setup-aarch64-pok
> > y-linux
> > make CC="$CC" imx8mq_evk_defconfig
> > make CC="$CC"  flash.bin
> >
> > Regards,
> > Peng.
> 
> Works for me on the current U-Boot master as well. What happens when you
> run the make script for u-boot-spl-ddr.bin manually?
> make -f ./scripts/Makefile.build srctree=. obj=arch/arm/mach-imx
> spl/u-boot-spl-ddr.bin

For a clean build without make flash.bin
#
# configuration written to .config
#
make: *** No rule to make target 'spl/u-boot-spl-ddr.bin'.  Stop.

For a already success build with make flash.bin:

#
# configuration written to .config
#
mkdir -p spl/
./tools/imx8m_image.sh spl/u-boot-spl.cfgout 1

Regards,
Peng.

> 
> Or try running the tool directly:
> srctree=. ./tools/imx8m_image.sh spl/u-boot-spl.cfgout 1
> 
> Chris

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-02-28 12:58 [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found Fabio Estevam
                   ` (2 preceding siblings ...)
  2019-03-01  1:17 ` Peng Fan
@ 2019-03-01 11:13 ` Stefano Babic
  2019-03-06 18:12   ` Fabio Estevam
  3 siblings, 1 reply; 15+ messages in thread
From: Stefano Babic @ 2019-03-01 11:13 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

On 28/02/19 13:58, Fabio Estevam wrote:
> Hi,
> 
> I am not able to build top of tree U-Boot for imx8mq-evk:
> 
> WARNING './spl/u-boot-spl-ddr.bin' not found, resulting binary is not-functional
> make[1]: Nothing to be done for 'SPL'.
>   CFGCHK  u-boot.cfg
> 
> It works fine when I build from u-boot-imx tree though.
> 

It is weird because Tom has pick up u-boot-imx and I have not yet pushed
 anything new to the server.

> I have copied all the binaries to the U-Boot source as per the README.
> 
> Does anyone have any ideas to fix the build for U-boot mainline?
> 

Regards,
Stefano


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-03-01 11:13 ` Stefano Babic
@ 2019-03-06 18:12   ` Fabio Estevam
  2019-03-07  9:33     ` Stefano Babic
  0 siblings, 1 reply; 15+ messages in thread
From: Fabio Estevam @ 2019-03-06 18:12 UTC (permalink / raw)
  To: u-boot

Hi Stefano,

On Fri, Mar 1, 2019 at 8:13 AM Stefano Babic <sbabic@denx.de> wrote:

> It is weird because Tom has pick up u-boot-imx and I have not yet pushed
>  anything new to the server.

Now I understand the reason it generates flash.bin only inside my
u-boot-imx tree: on this branch I have applied Baruch's patch:
http://patchwork.ozlabs.org/patch/1019908/

After applying it on top of U-Boot mainline tree I am also able to get
flash.bin.

It seems we need a proper fix for this problem for the upcoming 2019.04.

Thanks

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-03-06 18:12   ` Fabio Estevam
@ 2019-03-07  9:33     ` Stefano Babic
  2019-03-07 12:01       ` Fabio Estevam
  2019-03-07 15:58       ` Fabio Estevam
  0 siblings, 2 replies; 15+ messages in thread
From: Stefano Babic @ 2019-03-07  9:33 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

On 06/03/19 19:12, Fabio Estevam wrote:
> Hi Stefano,
> 
> On Fri, Mar 1, 2019 at 8:13 AM Stefano Babic <sbabic@denx.de> wrote:
> 
>> It is weird because Tom has pick up u-boot-imx and I have not yet pushed
>>  anything new to the server.
> 
> Now I understand the reason it generates flash.bin only inside my
> u-boot-imx tree: on this branch I have applied Baruch's patch:
> http://patchwork.ozlabs.org/patch/1019908/
> 

Understood.

> After applying it on top of U-Boot mainline tree I am also able to get
> flash.bin.
> 
> It seems we need a proper fix for this problem for the upcoming 2019.04.
> 

I guess I never fight with some issues (not only with U-Boot) because I
replace dash with bash on all my debian-like hosts. Anyway, I was not
very happy with the patch, using "=" in comparison is something that
hurts...

Regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-03-07  9:33     ` Stefano Babic
@ 2019-03-07 12:01       ` Fabio Estevam
  2019-03-07 15:58       ` Fabio Estevam
  1 sibling, 0 replies; 15+ messages in thread
From: Fabio Estevam @ 2019-03-07 12:01 UTC (permalink / raw)
  To: u-boot

Hi Stefano,

On Thu, Mar 7, 2019 at 6:33 AM Stefano Babic <sbabic@denx.de> wrote:

> I guess I never fight with some issues (not only with U-Boot) because I
> replace dash with bash on all my debian-like hosts. Anyway, I was not
> very happy with the patch, using "=" in comparison is something that
> hurts...

Could you please send an alternative patch for this issue?

Thanks

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-03-07  9:33     ` Stefano Babic
  2019-03-07 12:01       ` Fabio Estevam
@ 2019-03-07 15:58       ` Fabio Estevam
  2019-03-07 16:13         ` Stefano Babic
  1 sibling, 1 reply; 15+ messages in thread
From: Fabio Estevam @ 2019-03-07 15:58 UTC (permalink / raw)
  To: u-boot

Hi Stefano,

On Thu, Mar 7, 2019 at 6:33 AM Stefano Babic <sbabic@denx.de> wrote:

> I guess I never fight with some issues (not only with U-Boot) because I
> replace dash with bash on all my debian-like hosts. Anyway, I was not
> very happy with the patch, using "=" in comparison is something that
> hurts...

What about this?

--- a/tools/imx8m_image.sh
+++ b/tools/imx8m_image.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # SPDX-License-Identifier: GPL-2.0+
 #
 # script to check whether the file exists in imximage.cfg for i.MX8M

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

* [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found
  2019-03-07 15:58       ` Fabio Estevam
@ 2019-03-07 16:13         ` Stefano Babic
  0 siblings, 0 replies; 15+ messages in thread
From: Stefano Babic @ 2019-03-07 16:13 UTC (permalink / raw)
  To: u-boot

On 07/03/19 16:58, Fabio Estevam wrote:
> Hi Stefano,
> 
> On Thu, Mar 7, 2019 at 6:33 AM Stefano Babic <sbabic@denx.de> wrote:
> 
>> I guess I never fight with some issues (not only with U-Boot) because I
>> replace dash with bash on all my debian-like hosts. Anyway, I was not
>> very happy with the patch, using "=" in comparison is something that
>> hurts...
> 
> What about this?
> 
> --- a/tools/imx8m_image.sh
> +++ b/tools/imx8m_image.sh
> @@ -1,4 +1,4 @@
> -#!/bin/sh
> +#!/bin/bash
>  # SPDX-License-Identifier: GPL-2.0+
>  #
>  # script to check whether the file exists in imximage.cfg for i.MX8M
> 

I guess this makes me happy, but not all people that do not want to run
bash (else we had no problem). Generally, changing the shebang is not
the best solution...I have suggested to rework the script to drop that
line, but I am now in a custom project and I cannot check this issue soon.

Regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

end of thread, other threads:[~2019-03-07 16:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-28 12:58 [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found Fabio Estevam
2019-02-28 13:21 ` Andrejs Cainikovs
2019-02-28 13:38   ` Fabio Estevam
2019-02-28 18:13 ` Chris Spencer
2019-03-01  1:17 ` Peng Fan
2019-03-01  1:26   ` Fabio Estevam
2019-03-01  1:49     ` Peng Fan
2019-03-01  8:33       ` Chris Spencer
2019-03-01  9:53         ` Peng Fan
2019-03-01 11:13 ` Stefano Babic
2019-03-06 18:12   ` Fabio Estevam
2019-03-07  9:33     ` Stefano Babic
2019-03-07 12:01       ` Fabio Estevam
2019-03-07 15:58       ` Fabio Estevam
2019-03-07 16:13         ` Stefano Babic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.