[U-Boot] distro boot on ls2085ardb
Peter Newton
peter.newton at nxp.com
Wed Feb 8 23:08:10 UTC 2017
> From: york sun
> Sent: Wednesday, February 08, 2017 5:06 PM
> To: Stuart Yoder <stuart.yoder at nxp.com>; agraf at suse.de; Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>
> Cc: Peter Newton <peter.newton at nxp.com>; u-boot at lists.denx.de
> Subject: Re: distro boot on ls2085ardb
>
> On 02/08/2017 02:55 PM, Stuart Yoder wrote:
> > All,
> >
> > The patch Alex submitted to enable distro boot on ls2085ardb sets up a
> > default bootcmd that looks like this:
> >
> > bootcmd=run mcinitcmd && fsl_mc lazyapply dpl 0x580700000 &&
> > cp.b $kernel_start $kernel_load $kernel_size &&
> > bootm $kernel_load || run distro_bootcmd
> >
> > Was there any particular reason to attempt the NOR flash boot first?
> > (Just backwards compatibility?) That "cp.b" takes a full
> > 30 seconds and seems potentially unnecessary. I thought the board was
> > hung.
> >
> > We want to support distro boot on all NXP LS* boards, and I'm
> > wondering if it's better to just make running distro_bootcmd the
> > default, and then fall back to NOR flash boot if distro boot fails.
> >
> > bootcmd=run mcinitcmd && fsl_mc lazyapply dpl 0x580700000 &&
> > run distro_bootcmd ||
> > cp.b $kernel_start $kernel_load $kernel_size &&
> > bootm $kernel_load
> >
> > Thoughts?
>
> It was for backward compatibility. Even I have pointed out numerous times (internally) that cp.b should not be used for this case, and
> even pointed out how to make a FIT image with load address, the board
> maintainer(s) didn't act. One change I can propose is to drop the "cp.b $kernel_start $kernel_load $kernel_size" and run "bootm
> $kernel_start"
> directly. If it fails, then falls to distro_bootcmd.
I wondered why we needed the cp.b at all. How do you add the load address to fit?
More information about the U-Boot
mailing list