[U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards
jagan at amarulasolutions.com
Tue Apr 30 17:08:31 UTC 2019
On Tue, Apr 30, 2019 at 10:30 PM Stefano Babic <sbabic at denx.de> wrote:
> On 30/04/19 18:56, Jagan Teki wrote:
> > Hi Stefano,
> > On Tue, Apr 30, 2019 at 9:36 PM Stefano Babic <sbabic at denx.de> wrote:
> >> Hi Shyam,
> >> On 30/04/19 12:33, Shyam Saini wrote:
> >>> IMX6 platform has two stage boot loaders like SPL and
> >>> U-Boot proper. For each stage we need to burn the image
> >>> on to flash with respective offsets.
> >>> This patch create a single image using binman, so that
> >>> user can get rid of burning different stage boot images.
> >>> without this patch:
> >>> ------------------
> >>> $ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1
> >>> $ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69
> >>> with this patch:
> >>> ---------------
> >>> $ sudo dd if=u-boot-imx6-with-spl.bin of=/dev/mmcblk0 bs=1k seek=1
> >> I am quite confused. There is already a "u-boot-with-spl.imx" target,
> >> this works since a lot of time. Which is the reason to duplicate this
> >> feature or where is the difference ?
> > At-least I did noticed this now, since it require explicit 'make
> > u-boot-with-spl.bin' I hardly unaware before this been available for
> > i.mx6.
> > But, this binman feature more extensible than the Makefile oriented
> > and the same been adopting by many platforms. May be we can come-up
> > with common solution with binman, what do you think?
> First, I would like to avoid to have the same feature implemented
> multiple times in different ways.
As I said, we didn't know this was supported before since it require
an explicit argument to build..it's our bad.
> If we can get the same solution for all platform, fine. But I guess i.MX
> is not the only one having such as target, socFPGA has the same solution.
More information about the U-Boot