RAM test - How to

Wolfgang Denk wd at denx.de
Wed Apr 20 17:40:03 EST 2005


In message <D8595042F3765A4285B848A78A2C2ED102774F at bsdmsg002.corp.satyam.ad> you wrote:
> 
> 	I am using a SDRAM having a port size 64 and size 32MB, and the
> burst length is 4. I want to know how i can test my RAM for burst mode
> operation. I have read in a couple of places that there is no sure RAM
> test but there must be some reasonable test which can be performed to
> atleast be sure that the RAM functions fine under burst mode.

You can probably implement a memory test like this one:

1)  Map a region of physical RAM into two virtual regions:
    one cached and the the other one uncached.
2)  Fill the cached region with a pattern, and flush the cache
2a) Check the uncached region to match the pattern
2b) Check the cached region to match the pattern
3)  Fill the uncached region with a pattern
3a) Check the cached region to match the pattern
3b) Check the uncached region to match the pattern
4)  Change the patterns and go to step 2.

You probably want to do this in your boot loader, though.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A Freudian slip is when you say one thing but mean your mother.



More information about the Linuxppc-embedded mailing list