From: Marek Szyprowski Date: Mon, 14 Feb 2022 10:35:12 +0000 (+0100) Subject: rpi: always set fdt_addr to the correct value X-Git-Tag: accepted/tizen/unified/20231106.171643~127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72d0dfbc5e4c5e4a0dfdb260ccd18313c3e1bb3d;p=platform%2Fkernel%2Fu-boot.git rpi: always set fdt_addr to the correct value The fdt_addr env have meaning only for the current runtime and it depends on the dtb size or firmware version. If one save the environment to disk and the loads it on the latter boot, the fdt_addr might change, what result in passing incorrect dtb address to the kernel. Fix this by always setting the fdt_addr env. This fixes system operation after saving the env to disk and updating i.e. dtb files or firmware. Signed-off-by: Marek Szyprowski Change-Id: I8f242e0d92ff7cc8557c0fd4a7459804270d5d6d --- diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 4a93e8f..a27caa1 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -351,9 +351,6 @@ static void set_fdtfile(void) */ static void set_fdt_addr(void) { - if (env_get("fdt_addr")) - return; - if (fdt_magic(fw_dtb_pointer) != FDT_MAGIC) return;