diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-04-21 12:11:46 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-05-03 14:26:02 +0200 |
commit | ef1b3e5e8384e908732d983dcf2e3cfc2bced9c7 (patch) | |
tree | e99bcb03679b90eb74a2c8f3c58385bb81b82c61 | |
parent | 29ca1d81114c67338268a1cf1eaca7b468a3a12d (diff) | |
download | barebox-ef1b3e5e8384e908732d983dcf2e3cfc2bced9c7.tar.gz |
ARM: rockchip: bootm: move image to 4k alignment
The new barebox must be 4k aligned which is not always the case when
we skip over the SDRAM initialisation binary. memmove to a suitable
place.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-rockchip/bootm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/bootm.c b/arch/arm/mach-rockchip/bootm.c index 4317fdefd6..6f4aa27808 100644 --- a/arch/arm/mach-rockchip/bootm.c +++ b/arch/arm/mach-rockchip/bootm.c @@ -88,7 +88,8 @@ static int do_bootm_rkns_barebox_image(struct image_data *data) file_type_to_string(filetype)); if (filetype == filetype_arm_barebox) { - barebox = buf + entry_start; + memmove(buf, buf + entry_start, image_size - entry_start); + barebox = buf; goto found; } } |