[PATCH] ARM: imx: Enable MMU and dcache very early on i.MX8M

Fabio Estevam festevam at gmail.com
Sat Aug 31 13:16:38 CEST 2024


Hi Marek,

On Tue, Aug 27, 2024 at 5:04 PM Marek Vasut <marex at denx.de> wrote:

> +/*
> + * Place early TLB into the .data section so that it will not
> + * get cleared, use 16 kiB alignment.
> + */
> +#define EARLY_TLB_SIZE SZ_64K
> +u8 early_tlb[EARLY_TLB_SIZE] __section(".data") __aligned(0x4000);

This causes a CI failure:

https://source.denx.de/u-boot/custodians/u-boot-imx/-/jobs/895190/raw

   aarch64:  +   imx8mp_beacon
+arch/arm/mach-imx/imx8m/soc.c:602:24: error: 'SZ_64K' undeclared here
(not in a function)
+  602 | #define EARLY_TLB_SIZE SZ_64K
+      |                        ^~~~~~
+arch/arm/mach-imx/imx8m/soc.c:603:14: note: in expansion of macro
'EARLY_TLB_SIZE'
+  603 | u8 early_tlb[EARLY_TLB_SIZE] __section(".data") __aligned(0x4000);
+      |              ^~~~~~~~~~~~~~
+make[3]: *** [scripts/Makefile.build:257:
arch/arm/mach-imx/imx8m/soc.o] Error 1
+make[2]: *** [scripts/Makefile.build:397: arch/arm/mach-imx/imx8m] Error 2
+make[1]: *** [Makefile:1897: arch/arm/mach-imx] Error 2
+make: *** [Makefile:177: sub-make] Error 2

Please take a look.


More information about the U-Boot mailing list