Re: linux-next - multi-omap image fails to boot on omap3/4

Tony Lindgren
2010-10-22T21:38:47Z

* Anand Gadiyar <gadiyar@ti.com> [101022 13:07]:
> On 10/22/2010 2:52 PM, Tony Lindgren wrote:
> >
> >Yeah, it's an alignment issue that's why it sometimes works depending
> >on the Kconfig options selected..
> >
> >For rererence, posted a fix for that at:
> >
> >https://patchwork.kernel.org/patch/276161/
>
> The patch seems to work - thanks! Just curious, how do you go about
> debugging an issue like this?

Well it was a bit tricky to find out as random changes to .config
would make it work. Found the breaking patch with git bisect, but
could not see anything wrong with it. Then thought it somehow
misbehaves with CONFIG_SMP_ON_UP, but some printhex8 debugging
showed that it happens even earlier. Then went back few lines in
the boot to narrow it down, but finally had to step through it
with jtag to see that the address loaded into r5 was not aligned.

Tony