[U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

Stefano Babic sbabic at denx.de
Tue Apr 30 17:00:14 UTC 2019


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.

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.

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
=====================================================================


More information about the U-Boot mailing list