Re: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-24 Thread Joakim Tjernlund
Mats Kärrman wrote on 2013/01/24 14:31:02: > > Joakim Tjernlund/Transmode wrote on 2013/01/24 09:21: > > Looking at the watchdog impl. I see it can be normal C code. This makes > > wait_ticks unsafe > > (even before my patch) as wait_ticks relies on r6 and r7 (and with my > > patch r0 too) > > t

Re: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-24 Thread Mats Kärrman
Joakim Tjernlund/Transmode wrote on 2013/01/24 09:21: > Looking at the watchdog impl. I see it can be normal C code. This makes > wait_ticks unsafe > (even before my patch) as wait_ticks relies on r6 and r7 (and with my > patch r0 too) > to be unmodified. Yes! I can see in the assembly from my wat

Re: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-24 Thread Mats Kärrman
Joakim Tjernlund/Transmode wrote on 2013/01/24 09:58:35: > > > > > > Me neither, there is not a lot details. I do recall having other > problems with > > > wait_ticks from time to time, sometimes the TB counter(mtfbu, mftb in > get_ticks) > > > would not increment so one would just loop forever in

Re: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-24 Thread Joakim Tjernlund
/24 09:40 > > Subject: RE: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01 > > > > Mats Kärrman wrote on 2013/01/23 22:58:56: > > > > > > Dear Wolfgang Denk, > > > > > > >> Found that it was looping endlessly in arch/powerp

Re: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-24 Thread Joakim Tjernlund
Joakim Tjernlund/Transmode wrote on 2013/01/24 09:40:45: > From: Joakim Tjernlund/Transmode > To: Mats Kärrman , > Cc: "u-boot@lists.denx.de" , Wolfgang Denk > Date: 2013/01/24 09:40 > Subject: RE: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01 > >

Re: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-24 Thread Joakim Tjernlund
Mats Kärrman wrote on 2013/01/23 22:58:56: > > Dear Wolfgang Denk, > > >> Found that it was looping endlessly in arch/powerpc/lib/ticks.S::wait_ticks > (). Reverting commit "ppc: Create a stack frame for wait_ticks()" made > everything work again. > > > > This makes no sense to me - especial

Re: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-23 Thread Mats Kärrman
Dear Wolfgang Denk, >> Found that it was looping endlessly in >> arch/powerpc/lib/ticks.S::wait_ticks(). Reverting commit "ppc: Create a >> stack frame for wait_ticks()" made everything work again. > > This makes no sense to me - especially as it works on all other > systems. If you say it wo

Re: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-23 Thread Wolfgang Denk
Dear Mats Kärrman, In message you wrote: > > > Found that it was looping endlessly in > arch/powerpc/lib/ticks.S::wait_ticks(). Reverting commit "ppc: Create a stack > frame for wait_ticks()" made everything work again. This makes no sense to me - especially as it works on all other systems.

Re: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-23 Thread Wolfgang Denk
Dear Mats, In message you wrote: > > Question: To help me decide where to look I would like to know if anyone has > built the mpc5121ads board configuration using U-Boot 2013.01 and actually > tested that it is still working? Yes, v2012.01 is working on the MPC5121ADS board: U-Boot 2013.01 (

[U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-23 Thread Mats Kärrman
> Now when I'm trying to migrate to U-Boot 2013.01 I face problems with a > sudden hang. I see console output until the "Flash:" from > arch/powerpc/lib/board.c::board_init_r() but nothing more until the board > reboots on a watchdog reset after 30s. Found that it was looping endlessly in arch/

[U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01

2013-01-23 Thread Mats Kärrman
Hi! I have a system using a MPC5125 processor working fine using U-Boot 2012.07. I have based my board adaption etc on the mpc5121ads board and also patched the necessary parts of the serial port driver. Now when I'm trying to migrate to U-Boot 2013.01 I face problems with a sudden hang. I see