Add the "mfill" and "mcheck" memory commands.
PATCH 1/1 Add the "mfill" and "mcheck" memory commands.
Quoted 10 lines
De : "Wolfgang Denk"
Dear Benoit Monin,
Quoted 5 lines · In message <28907262.11403.1236090567026.JavaMail.www@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.
Quoted 7 lines
Quoted 2 lines
The configuration option is
CONFIG_MFILLand 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 ?
Quoted 4 lines
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.
PATCH 1/1 Add the "mfill" and "mcheck" memory commands.
Dear Benoit Monin,
Quoted 9 lines · In message <6148322.23690.1236356233840.JavaMail.www@wwinf8204> you wrote:
Quoted 8 lines
Quoted 3 lines
The configuration option is
CONFIG_MFILLand 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
Indeed.
Quoted 7 lines
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.
You could use the existing memory tests to do the same.
Quoted 5 lines
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 ?
I think it duplicates existing functionality.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Men don't talk peace unless they're ready to back it up with war. -- Col. Green, "The Savage Curtain", stardate 5906.4