]> git.dujemihanovic.xyz Git - u-boot.git/commit
msc_sm2s_imx8mp: Adjust the initrd_addr location
authorFabio Estevam <festevam@denx.de>
Thu, 4 Jul 2024 12:03:37 +0000 (09:03 -0300)
committerFabio Estevam <festevam@gmail.com>
Sat, 6 Jul 2024 16:10:40 +0000 (13:10 -0300)
commit3a6a7a8dda69bc51c68be0f2287a6c1dbf9b41b6
treeb6422b5f94bc099795f149bcb5a37075a1e52371
parenta66b2ce6bda1c91754a4a0cfe9ec849a387b279e
msc_sm2s_imx8mp: Adjust the initrd_addr location

Booting an initramfs with the current initrd_addr address may lead to
initramfs corruption and boot failure.

Fix the initramfs problem by applying the following layout
suggested by Tom Rini:

loadaddr=0x40480000 --> Gets moved to 0x40600000 in run-time:

   Uncompressing Kernel Image
Moving Image from 0x40480000 to 0x40600000, end=41e80000

fdt_addr_r= moved loadaddr + 128 MiB = 0x48600000

initrd_addr=fdt_addr_r + 512 KiB = 0x48680000

Signed-off-by: Fabio Estevam <festevam@denx.de>
Tested-by: Stefano Babic <sbabic@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/configs/msc_sm2s_imx8mp.h