board: engicam: imx8mp: adjust the fdt_addr_r and initrd_addr location
PATCH 1/1 board: engicam: imx8mp: adjust the fdt_addr_r and initrd_addr location
Booting a large kernel Image with the current fdt_addr_r address may overwrite the device tree and make the boot fail:
Moving Image from 0x40480000 to 0x40600000, end=0x430a0000
ERROR: Did not find a cmdline Flattened Device Tree
Apply the same layout used for msc_sm2s_imx8mp in commit 3a6a7a8dda69 ("msc_sm2s_imx8mp: Adjust the initrd_addr location"):
fdt_addr_r = moved loadaddr + 128 MiB = 0x48600000 initrd_addr = fdt_addr_r + 512 KiB = 0x48680000
---
include/configs/imx8mp_icore_mx8mp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/configs/imx8mp_icore_mx8mp.h +2 -2
@@ -33,10 +33,10 @@ "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \"image=Image\0" \"console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200\0" \ -"fdt_addr_r=0x43000000\0" \ +"fdt_addr_r=0x48600000\0" \"boot_fdt=try\0" \"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ -"initrd_addr=0x43800000\0" \ +"initrd_addr=0x48680000\0" \"bootm_size=0x10000000\0" \"mmcpart=1\0" \"mmcroot=/dev/mmcblk1p2 rootwait rw\0" \
---
base-commit: 03e45557e1f38a39a0c80fe30483130ff376cf92
branch: imx8mp-icore-fdt-addr-upstream
Signature · 1 line
2.43.0
Hi Dario,
include/configs/imx8mp_icore_mx8mp.h line 39
Quoted 12 lines · Dario Binacchi
include/configs/imx8mp_icore_mx8mp.h +2
-2@@ -33,10 +33,10 @@ "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \"image=Image\0" \"console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200\0" \ -"fdt_addr_r=0x43000000\0" \ +"fdt_addr_r=0x48600000\0" \"boot_fdt=try\0" \"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ -"initrd_addr=0x43800000\0" \ +"initrd_addr=0x48680000\0" \
I applied this one, but please consider converting it to a .env file.