[U-Boot] bav335x support broken

Albert ARIBAUD albert.u.boot at aribaud.net
Tue Mar 17 09:56:17 CET 2015


Hello Gilles,

On Tue, 17 Mar 2015 01:09:04 -0700, Gilles <gilles at gigadevices.com>
wrote:
> Hi Anish,
> 
> Yes, actually my board support is based on an older sitara patch and it works when applied to v2015.01. But I was mistaken about the problem.
> I went back to my original patch applied to v2015.01 and it gives the same error but then moves on to SPL and boots ok.
> 
> http://pastebin.com/A23qKkj8
> 
> So I guess it's safe to say that the "fat" error is not the problem. The problem when I compile a74ef40a471d9d4bffb36a8c89744cf6fd631e6f is that it restarts over and over.
> 
> http://pastebin.com/wvjx4mB8

This is typically caused by the u-boot image being corrupt, or
corrupting the SPL somehow, frequently because some memory is being
mapped by both for conflicting uses. Check memory mappings for SPL and
U-Boot including stack, BSS and malloc area locations.

> Do you have any suggestions how how to find the cause of the constant restart? I actually don't have a debugger for this hardware :-(

What you can do is enable debugging (define DEBUG macro) globally,
rebuild SPL and look at the console output. You can also add your own
debug() or printf() calls to track which parts of your code get run and
which ones don't.

> Cheers,
> Gilles

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list