]> git.dujemihanovic.xyz Git - u-boot.git/commit
cpu: imx8_cpu: Avoid revision to corrupt device tree
authorPeng Fan <peng.fan@nxp.com>
Fri, 18 Oct 2024 07:34:32 +0000 (15:34 +0800)
committerFabio Estevam <festevam@gmail.com>
Fri, 18 Oct 2024 12:41:09 +0000 (09:41 -0300)
commit9b1cecdd9b6eaf22c4fa268430669ceff0c48786
treedeebfeefa1d2952d01a477367474343f818793c6
parent21cd724a5455fd761e131dbd334a6b0592c65ce4
cpu: imx8_cpu: Avoid revision to corrupt device tree

U-Boot device tree is padded just after U-Boot proper.
After the whole stuff loaded to DRAM space, the device tree
area is conflict with BSS region before U-Boot relocation.

So any write to BSS area before reloc_fdt will corrupt the
device tree. Without the fix, there is issue that “binman_init
failed:-2” on i.MX8MP-EVK board.

Drop 'revision' and use malloc area in cpu_imx_plat->rev.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/cpu/imx8_cpu.c