[U-Boot] Problem with SDRAM on my board.

Hello
I have ported the uboot for my own board. But something is going wrong when uboot try to relocate itself to ram. But it is only sometimes its fail. Often it work but i then do a mtest in uboot it goes down.
I used the mpc837xerdb as a reference. When it fails it look likes it is when it try to cmp (from the start.s file) the copyed data to the ram.
Anyone had any idea ther maybe could help me a little bit?
/Lasse Skov

Hi Lasse,
I have ported the uboot for my own board. But something is going wrong when uboot try to relocate itself to ram. But it is only sometimes its fail. Often it work but i then do a mtest in uboot it goes down.
I used the mpc837xerdb as a reference. When it fails it look likes it is when it try to cmp (from the start.s file) the copyed data to the ram.
Anyone had any idea ther maybe could help me a little bit?
Well I'm perfectly in line with your observation that you have problems with your DRAM setup. So why not check out the DRAM initialization? Very likely you copied the initialization from the reference board but use different physical chips.
If you search the mailing list, you will find the same answer again and again: Take a good look at the datasheet of your DRAM, your DRAM controller and the initialization in U-Boot. Find discrepancies and fix them until your system works.
It is well known that this is a tedious job, so usually nobody volunteers to do this for free on the mailing list, but hey, maybe you are lucky?
Cheers Detlev

Hi Lasse Skov,
Are you 100% sure the timing setup of your board's SDRAM are okay? If you copied the setup from another board (with another SDRAM chip), it might be the case where you're not meeting the timing characteristics of the new SDRAM chip and therefore SDRAM will have problems when more transactions are demanded (for example, U-boot relocation, or mtest).
Please double check the timing spec of your SDRAM chip (or perhaps the whole configuration) and adjust U-boot accordingly to set them up.
Saludos!
Jesús Gutiérrez.
-----Original Message----- From: u-boot-bounces@lists.denx.de [mailto:u-boot-bounces@lists.denx.de] On Behalf Of Lasse Skov Sent: Lunes, 23 de Noviembre de 2009 05:14 a.m. To: u-boot@lists.denx.de Subject: [U-Boot] Problem with SDRAM on my board.
Hello
I have ported the uboot for my own board. But something is going wrong when uboot try to relocate itself to ram. But it is only sometimes its fail. Often it work but i then do a mtest in uboot it goes down.
I used the mpc837xerdb as a reference. When it fails it look likes it is when it try to cmp (from the start.s file) the copyed data to the ram.
Anyone had any idea ther maybe could help me a little bit?
/Lasse Skov
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Dear "Gutierrez Gomez Jesus-B16947",
please restrict the line length of your postings to some 70 characters or so. Thanks.
In message F433001A73130B4C92788BA2D371731D070C27CF@az33exm20.fsl.freescale.net you wrote:
Are you 100% sure the timing setup of your board's SDRAM are okay? If you c opied the setup from another board (with another SDRAM chip), it might be t he case where you're not meeting the timing characteristics of the new SDRA M chip and therefore SDRAM will have problems when more transactions are de manded (for example, U-boot relocation, or mtest).
Please double check the timing spec of your SDRAM chip (or perhaps the whol e configuration) and adjust U-boot accordingly to set them up.
And note that timing is just one thing, but strictly adhering to the required initialization sequence (including any delays, dummy reads or writes etc.) is at least as important, if not more.
Best regards,
Wolfgang Denk
participants (4)
-
Detlev Zundel
-
Gutierrez Gomez Jesus-B16947
-
Lasse Skov
-
Wolfgang Denk