From: Thierry Reding Date: Wed, 10 Jul 2013 16:47:51 -0700 Subject: [U-Boot] [PATCH] image: Don't relocate ramdisk to highmem Message-ID: <1373500071-6476-1-git-send-email-thierry.reding@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Thierry Reding The Linux kernel cannot unpack a ramdisk that's stored in high memory. Unless the initrd_high environment variable is explicitly set, abide by that restriction using the getenv_bootm_low() and getenv_bootm_mapsize() helpers. Signed-off-by: Thierry Reding --- common/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/image.c b/common/image.c index e91c89e..bc79b43 100644 --- a/common/image.c +++ b/common/image.c @@ -1090,8 +1090,8 @@ int boot_ramdisk_high(struct lmb *lmb, ulong rd_data, ulong rd_len, if (initrd_high == ~0) initrd_copy_to_ram = 0; } else { - /* not set, no restrictions to load high */ - initrd_high = ~0; + /* make sure to put ramdisk in low memory */ + initrd_high = getenv_bootm_low() + getenv_bootm_mapsize(); } -- 1.8.1.5