From: Wolfgang Denk Date: Tue, 01 Feb 2011 08:55:21 +0100 Subject: [U-Boot] BSS footprint of FAT very high - SPL issues In-Reply-To: <4D4798E2.3050500@ti.com> References: <4D4798E2.3050500@ti.com> Message-ID: <20110201075521.60484B187@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 Aneesh V, In message <4D4798E2.3050500@ti.com> you wrote: > > I had been working on creating an MMC SPL for OMAP4. OMAP boards > typically support booting from the FAT partition of a removable SD/MMC > card. So, we need to have FAT support in the SPL. But I am having some > difficulties in adding FAT support to SPL. > > BSS footprint of fat.c is very high. It has three buffers each of size > 64KB. To workaround this problem I have done something like below(The > way x-loader works around this problem today). > CONFIG_SYS_SPL_FAT_BUFFER_BASE is in SDRAM.Is this ok? Why would that be necessary? Just put the BSS segment in SDRAM, and everything is fine, isn't it? > Also, I was wondering why we need 3 such scratch buffers in this > implementation. I do not understand this code. But I was wondering if we > could work with just one 64K buffer? I have no idea. I am not familiar with that code either. 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 A day without sunshine is like night.