mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Luca Ceresoli <list@lucaceresoli.net>
Cc: barebox@lists.infradead.org
Subject: Re: Regression: not booting anymore on OMAP35xx
Date: Thu, 24 Jun 2010 17:41:41 +0200	[thread overview]
Message-ID: <20100624154141.GC12115@pengutronix.de> (raw)
In-Reply-To: <L4IQU1$4731D5E42E435C795207D3BFB302BAD3@aruba.it>

On Thu, Jun 24, 2010 at 02:32:25PM +0200, Luca Ceresoli wrote:
> Sascha Hauer wrote:
> > On Tue, Jun 22, 2010 at 04:04:52PM +0200, Luca Ceresoli wrote:
> > > Sascha Hauer wrote:
> > > > Hi Luca,
> > > > 
> > > > On Tue, Jun 22, 2010 at 02:26:11PM +0200, Luca Ceresoli wrote:
> > > > > Hi,
> > > > > 
> > > > 
> > > > Seems that I lost the call to arch_init_lowlevel. Does the following
> > > > patch help?
> > > 
> > > I'm afraid it doesn't seem to.
> > > It fails with the same symptoms.
> > > 
> > > Luca
> > > 
> > > > 
> > > > 
> > > > diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c
> > > > index eea7dcf..91d2ccd 100644
> > > > --- a/arch/arm/cpu/start.c
> > > > +++ b/arch/arm/cpu/start.c
> > > > @@ -50,6 +50,8 @@ void __naked __bare_init reset(void)
> > > >  {
> > > >  	uint32_t r;
> > > >  
> > > > +	arch_init_lowlevel();
> > > > +
> > 
> > Ok, this has to be done *after* switching the cpu to SVC32 mode.
> > 
> > I tested this on my beagle board and now it works again. I pushed
> > a patch to the master repository.
> 
> Sascha, thank you for the prompt response.
> Unfortunately the new version works only partially with my Beagle
> Board (rev. C4).
> 
> I tested commit:
>  46976f7 OMAP: fix compilation
> 
> - Test 1: the board is always powered.
>   Press RESET with the USER key pressed.
>   10 tests, 10 passed.
> 
> - Test 2: the board is not powered.
>   Turn turn it on with the USER key pressed.
>   Turn turn it off again at the end of the test.
>   10 tests, 5 passed, 5 failed.
> 
> During all of the 20 tests, barebox.bin was always the same.
> I didn't recompile it.
> 
> OTOH the commit before the "reimplement in C" passes also test 2.
> 
> I hope this gives enough hints to solve the problem.

Ok, I'll try to reproduce this.

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

  reply	other threads:[~2010-06-24 15:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24 12:32 Luca Ceresoli
2010-06-24 15:41 ` Sascha Hauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-06-22 14:04 Luca Ceresoli
2010-06-23  6:42 ` Sascha Hauer
2010-06-22 12:26 Luca Ceresoli
2010-06-22 13:11 ` Sascha Hauer

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=20100624154141.GC12115@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=list@lucaceresoli.net \
    /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