From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 15 Aug 2007 09:43:41 +0200 Subject: [U-Boot-Users] [PATCH v3] Fix initrd/dtb interaction In-Reply-To: <118710557976-git-send-email-afleming@freescale.com> References: <118710557976-git-send-email-afleming@freescale.com> Message-ID: <200708150943.41703.sr@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 Hi Andy, On Tuesday 14 August 2007, Andy Fleming wrote: > The original code would wrongly relocate the blob to be right before > the initrd if it existed. The blob *must* be within CFG_BOOTMAPSZ, > if it is defined. So we make two changes: > > 1) flag the blob for relocation whenever its address is above BOOTMAPSZ > > 2) If the blob is being relocated, relocate it before kbd, not initrd I get the following error with your patch on platforms not using device tree at all (like 4xx sequoia...): cmd_bootm.c: In function 'do_bootm_linux': cmd_bootm.c:932: error: 'of_flat_tree' undeclared (first use in this function) cmd_bootm.c:932: error: (Each undeclared identifier is reported only once cmd_bootm.c:932: error: for each function it appears in.) cmd_bootm.c:933: error: 'of_data' undeclared (first use in this function) make[1]: *** [cmd_bootm.o] Error 1 Would be great if you could generate a quick patch for that. Thanks. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================