From: Wolfgang Denk Date: Mon, 17 May 2010 22:33:55 +0200 Subject: [U-Boot] libfdt: make fdt_increase_size() available to everyone In-Reply-To: <4BF14FBF.3040900@freescale.com> References: <1273526815-1091-1-git-send-email-timur@freescale.com> <1273975868.3244.9.camel@xps> <20100517131650.1060EE6D663@gemini.denx.de> <4BF14FBF.3040900@freescale.com> Message-ID: <20100517203355.2B215E6D663@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 Timur Tabi, In message <4BF14FBF.3040900@freescale.com> you wrote: > > > So where is the code that makes sure that there is sufficient space > > available? > > Well, if I load the fdt to address c0000, and it's 10KB in size, I'm pretty > sure I can expand it to 16KB if I know that there's nothing else between > c0000 and c4000. Assume the case that the DTB is stored in NOR flash, and I pass the NOR flash address to the bootm command... I'm not sure if there is any guarantee for free room behind the DTB in this case. 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 ... not meant for the weak-at-heart: /^(?=.*one)(?=.*two)/ If you can follow that, you can use it. - Randal L. Schwartz in