From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Schwarz Date: Tue, 29 Nov 2011 18:14:35 +0100 Subject: [U-Boot] devkit8000: MMC/FAT booting problem with SPL In-Reply-To: <201111291725.54643.marek.vasut@gmail.com> References: <4ED4BDF4.3000502@gmail.com> <4ED4EF34.1090706@ti.com> <201111291725.54643.marek.vasut@gmail.com> Message-ID: <4ED512FB.3040206@gmail.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 11/29/2011 05:25 PM, Marek Vasut wrote: [SNIP] > > Stupid question -- isn't some stack corruption / memory corruption going on ? > > M Not stupid at all. I don't think it is a stack corruption but IMHO it seems that the .bss section is overwritten somehow. The cur_dev pointer is 0x80000120 for the first sector and 0xe087c004 before the second one. So either it is changed somewhere or somehow the pointer is overwritten by accident.