From: Wolfgang Denk Date: Thu, 25 Nov 2010 19:02:16 +0100 Subject: [U-Boot] [PATCH] 83xx: Fix NAND_SPL link address In-Reply-To: <20101124232840.GA17013@udp111988uds.am.freescale.net> References: <20101124232840.GA17013@udp111988uds.am.freescale.net> Message-ID: <20101125180216.457C7D172C8@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 Scott Wood, In message <20101124232840.GA17013@udp111988uds.am.freescale.net> you wrote: > Apply the same fix for 83xx as was done for 85xx in commit > 96196a1f7546904563994d2d041804a816d7c139. > > Without this, NAND SPLs are built with the text base intended for the main > image, resulting in a broken, very large u-boot-nand.bin. > > The block of defines for NAND boot is moved closer to where > CONFIG_SYS_TEXT_BASE is defined. We can't directly use > CONFIG_SYS_NAND_U_BOOT_DST in the definition of CONFIG_SYS_TEXT_BASE because > autoconf.mk will include the literal text "CONFIG_SYS_NAND_U_BOOT_DST", > but at least keep them close and point out that they're supposed to be > the same. > > Signed-off-by: Scott Wood > --- > Compile tested on MPC8315ERDB and SIMPC8313 > Boot tested on MPC8313ERDB > > boards.cfg | 6 ++-- > include/configs/MPC8313ERDB.h | 27 +++++++++++++++++------- > include/configs/MPC8315ERDB.h | 23 +++++++++++++++----- > include/configs/SIMPC8313.h | 23 ++++++++++++--------- > nand_spl/board/freescale/mpc8313erdb/Makefile | 4 +- > nand_spl/board/freescale/mpc8315erdb/Makefile | 4 +- > nand_spl/board/sheldon/simpc8313/Makefile | 4 +- > 7 files changed, 58 insertions(+), 33 deletions(-) Tested building and image sizes. Tested-by: Wolfgang Denk Acked-by: Wolfgang Denk 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 In accord with UNIX philosophy, Perl gives you enough rope to hang yourself. - L. Wall & R. L. Schwartz, _Programming Perl_