From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Tue, 19 Apr 2016 18:27:53 -0700 Subject: [U-Boot] [PATCH] mx6ul_evk: Remove SPL support In-Reply-To: References: <1461079192-1468-1-git-send-email-fabio.estevam@nxp.com> <5716CB6E.2070506@nelint.com> Message-ID: <5716DB19.2080909@nelint.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Fabio, On 04/19/2016 05:45 PM, Fabio Estevam wrote: > Hi Eric, > > On Tue, Apr 19, 2016 at 9:21 PM, Eric Nelson wrote: > >> Do you have details of which cards are failing and how? > > The brand that fails is SanDisk 8GB microSD HC I (4). > > If I change to a Kingston card, then it boots fine. > Interesting. Does the SanDisk card load using the full U-Boot? >> Do they also fail on other platforms? > > Yes, they also fail in the other SPL platforms I have access to like > mx6q-sabresd, for example. > > They failure pattern is like this: > > U-Boot SPL 2016.05-rc1-00110-g0973972-dirty (Apr 19 2016 - 20:36:43) > Trying to boot from MMC1 > hdr read sector 8a, count=0 > spl: mmc block read error from mmc_load_image_raw_sector > SPL: failed to boot from all boot devices > > Inside mmc_load_image_raw_sector() we have: > > /* read image header to find the image size & load address */ > count = mmc->block_dev.block_read(&mmc->block_dev, sector, 1, header); > > and 'coun't always return 0 for these cards. > I'd suggest reviewing the pad settings and clock setup between the SPL and full U-Boot, but I suspect you've already done that.