Re: [U-Boot] mpc8313 SPL, relocate_code, large page NAND

2010-04-20 Thread Scott Wood
On Tue, Apr 20, 2010 at 07:02:53PM +0200, Peter Vollmer wrote: > I worked through that thread, but as it seems I have no unguarded memory > range left. Each BAT entry has BATL_GUARDEDSTORAGE set. > By using the BATL_CACHEINHIBIT for the RAM bock I suppose I have the > dcache disabled, right? H

Re: [U-Boot] mpc8313 SPL, relocate_code, large page NAND

2010-04-20 Thread Peter Vollmer
Thanks for all the valuable input. So this is what I have checked so far. Until now the behaviour is still exactly as described in the first post. On Tue, 20 Apr 2010 15:30:56 +0200, Joakim Tjernlund wrote: > Dunno, try running with any i/d cache for the DRAM. If that works > it is very likel

Re: [U-Boot] mpc8313 SPL, relocate_code, large page NAND

2010-04-20 Thread Joakim Tjernlund
"Peter Vollmer" wrote on 2010/04/20 14:12:41: > > On Tue, 20 Apr 2010 11:57:09 +0200, Joakim Tjernlund > wrote: > > Probably a BDI2000 issue. If memory serves right BDI2000 flushes the > > cache when it hits a BP. > > > > Try this addin this to your BDI .cfg file: > > TSZ40xe600 0xe6000

Re: [U-Boot] mpc8313 SPL, relocate_code, large page NAND

2010-04-20 Thread Norbert van Bolhuis
It sure looks like an mpc8313 problem I once looked into for quite some time. The solution was: http://lists.denx.de/pipermail/u-boot/2009-March/049175.html It could also be your DDR RAM not properly functioning. You can let u-boot test it with the POST MEM test (which happens before relocation

Re: [U-Boot] mpc8313 SPL, relocate_code, large page NAND

2010-04-20 Thread Peter Vollmer
On Tue, 20 Apr 2010 11:57:09 +0200, Joakim Tjernlund wrote: > Probably a BDI2000 issue. If memory serves right BDI2000 flushes the > cache when it hits a BP. > > Try this addin this to your BDI .cfg file: > TSZ40xe600 0xe60001100 ; init stack space for cache > ; needs a 'sap 0' in BD

Re: [U-Boot] mpc8313 SPL, relocate_code, large page NAND

2010-04-20 Thread Joakim Tjernlund
> > On Tue, 20 Apr 2010 10:36:08 +0200, Peter Vollmer > wrote: > > > > I then inserted 8 pairs of lwzu/stwu inside the loop to see when exactly > > the problem occurs: > > > > 1: lwzur0,4(r8) > > stwur0,4(r7) > > lwzur0,4(r8) > > stwur0,4(r7) > > ... > > lwzu

Re: [U-Boot] mpc8313 SPL, relocate_code, large page NAND

2010-04-20 Thread Peter Vollmer
On Tue, 20 Apr 2010 10:36:08 +0200, Peter Vollmer wrote: > I then inserted 8 pairs of lwzu/stwu inside the loop to see when exactly > the problem occurs: > > 1: lwzur0,4(r8) > stwur0,4(r7) > lwzur0,4(r8) > stwur0,4(r7) > ... > lwzur0,4(r8) > stwu

[U-Boot] mpc8313 SPL, relocate_code, large page NAND

2010-04-20 Thread Peter Vollmer
Hi all, I'm currently seeing a weird heisen-bug kind of problem on a mpc8313-based board with large page NAND flash. The problem happens in u-boot-spl in relocate_code. When I set a breakpoint after the first cycle of ...cpu/mpc83xx/start.S relocate_code: 1: lwzur0,4(r8) stwur0,4