Package: u-boot-exynos
Version: 2021.01+dfsg-5

Dear maintainers,

Booting a kernel with initrd using U-Boot from bullseye with default
environment results in a kernel panic, because U-Boot loads the initrd
in highmem [1]. The problem has been fixed upstream [2]. Please consider
including the fix in bullseye. I've tested the attached patch, which
applies to v2021.01 and which is a backport of the fix (variable
`CONFIG_SYS_BOOTMAPSZ` has been renamed to `CFG_SYS_BOOTMAPSZ` in
v2023.01).

Best, Joost

[1]: https://lists.denx.de/pipermail/u-boot/2023-January/504469.html
[2]: https://lists.denx.de/pipermail/u-boot/2023-January/505358.html

>From 9926ea7e2103ad4ce390797c170aaf6993f5cb81 Mon Sep 17 00:00:00 2001
From: Joost van Zwieten <jo...@diskos.nl>
Date: Sun, 15 Jan 2023 00:57:30 +0100
Subject: [PATCH] odroid: limit boot memory to lowmem

In commit 4963f63fe61f ("image: Use gd->ram_base/_size in
env_get_bootm_size()") the size of the available memory for U-Boot to
use when relocating images, and not otherwise constrained, was changed
to include all known memory banks. In the case of this platform however,
all of the memory known to U-Boot is not also part of the Linux kernel
"lowmem" and so we must use CFG_SYS_BOOTMAPSZ to limit where we relocate
images to. We set a conservative limit of 256MB here to mirror the
previous behavior.

Signed-off-by: Joost van Zwieten <jo...@diskos.nl>
[trini: Reword the commit messsage]
Signed-off-by: Tom Rini <tr...@konsulko.com>
---
 include/configs/odroid.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/configs/odroid.h b/include/configs/odroid.h
index 1367d13891..dfb1eeb784 100644
--- a/include/configs/odroid.h
+++ b/include/configs/odroid.h
@@ -21,6 +21,7 @@
 
 #define CONFIG_MACH_TYPE	4289
 
+#define CONFIG_SYS_BOOTMAPSZ	0x10000000
 #define CONFIG_SYS_SDRAM_BASE	0x40000000
 #define SDRAM_BANK_SIZE		(256 << 20)	/* 256 MB */
 #define PHYS_SDRAM_1		CONFIG_SYS_SDRAM_BASE
-- 
2.30.2

Reply via email to