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

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 0x00001841 ;BR1
WM32 0xF0010190 0xeb29a4a3 ;PSDMR: Precharge all banks
WM8 0x00000000 0x00 ;Access SDRAM
WM32 0xF0010190 0xcB29a4a3 ;PSDMR: CBR Refresh
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM32 0xF0010190 0xdb29a4a3 ;PSDMR: Mode Set
WM8 0x00000000 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

On Tuesday, July 12, 2011 07:42:56 AM smitha.vanga@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 0x00001841 ;BR1
WM32 0xF0010190 0xeb29a4a3 ;PSDMR: Precharge all banks
WM8 0x00000000 0x00 ;Access SDRAM
WM32 0xF0010190 0xcB29a4a3 ;PSDMR: CBR Refresh
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM8 0x00000000 0xFF ;Access SDRAM
WM32 0xF0010190 0xdb29a4a3 ;PSDMR: Mode Set
WM8 0x00000000 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

Dear smitha.vanga@wipro.com,
In message 07ACDFB8ECA8EF47863A613BC01BBB2203243490@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
participants (3)
-
Marek Vasut
-
smitha.vanga@wipro.com
-
Wolfgang Denk