Re: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-10 Thread prakash bedge
Hi, I got the root cause. It was the DDR related issue while reading the DMC registers. Now the problem is solved. I am not not getting exception error after enabling MSR_EE. I am moving to use the latest u-boot code (2010.03) believing that there might be fixup for timing issue I am facing when

Re: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-07 Thread prakash bedge
Hi Stefan I checked the mcsr register and it shows 0x. while debugging the u-boot I observed that the u-boot hangs when it call getenv("loadaddr") function. if ((s = getenv ("loadaddr")) != NULL) { } Is it because of loadaddr parameter passed to getenv? Do I really need to check t

Re: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-07 Thread Wolfgang Denk
Dear prakash bedge, In message you wrote: > > while debugging the u-boot I observed that the u-boot hangs when it call > getenv("loadaddr") function. > if ((s = getenv ("loadaddr")) != NULL) { } > > Is it because of loadaddr parameter passed to getenv? No. All this code is running on zil

Re: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-06 Thread prakash bedge
Hi Stefan, But, my DDR3 initialization seems to be completed and I am not getting any error in DDR3 initialization. Another issue I am facing that if I add 2 pritinf functions before or after DDR initialization the DDR3 initialization code hangs in between and if I remove the printf functions, ev

Re: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-05 Thread Stefan Roese
On Wednesday 05 May 2010 13:48:05 prakash bedge wrote: > I commented he MSR_EE in interrupt_init function in cpu/ppc4xx/interrupts.c > to run the u-boot and to get u-boot prompt. > > when I executed "sleep 3 " command it doesn't reurns to prompt. It seems > that it hangs in while loop or hangs som

Re: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-05 Thread prakash bedge
Hi Stefan, >> No. What I meant, was that you should try the "sleep" command on the U-Boot >> prompt, to check, if the timer is working or not. Check if a "sleep 3" really >> takes 3 seconds to return to the prompt. I commented he MSR_EE in interrupt_init function in cpu/ppc4xx/interrupts.c to run

Re: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-04 Thread Stefan Roese
Hi Prakash, On Tuesday 04 May 2010 17:03:40 prakash bedge wrote: > Shall I need to add sleep() command in the interrupt_init or before it? No. What I meant, was that you should try the "sleep" command on the U-Boot prompt, to check, if the timer is working or not. Check if a "sleep 3" really ta

Re: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-04 Thread prakash bedge
Hi Stefan, Thanks. Shall I need to add sleep() command in the interrupt_init or before it? I am using Samsung M391B2873EH1-CH9 series 1 GB DDR3 and Denali controller is being used for driving DDR3. Regards, Prakash On Tue, May 4, 2010 at 8:04 PM, Stefan Roese wrote: > Hi Prakash, > > On Tues

Re: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-04 Thread Stefan Roese
Hi Prakash, On Tuesday 04 May 2010 16:21:19 prakash bedge wrote: > I am facing an error while porting u-boot for my platform because if > exception error. > > After running the u-boot to detect the DDR and flash u-boot hangs after > showing the serial console output. In debugger I am seeing PC at

[U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.

2010-05-04 Thread prakash bedge
Hi All, I am facing an error while porting u-boot for my platform because if exception error. After running the u-boot to detect the DDR and flash u-boot hangs after showing the serial console output. In debugger I am seeing PC at 0x0400 address which the exception handler vector address. Bu