Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-03-07 Thread Stefano Babic
On 07/03/19 16:58, Fabio Estevam wrote:
> Hi Stefano,
> 
> On Thu, Mar 7, 2019 at 6:33 AM Stefano Babic  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: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-03-07 Thread Fabio Estevam
Hi Stefano,

On Thu, Mar 7, 2019 at 6:33 AM Stefano Babic  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
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-03-07 Thread Fabio Estevam
Hi Stefano,

On Thu, Mar 7, 2019 at 6:33 AM Stefano Babic  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
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-03-07 Thread Stefano Babic
Hi Fabio,

On 06/03/19 19:12, Fabio Estevam wrote:
> Hi Stefano,
> 
> On Fri, Mar 1, 2019 at 8:13 AM Stefano Babic  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: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-03-06 Thread Fabio Estevam
Hi Stefano,

On Fri, Mar 1, 2019 at 8:13 AM Stefano Babic  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
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-03-01 Thread Stefano Babic
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: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-03-01 Thread Peng Fan


> -Original Message-
> From: Chris Spencer [mailto:spence...@gmail.com]
> Sent: 2019年3月1日 16:34
> To: Peng Fan 
> Cc: Fabio Estevam ; Stefano Babic ;
> Baruch Siach ; U-Boot-Denx 
> Subject: Re: i.MX8MQ: u-boot-spl-ddr.bin not found
> 
> On Fri, 1 Mar 2019 at 01:49, Peng Fan  wrote:
> > > Hi Peng,
> > >
> > > On Thu, Feb 28, 2019 at 10:17 PM Peng Fan  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
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-03-01 Thread Chris Spencer
On Fri, 1 Mar 2019 at 01:49, Peng Fan  wrote:
> > Hi Peng,
> >
> > On Thu, Feb 28, 2019 at 10:17 PM Peng Fan  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
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-02-28 Thread Peng Fan


> -Original Message-
> From: Fabio Estevam [mailto:feste...@gmail.com]
> Sent: 2019年3月1日 9:26
> To: Peng Fan 
> Cc: Stefano Babic ; Baruch Siach ;
> Chris Spencer ; U-Boot-Denx 
> Subject: Re: i.MX8MQ: u-boot-spl-ddr.bin not found
> 
> Hi Peng,
> 
> On Thu, Feb 28, 2019 at 10:17 PM Peng Fan  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.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-02-28 Thread Fabio Estevam
Hi Peng,

On Thu, Feb 28, 2019 at 10:17 PM Peng Fan  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.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-02-28 Thread Peng Fan
Hi Fabio,

> -Original Message-
> From: Fabio Estevam [mailto:feste...@gmail.com]
> Sent: 2019年2月28日 20:59
> To: Peng Fan 
> Cc: Stefano Babic ; Baruch Siach ;
> Chris Spencer ; U-Boot-Denx 
> 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
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-02-28 Thread Chris Spencer
On Thu, 28 Feb 2019 at 12: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.
>
> 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
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-02-28 Thread Andrejs Cainikovs
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@lists.denx.de
> https://lists.denx.de/listinfo/u-boot
> 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-02-28 Thread Fabio Estevam
Hi Andrejs,

On Thu, Feb 28, 2019 at 10:21 AM Andrejs Cainikovs
 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.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] i.MX8MQ: u-boot-spl-ddr.bin not found

2019-02-28 Thread Fabio Estevam
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
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot