public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [MPC83xx] broken patch "do not fixup NULL ptrs" ?
@ 2010-10-22 14:30 André Schwarz
  2010-10-22 14:56 ` Joakim Tjernlund
  0 siblings, 1 reply; 4+ messages in thread
From: André Schwarz @ 2010-10-22 14:30 UTC (permalink / raw)
  To: u-boot

Joakim,


your commit d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 renders my MPC8377
based board unbootable.


Two weeks ago I got this after power on : 


U-Boot 2010.09-00486-gfda6278-dirty (Oct 22 2010 - 16:19:20) MPC83XX

Reset Status:

CPU:   e300c4, MPC8377, Rev: 2.1 at 533.333 MHz, CSB: 266.667 MHz
Board: Matrix Vision MergerBox
....



After rebasing my work to current master completely silences the serial
line and the CPU doesn't come up. Bisection leads to your patch.

reverting it makes the board work again.

Any ideas ?


BTW:
 - I'm using ELDK-4.2 toolchain.
 - mvBLM7 (=MPC8343 based) works fine.



Regards,
Andr?


MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [MPC83xx] broken patch "do not fixup NULL ptrs" ?
  2010-10-22 14:30 [U-Boot] [MPC83xx] broken patch "do not fixup NULL ptrs" ? André Schwarz
@ 2010-10-22 14:56 ` Joakim Tjernlund
  2010-10-22 19:25   ` André Schwarz
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2010-10-22 14:56 UTC (permalink / raw)
  To: u-boot

Andr? Schwarz <andre.schwarz@matrix-vision.de> wrote on 2010/10/22 
16:30:49:
> 
> Joakim,
> 
> 
> your commit d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 renders my MPC8377
> based board unbootable.
> 
> 
> Two weeks ago I got this after power on : 
> 
> 
> U-Boot 2010.09-00486-gfda6278-dirty (Oct 22 2010 - 16:19:20) MPC83XX
> 
> Reset Status:
> 
> CPU:   e300c4, MPC8377, Rev: 2.1 at 533.333 MHz, CSB: 266.667 MHz
> Board: Matrix Vision MergerBox
> ....
> 
> 
> 
> After rebasing my work to current master completely silences the serial
> line and the CPU doesn't come up. Bisection leads to your patch.
> 
> reverting it makes the board work again.
> 
> Any ideas ?

Yes, the problem is else where. This code runs after relocation to RAM.
I had a similar problem and the reason was the patch:
 "powerpc: Remove warm reset entry point"

Try sticking 4 nop's right after _start:
in start.S

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [MPC83xx] broken patch "do not fixup NULL ptrs" ?
  2010-10-22 14:56 ` Joakim Tjernlund
@ 2010-10-22 19:25   ` André Schwarz
  2010-10-23  9:17     ` Joakim Tjernlund
  0 siblings, 1 reply; 4+ messages in thread
From: André Schwarz @ 2010-10-22 19:25 UTC (permalink / raw)
  To: u-boot

On Fri, 2010-10-22 at 16:56 +0200, Joakim Tjernlund wrote:
> Andr? Schwarz <andre.schwarz@matrix-vision.de> wrote on 2010/10/22 
> 16:30:49:
> > 
> > Joakim,
> > 
> > 
> > your commit d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 renders my MPC8377
> > based board unbootable.
> > 
> > 
> > Two weeks ago I got this after power on : 
> > 
> > 
> > U-Boot 2010.09-00486-gfda6278-dirty (Oct 22 2010 - 16:19:20) MPC83XX
> > 
> > Reset Status:
> > 
> > CPU:   e300c4, MPC8377, Rev: 2.1 at 533.333 MHz, CSB: 266.667 MHz
> > Board: Matrix Vision MergerBox
> > ....
> > 
> > 
> > 
> > After rebasing my work to current master completely silences the serial
> > line and the CPU doesn't come up. Bisection leads to your patch.
> > 
> > reverting it makes the board work again.
> > 
> > Any ideas ?
> 
> Yes, the problem is else where. This code runs after relocation to RAM.
> I had a similar problem and the reason was the patch:
>  "powerpc: Remove warm reset entry point"

hmm, ok.
But what's the root cause ?

> 
> Try sticking 4 nop's right after _start:
> in start.S
> 

... and why should this work ?
Has this something to do with trial and error ?

Can you shed some light on this ?



Regards,
Andr?




MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [MPC83xx] broken patch "do not fixup NULL ptrs" ?
  2010-10-22 19:25   ` André Schwarz
@ 2010-10-23  9:17     ` Joakim Tjernlund
  0 siblings, 0 replies; 4+ messages in thread
From: Joakim Tjernlund @ 2010-10-23  9:17 UTC (permalink / raw)
  To: u-boot

Andr? Schwarz <andre.schwarz@matrix-vision.de> wrote on 2010/10/22 21:25:34:
>
> On Fri, 2010-10-22 at 16:56 +0200, Joakim Tjernlund wrote:
> > Andr? Schwarz <andre.schwarz@matrix-vision.de> wrote on 2010/10/22
> > 16:30:49:
> > >
> > > Joakim,
> > >
> > >
> > > your commit d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 renders my MPC8377
> > > based board unbootable.
> > >
> > >
> > > Two weeks ago I got this after power on :
> > >
> > >
> > > U-Boot 2010.09-00486-gfda6278-dirty (Oct 22 2010 - 16:19:20) MPC83XX
> > >
> > > Reset Status:
> > >
> > > CPU:   e300c4, MPC8377, Rev: 2.1 at 533.333 MHz, CSB: 266.667 MHz
> > > Board: Matrix Vision MergerBox
> > > ....
> > >
> > >
> > >
> > > After rebasing my work to current master completely silences the serial
> > > line and the CPU doesn't come up. Bisection leads to your patch.
> > >
> > > reverting it makes the board work again.
> > >
> > > Any ideas ?
> >
> > Yes, the problem is else where. This code runs after relocation to RAM.
> > I had a similar problem and the reason was the patch:
> >  "powerpc: Remove warm reset entry point"
>
> hmm, ok.
> But what's the root cause ?

Not sure, I think my board still use 0x110 as boot entry

>
> >
> > Try sticking 4 nop's right after _start:
> > in start.S
> >
>
> ... and why should this work ?
> Has this something to do with trial and error ?

yes, see above.
>
> Can you shed some light on this ?

not much, can you? Did the extra nop's make any
difference?

 Jocke

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-23  9:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22 14:30 [U-Boot] [MPC83xx] broken patch "do not fixup NULL ptrs" ? André Schwarz
2010-10-22 14:56 ` Joakim Tjernlund
2010-10-22 19:25   ` André Schwarz
2010-10-23  9:17     ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox