mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Vanhauwaert Wouter <W.Vanhauwaert@TELEVIC.com>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: Barebox fails to boot 1/40 boots...
Date: Tue, 18 Jun 2013 21:25:04 +0200	[thread overview]
Message-ID: <20130618192504.GX32299@pengutronix.de> (raw)
In-Reply-To: <E78BBE677EB9144B8F0A0A29674CD5338ED01639D6@SRV-VS06.TELEVIC.COM>

On Tue, Jun 18, 2013 at 02:59:57PM +0200, Vanhauwaert Wouter wrote:
> Hello all,
> 
> I have this issue with our custom design (IMX53, NAND, DDR3)
> 
> Everything goes well most of the time, but now and then  the system does not boot and halts during initialization... 
> To be more specific, the function on which the system blocks is 'setup_c()' in arch/arm/cpu/start-pbl.c
> 
> What can I do more to debug this? This function is completely in assembler...

What makes you sure barebox stops there? Do you have DEBUG_LL enabled or
do you use a JTAG debugger?

Does this happen in first stage boot only or also when you chainload
barebox from an already running barebox?

You could try calling imx53_init_lowlevel_early from
barebox_arm_reset_vector(). This *could* make a difference.

Since you are using v2013.05-stable you should have the following
patches, but maybe it's worth rechecking.

76820df ARM: invalidate data caches during early init
f9d7582 ARM v7: added v7_mmu_cache_invalidate()
ee5f859 ARM v7: v7_mmu_cache_flush(): do not restore r0-r3 (minor optimization)
eb7d85c arm: properly init alignment trap bit
7904d90 ARM v7: fix mmu-off operation
9af1150 ARM: fix the memset fix

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2013-06-18 19:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18 12:59 Vanhauwaert Wouter
2013-06-18 13:13 ` Lucas Stach
2013-06-18 13:20   ` Vanhauwaert Wouter
2013-06-18 19:25 ` Sascha Hauer [this message]
2013-06-19  6:59   ` Vanhauwaert Wouter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130618192504.GX32299@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=W.Vanhauwaert@TELEVIC.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox