[PATCH v2 0/8] add new memtest command

Alexander Aring alex.aring at gmail.com
Tue Jan 15 08:48:42 EST 2013


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:
	- remove adding whitespaces in linkerscript file
		and change position in of '_sdata'
		in ppc lds files.
	- remove -1 calculation in linkerscript files
		which is wrong.
	- split remap_range patch into three other patches:
		- mmu: add getters for pte cache flags
		- arm-mmu: move PAGE_ALIGN macro to common.h
		- common: add PAGE_ALIGN_DOWN macro
	- change stdout of memtest to make it more beautiful

Alexander Aring (8):
  remap_range: make function 'remap_range' global
  mmu: add getters for pte cache flags
  arm-mmu: move PAGE_ALIGN macro to common.h
  common: add PAGE_ALIGN_DOWN macro
  memory: add function address_in_sdram_regions
  barebox-data: add barebox-data sections
  memtest: remove memtest command
  memtest: add rewritten memtest command

 arch/arm/cpu/mmu.c                               |  18 +-
 arch/arm/include/asm/mmu.h                       |  17 +
 arch/arm/lib/barebox.lds.S                       |   2 +
 arch/blackfin/boards/ipe337/barebox.lds.S        |   2 +
 arch/blackfin/include/asm/mmu.h                  |  19 +
 arch/mips/include/asm/mmu.h                      |  19 +
 arch/mips/lib/barebox.lds.S                      |   2 +
 arch/nios2/cpu/barebox.lds.S                     |   1 +
 arch/nios2/include/asm/mmu.h                     |  19 +
 arch/openrisc/include/asm/mmu.h                  |  19 +
 arch/ppc/boards/freescale-p2020rdb/barebox.lds.S |   1 +
 arch/ppc/boards/pcm030/barebox.lds.S             |   1 +
 arch/ppc/include/asm/mmu.h                       |  15 +
 arch/sandbox/include/asm/mmu.h                   |  19 +
 arch/x86/include/asm/mmu.h                       |  19 +
 arch/x86/lib/barebox.lds.S                       |   2 +
 commands/Kconfig                                 |  16 +-
 commands/Makefile                                |   2 +-
 commands/memtest.c                               | 897 ++++++++++++++++-------
 common/memory.c                                  |  20 +
 include/asm-generic/sections.h                   |   1 +
 include/common.h                                 |   2 +
 include/memory.h                                 |   6 +
 23 files changed, 832 insertions(+), 287 deletions(-)
 create mode 100644 arch/blackfin/include/asm/mmu.h
 create mode 100644 arch/mips/include/asm/mmu.h
 create mode 100644 arch/nios2/include/asm/mmu.h
 create mode 100644 arch/openrisc/include/asm/mmu.h
 create mode 100644 arch/sandbox/include/asm/mmu.h
 create mode 100644 arch/x86/include/asm/mmu.h

-- 
1.8.1




More information about the barebox mailing list