Add the "mfill" and "mcheck" memory commands.
PATCH 1/1 Add the "mfill" and "mcheck" memory commands.
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).
--- README | 17 +++++++- common/cmd_mem.c | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 143 insertions(+), 1 deletions(-)
README +16 -1
@@ -627,7 +627,7 @@ The following options need to be configured: CONFIG_CMD_LOADB loadb CONFIG_CMD_LOADS loads CONFIG_CMD_MEMORY md, mm, nm, mw, cp, cmp, crc, base, - loop, loopw, mtest + loop, loopw, mtest, mfill, mcheck CONFIG_CMD_MISC Misc functions like sleep etc CONFIG_CMD_MMC * MMC memory mapped support CONFIG_CMD_MII * MII utility commands
@@ -2678,6 +2678,21 @@ Low Level (hardware related) configuration options: This only takes effect if the memory commands are activated globally (CONFIG_CMD_MEM). +- CONFIG_MFILL + Add the "mfill" and "mcheck" memory commands. "mfill" writes + a memory area with the value of a counter. "mcheck" checks + a memory area against the value of a counter and can be run + after mfill. + + (mfill/mcheck)[.b, .w, .l] address count [init] + [.b, .w, .l] : Access size (default to l). + address : Address in hexadecimal. + count : Number of elements to write in hex. + [init] : Initial value of the counter (default to 0). + + This only takes effect if the memory commands are activated + globally (CONFIG_CMD_MEM). + - CONFIG_SKIP_LOWLEVEL_INIT - CONFIG_SKIP_RELOCATE_UBOOT
common/cmd_mem.c +127 -0
139 lines not on this page · raw message
Signature · 2 lines
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 7 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.
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?
Best regards,
Wolfgang Denk
Signature · 6 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 "I can call spirits from the vasty deep." "Why so can I, or so can any man; but will they come when you do call for them?" - Shakespeare, 1 King Henry IV, Act III, Scene I.