Skip to content

add new memtest command

Alexander Aring barebox 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 10 repliesIn review
  2. v28 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- fix testing of address bus <-- this never worked before
- put mem_test function into common/memory_test.c
- fix some comment issues
- align quietly start and end address
- fix some newline issues

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6common: fix codestyle in ALIGN macrosinclude/common.h+2 -20 replies
2/6common: add ALIGN_DOWN macroinclude/common.h+1 -00 replies
3/6memory: add function address_in_sdram_regionscommon/memory.c include/memory.h+22 -00 replies
4/6memtest: remove memtest commandcommands/Kconfig commands/Makefile commands/memtest.c+0 -3610 replies
5/6common: add mem_test routinecommon/Kconfig common/Makefile common/memory_test.c +1 more+420 -06 replies
6/6commands: add new memtest commandcommands/Kconfig commands/Makefile commands/memtest.c+373 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/6] add new memtest command

The new memtest command supports to enable or disable caching during testing(only arm architecture) and skipping barebox regions for avoid a barebox killing, if you want to write on barebox allocated regions.

If you run memtest without a argument, memtest will run on all registered memory banks.

The new memtest command has these arguments:
-s #ADDRESS [for start address]
-e #ADDRESS [for end address]
-i #ITER [for numbers of iterations] -c [don't disable caching]
-b [do bus testing only]

v2:
- change stdout of memtest to make it more beautiful

v3:
- fix testing of address bus <-- this never worked before
- put mem_test function into common/memory_test.c
- fix some comment issues
- align quietly start and end address
- fix some newline issues

Alexander Aring (6):
common: fix codestyle in ALIGN macros
common: add ALIGN_DOWN macro
memory: add function address_in_sdram_regions
memtest: remove memtest command
common: add mem_test routine
commands: add new memtest command

 commands/Kconfig      |  17 +-
 commands/Makefile     |   2 +-
 commands/memtest.c    | 573 +++++++++++++++++++++++++-------------------------
 common/Kconfig        |   7 +
 common/Makefile       |   1 +
 common/memory.c       |  16 ++
 common/memory_test.c  | 399 +++++++++++++++++++++++++++++++++++
 include/common.h      |   5 +-
 include/memory.h      |   6 +
 include/memory_test.h |  13 ++
 10 files changed, 747 insertions(+), 292 deletions(-)
 create mode 100644 common/memory_test.c
 create mode 100644 include/memory_test.h
Signature · 7 lines
1.8.1.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox