Why the contents in SDRAM stay?
Hi all,
I am playing with the u-boot that is just installed on my customed board with PPC405GP (based on walnut). The SDRAM I am using is SAMSUNG K4S561632D-TC75000.
One interesting thing I found is, I used mm to change the first 4 bytes at address 0, which is suppose to belong to SDRAM, to 0xdeaddead. Then I turned off the power. After I turned on the power, I used md to check the memory. The content at address 0 was still 0xdeaddead. I changed the value several times and found once I modified the SDRAM, the content stays regardless the power is off. This is very weird. Should the content be lost once the power is off? Can anybody explain how it happened?
BTW, after I turn off the board I waited for long enough (1-2 minutes) to turn it on.
Thanks,
Frank
_________________________________________________________________
MSN Life Events gives you the tips and tools to handle the turning points in your life. http://lifeevents.msn.com
Quoted 5 lines · In message <[email protected]> you wrote:
One interesting thing I found is, I used mm to change the first 4 bytes at address 0, which is suppose to belong to SDRAM, to
0xdeaddead. Then I turned off the power. After I turned on the power, I used md to check the memory. The content at address 0 was still0xdeaddead. I changed the value several
That's not interesting, it's normal with good RAM chips.
Quoted 2 lines
BTW, after I turn off the board I waited for long enough (1-2 minutes) to turn it on.
That's not long enough. Wait a day :-)
Or check memory by running a checksum (crc32 command) over a largaer area - say 1 MB, and then try again. You will see that while most cells keept their content, some don't.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de I paid too much for it, but its worth it.