From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Mon, 19 Jan 2015 10:51:43 +0100 Subject: [U-Boot] Fwd: u-boot.img size limit for spl fat load ? In-Reply-To: References: <20150119080858.16986d02@lilith> <20150119102741.01002b0b@lilith> Message-ID: <20150119105143.3759d44c@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Ayoub, On Mon, 19 Jan 2015 10:35:56 +0100, Ayoub Zaki wrote: > Hello Albert, > > First tank you so much for inversting your time for replying. > > I put some printf in the code and SPL is hanging in spl_load_image_fat > function. > > I also enable the DEBUG messages here the complete log file : > > http://pastebin.com/raw.php?i=BwUJXDDb > So I suspect that SPL is not allocating enough memory to load u-boot.img > but I can't find where this size limit is set and where I can change it. This could be an explanation, but so could be loading the U-Boot image over SPL BSS if it resides in DDR, or SPL malloc'ed data; and I guess that if the U-Boot image file size was smaller than a hard-coded limit, there would be a warning or even an error. Can you check CONFIG_SPL_BSS_* and CONFIG_SYS_SPL_MALLOC_* definitions against CONFIG_SYS_TEXT_BASE and file size? > Cheers, > > Ayoub Amicalement, -- Albert.