Re: Memory Tests in U-Boot

Randy MacLeod

On 11/19/19 7:28 AM, devendra.devadiga@... wrote:
In U-Boot I found some generic memory tests commands like mtest and post tests. But I need complete DDR4 memory test with below algorithms:
* Checkerboard Test
* March C- Test
* Neighborhood Pattern Sensitive Fault
Can I get any reference code for these algorithms in U-Boot ?
Implementation for these algorithms available in any of U-Boot version ?
I don't know if any of the (too many) versions of u-boot have that
feature. If you are willing to test from userspace, there is memtester:

I don't think it has all of the tests you asked for but
it would be good if you could take a look and report back here
for those interested.

Here's a test run that a web search returned:

Also, the stress-ng has some memory tests including one that tests
neighbour sensitivity:

man stress-ng:


galloping pattern zeros. This sets all bits to 0 and flips just 1
in 4096 bits to 1. It then checks to see if the 1s are pulled down
to 0 by their neighbours or of the neighbours have been pulled up
to 1.

Good luck and please let us know what you find,


Thanks and Regards,

# Randy MacLeod
# Wind River Linux

Join { to automatically receive all group messages.