[PATCH] arm: imx: imx8m: Enable the SError exception

Fabio Estevam festevam at gmail.com
Thu Jan 18 14:30:12 CET 2024


On Fri, Jan 12, 2024 at 3:00 PM Fabio Estevam <festevam at gmail.com> wrote:
>
> Hi Ye Li,
>
> On Fri, Jan 12, 2024 at 4:07 AM Ye Li <ye.li at nxp.com> wrote:
> >
> > To work with commit 2f3c920(imx8m: workaround ROM serror),
> > we need to enable the SError exception and install vector in SPL.
> >
> > Signed-off-by: Ye Li <ye.li at nxp.com>
> > Reviewed-by: Peng Fan <peng.fan at nxp.com>
>
> This causes an image increase that makes SPL to not fit into the
> internal SRAM on some boards:
>
> https://source.denx.de/u-boot/custodians/u-boot-imx/-/jobs/769422

To fix this problem, what if we enable LTO for all imx8m platforms?

diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig
index b1937198402f..6617a631b4d6 100644
--- a/arch/arm/mach-imx/imx8m/Kconfig
+++ b/arch/arm/mach-imx/imx8m/Kconfig
@@ -7,19 +7,23 @@ config IMX8M
        select HAS_CAAM
        select ROM_UNIFIED_SECTIONS
        select ARMV8_CRYPTO
+       select LTO

 config IMX8MQ

What do you think?


More information about the U-Boot mailing list