Re: [U-Boot] code looping in_ram in start.S

2011-07-11 Thread Wolfgang Denk
Dear smitha.va...@wipro.com,

In message <07acdfb8eca8ef47863a613bc01bbb2203243...@hyd-mkd-mbx02.wipro.com> 
you wrote:
>
> I am trying to bring up u-boot1.1.3 on a custom mpc8247 board, having
> 32MB flash and two 32 M SDRAM .
> 
> See a problem after the relocation happens. The code gets relocated from
> Flash to RAM correctly. But when the control goes to in_ram it gets
> looped there 
> 
> And then gets reset. I have done all the SDRAM tests all are successful.
> So how to proceed for this issue

First thing you should to is update.  Version 1.1.3 is about 6 years
old, and for software this means it predates the dinosaurs.

Read: this old stuff is completely unsupported.


Second: read the FAQ; the problem you are running into is described
here: http://www.denx.de/wiki/view/DULG/UBootCrashAfterRelocation

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
A mouse is an elephant built by the Japanese.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] code looping in_ram in start.S

2011-07-11 Thread Marek Vasut
On Tuesday, July 12, 2011 07:42:56 AM smitha.va...@wipro.com wrote:
> Hi ,
> 
> 
> 
> I am trying to bring up u-boot1.1.3 on a custom mpc8247 board, having
> 32MB flash and two 32 M SDRAM .

Can you please try a newer version (git clone git://git.denx.de/u-boot.git)
> 
> See a problem after the relocation happens. The code gets relocated from
> Flash to RAM correctly. But when the control goes to in_ram it gets
> looped there
> 
> And then gets reset. I have done all the SDRAM tests all are successful.
> So how to proceed for this issue
> 
> 
> 
> Below is the SDRAM initialization sequence.
> 
> 
> 
> 
> 
> ; init SDRAM Init (PPC bus)
> 
> WM16  0xF0010184  0x1000;MPTPR
> 
> WM8   0xF001019C  0x18  ;PSRT
> 
> 
> 
> WM32  0xF001010c  0xFC002d00 ;OR1
> 
> WM32  0xF0010108  0x1841 ;BR1
> 
> 
> 
> WM32  0xF0010190  0xeb29a4a3   ;PSDMR: Precharge all banks
> 
> WM8   0x  0x00  ;Access SDRAM
> 
> WM32  0xF0010190  0xcB29a4a3;PSDMR: CBR Refresh
> 
> WM8   0x  0xFF  ;Access SDRAM
> 
> WM8   0x  0xFF  ;Access SDRAM
> 
> WM8   0x  0xFF  ;Access SDRAM
> 
> WM8   0x  0xFF  ;Access SDRAM
> 
> WM8   0x  0xFF  ;Access SDRAM
> 
> WM8   0x  0xFF  ;Access SDRAM
> 
> WM8   0x  0xFF  ;Access SDRAM
> 
> WM8   0x  0xFF  ;Access SDRAM
> 
> WM32  0xF0010190  0xdb29a4a3;PSDMR: Mode Set
> 
> WM8   0x  0x00  ;Access SDRAM
> 
> WM32  0xF0010190  0xc329a4a3;PSDMR: enable refresh, normal operation
> 
> 
> 
> Regards,
> 
> Smitha
> 
> 
> 
> 
> Please do not print this email unless it is absolutely necessary.
> 
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you
> are not the intended recipient, you should not disseminate, distribute or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments.
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
> 
> www.wipro.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] code looping in_ram in start.S

2011-07-11 Thread smitha.vanga
Hi ,



I am trying to bring up u-boot1.1.3 on a custom mpc8247 board, having
32MB flash and two 32 M SDRAM .

See a problem after the relocation happens. The code gets relocated from
Flash to RAM correctly. But when the control goes to in_ram it gets
looped there

And then gets reset. I have done all the SDRAM tests all are successful.
So how to proceed for this issue



Below is the SDRAM initialization sequence.





; init SDRAM Init (PPC bus)

WM16  0xF0010184  0x1000;MPTPR

WM8   0xF001019C  0x18  ;PSRT



WM32  0xF001010c  0xFC002d00 ;OR1

WM32  0xF0010108  0x1841 ;BR1



WM32  0xF0010190  0xeb29a4a3   ;PSDMR: Precharge all banks

WM8   0x  0x00  ;Access SDRAM

WM32  0xF0010190  0xcB29a4a3;PSDMR: CBR Refresh

WM8   0x  0xFF  ;Access SDRAM

WM8   0x  0xFF  ;Access SDRAM

WM8   0x  0xFF  ;Access SDRAM

WM8   0x  0xFF  ;Access SDRAM

WM8   0x  0xFF  ;Access SDRAM

WM8   0x  0xFF  ;Access SDRAM

WM8   0x  0xFF  ;Access SDRAM

WM8   0x  0xFF  ;Access SDRAM

WM32  0xF0010190  0xdb29a4a3;PSDMR: Mode Set

WM8   0x  0x00  ;Access SDRAM

WM32  0xF0010190  0xc329a4a3;PSDMR: enable refresh, normal operation



Regards,

Smitha




Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot