[U-Boot] [PATCH v4] pico-imx7d: Increase the CONFIG_ENV_OFFSET size

Fabio Estevam festevam at gmail.com
Tue Dec 4 13:18:46 UTC 2018


Hi Wolfgang,

On Tue, Dec 4, 2018 at 11:03 AM Wolfgang Denk <wd at denx.de> wrote:

> IMO there is nothing architecture specific about this check, so we
> should probably patch the top level Makefile and remove the test in
> arch/arm/mach-imx/Makefile ?

It is not so simple, for the two following reasons:

1. The imx check has been introduced by:

commit 43e6f94cbcaf193aeedcf86e85a3ff4c79f66773
Author: Marcel Ziswiler <marcel.ziswiler at toradex.com>
Date:   Fri Nov 9 15:31:17 2018 +0100

    imx: mkimage: add size check to the u-boot.imx make target

    The make macro to check if the binary exceeds the board size limit is
    taken straight from the root Makefile.

    Without this and e.g. enabled EFI Vybrid fails booting as the regular
    size limit check does not take the final u-boot.imx binary size into
    account which is bigger due to alignment as well as IMX header stuff.

    Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
    Reviewed-by: Fabio Estevam <festevam at gmail.com>

2. For testing purpose, I removed the imx check and patched the main
Makefile, but still got error:
u-boot-nodtb.bin exceeds file size limit:
  limit:  0 bytes
  actual: 482968 bytes
  excess: 482968 bytes

How should we proceed?


More information about the U-Boot mailing list