From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 07 Aug 2010 21:56:37 +0200 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: <20100807195637.8698B1536EF@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Matthew McClintock, In message <1278601868-17059-1-git-send-email-msm@freescale.com> you 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(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "To IBM, 'open' means there is a modicum of interoperability among some of their equipment." - Harv Masterson