[U-Boot] [PATCH] ARM: zynq: Fix SPL SD boot mode

Gerald Van Baren gvb.uboot at gmail.com
Fri Dec 1 17:30:25 UTC 2017


Hi Michal,

On Fri, Dec 1, 2017 at 8:13 AM, Michal Simek <michal.simek at xilinx.com>
wrote:

> This patch is fixing two issues:
> 1. Insufficient stack size for fat fs buffers
> 2. Insufficient space in malloc area
>
> Tested on zc702 and zc706.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
>

What are the symptoms of this bug?

I am running on a custom board and have been bedeviled by the behavior
where I can boot off a SD Card with the SPL loading U-Boot also off the SD
Card for many new build / copy to SD Card / boot iterations and then it
stops with an error message that the SD Card did not respond to the voltage
select command. Adding debugging printouts indicate the SD Card does not
respond to commands right at the start of the capabilities read operations
for no apparent reason.

Once it fails for a given image, it always fails for that SD Card until I
load a new image... then it might work or might not. Sometimes if I
reformat the SD Card it works again (presumably due to shifting where the
images are on the SD Card), sometimes not.

This has been driving me CRAZY.

I've applied your changes and will see if my problem goes away, but it is a
"halting problem" in that I don't know how many time it has to succeed
before I'm sure it will never fail. :-/

Thanks,
gvb


More information about the U-Boot mailing list