[U-Boot] Special memory test Question

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Fri Oct 10 13:43:29 CEST 2008


Haavard Skinnemoen <haavard.skinnemoen at atmel.com> wrote:
> to start at physical address zero and scribble over the entire physical
> address range of the processor until it eventually tries to access an
> invalid physical address and gets a bus error exception.

Actually, that's wrong. It won't scribble over anything since it only
does reads. But it will access an invalid address and get a bus error
exception eventually.

> Nope, it's a user error. Try running this command instead:
> 
> loop.b 10400000 4
> 
> It's been running on my board for several minutes without crashing.

Btw, that command won't actually test the SDRAM since do_mem_loop()
accesses cacheable memory. The first access will load the data into the
dcache, and subsequent accesses will simply read it from the dcache and
not cause any memory accesses.

What is this command supposed to test anyway? It's highly unlikely that
it will find any SDRAM problems by simply reading an address without
checking the result...

Haavard


More information about the U-Boot mailing list