[U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards
Fabio Estevam
festevam at gmail.com
Tue Apr 30 12:47:05 UTC 2019
Hi Shyam,
On Tue, Apr 30, 2019 at 7:34 AM Shyam Saini
<shyam.saini at amarulasolutions.com> 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
>
> This would be easily extended to single image creation
> for other imx6 soc boards.
>
> This was tested on engicam imx6qdl and imx6ul boards
>
> Reviewed-by: Jagan Teki <jagan at amarulasolutions.com>
> Signed-off-by: Shyam Saini <shyam.saini at amarulasolutions.com>
I like the idea, but this breaks the build for mx6sabresd_defconfig:
COPY spl/u-boot-spl.bin
CFGS spl/u-boot-spl.cfgout
MKIMAGE SPL
BINMAN u-boot-imx6-with-spl.bin
Wrote map file './image.map' to show errors
binman: Node '/binman/u-boot-img': Offset 0x11000 (69632) overlaps
with previous entry '/binman/blob' ending at 0x11c00 (72704)
Makefile:1374: recipe for target 'u-boot-imx6-with-spl.bin' failed
make: *** [u-boot-imx6-with-spl.bin] Error 1
I am interested to see if this solution could load
u-boot-imx6-with-spl.bin via imx_usb_loader in Serial Download Mode.
Currently it is not possible to load SPL + u-boot-dtb.img + FIT via
imx_usb_loader. Does it work with your proposal?
Thanks
More information about the U-Boot
mailing list