From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Thu, 30 Jun 2011 15:35:20 +0530 Subject: [U-Boot] [RFC PATCH 6/7] omap: common spl support for OMAP3/4 In-Reply-To: References: <1309352967-5719-7-git-send-email-aneesh@ti.com> <4E0C113B.3070303@denx.de> <4E0C13D0.5040001@ti.com> <4E0C2B65.5030404@denx.de> Message-ID: <4E0C4A60.5000306@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 30 June 2011 01:51 PM, Simon Schwarz wrote: > Hi, > >> Hmm, I actually porting a dm368 based board with nand_spl support >> (patches following soon), and there I have an empty bss section, >> so I can direct copy the u-boot image from nand to ram in board_init_f(). > > This is what I'am doing with OMAP3 also. IMHO it would be more > readable if relocate_code is not called if there is no relocation and > instead the clear_bss()-function is used as Andreas suggested. (Or to > just not use clear_bss if bss is empty) In my case there is indeed a BSS section, and a huge one at that - 192KB for the FAT driver. You will need it too if your OMAP3 SPL is going to support MMC FAT boot. br, Aneesh