[U-Boot] [PATCH] Add the "mfill" and "mcheck" memory commands.

Benoit Monin benoit.monin at laposte.net
Fri Mar 6 17:17:13 CET 2009


> De : "Wolfgang Denk"
> 
> Dear Benoit Monin,
> 
> In message <28907262.11403.1236090567026.JavaMail.www at wwinf8303> you wrote:
> > 
> > The mfill command writes the value of a counter to a memory area.
> > The mcheck command verifies the memory area against the counter value.
> > Those commands are useful for debugging memory/framebuffer controller.
> > 
> > The configuration option is CONFIG_MFILL and this only takes effect if
> > the memory commands are activated globally (CONFIG_CMD_MEM).
> 
> What exactly is the purpose of this patch? Looks like an extremely
> simple memory test to me. Don't we have already a rich selection of
> better ones available yet?
> 
I should have detailed more the intent of those commands. We have here
a video controller embedded in an fpga with its own video ram. We use
mfill to fill the video ram as fast as possible with variable data for
each vram address. And we use mcheck to verify (as fast as possible)
the content of the vram.

So this is not intended to test the main memory but it is a development
and debug tool for peripheral containing memory.

I've sent a patch because they are useful to us and generic enough,
and might be handy for debugging accesses to memory mapped behind
programmable logic.

But maybe this debug tool is beyond the scope of U-Boot ?

> Best regards,
> 
> Wolfgang Denk
> 
Sincerely,
Benoît.

--


 Créez votre adresse électronique prenom.nom at laposte.net 
 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.


More information about the U-Boot mailing list