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

2013-01-24 Thread Joakim Tjernlund
Mats Kärrman mats.karr...@tritech.se 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

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 mats.karr...@tritech.se, Cc: u-boot@lists.denx.de u-boot@lists.denx.de, Wolfgang Denk w...@denx.de Date: 2013/01/24 09:40 Subject: RE: [U-Boot] mpc512x: Trouble migrating from 2012.07

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

2013-01-24 Thread Joakim Tjernlund
:40 Subject: RE: [U-Boot] mpc512x: Trouble migrating from 2012.07 to 2013.01 Mats Kärrman mats.karr...@tritech.se 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

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

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

2013-01-24 Thread Joakim Tjernlund
Mats Kärrman mats.karr...@tritech.se 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

[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

[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

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

2013-01-23 Thread Wolfgang Denk
Dear Mats, In message ed3e0bcacd909541ba94a34c4a164d4c427b3...@post.tritech.se 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

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

2013-01-23 Thread Wolfgang Denk
Dear Mats Kärrman, In message ed3e0bcacd909541ba94a34c4a164d4c427b4...@post.tritech.se 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

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 works, it