From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Date: Thu, 8 Jul 2010 17:19:23 -0500 Subject: [U-Boot] [PATCH] Fix condition where bootm_size not set and wrong memory size reported In-Reply-To: <1278601868-17059-1-git-send-email-msm@freescale.com> References: <4C359DD3.1030901@mvista.com> <1278601868-17059-1-git-send-email-msm@freescale.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Jul 8, 2010, at 10:11 AM, Matthew McClintock wrote: > If the user sets bootm_low and does not set bootm_size, u-boot will > report the memory node in the flat device tree incorrectly. Instead > of reporting the remaining size of memory, it will report the total > available memory which is incorrect. > > Specifically this fixes the situation when booting a relocatable > kernel and the memory is reported as an offset and size in the > device tree, and the size needs to be adjusted accordingly. > > Signed-off-by: Matthew McClintock > --- > common/image.c | 12 +++++++++--- > 1 files changed, 9 insertions(+), 3 deletions(-) Acked-by: Kumar Gala - k