From c12ca9afb8ef5bd2b30263edc0baba2cf5aec814 Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Mon, 25 Jan 2016 16:13:03 +0100 Subject: [PATCH] add paramters for mtest command and run mtest before booting Signed-off-by: H. Nikolaus Schaller --- include/configs/ti_omap5_common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index 330208884fa..a9c30b00fdd 100644 --- a/include/configs/ti_omap5_common.h +++ b/include/configs/ti_omap5_common.h @@ -114,11 +114,19 @@ "if test $fdtfile = undefined; then " \ "echo WARNING: Could not determine device tree to use; fi; \0" \ "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile};\0" \ + "test=setenv bootpart 0:1; setenv bootdir /; setenv bootfile uImage; setenv size 450000; while true; do run loadimage; crc32 ${loadaddr} ${size}; done\0" \ + "test2=setenv size 450000; while true; do crc32 ${loadaddr} ${size}; done\0" \ DFUARGS \ NETARGS \ + +#define CONFIG_SYS_MEMTEST_START 0x82000000 /* memtest works on */ +#define CONFIG_SYS_MEMTEST_END 0x84000000 +#define CONFIG_SYS_ALT_MEMTEST + #define CONFIG_BOOTCOMMAND \ "echo Letux OMAP5 bootcmd;" \ + "mtest; 82000000 82050000; setenv size 450000; crc32 ${loadaddr} ${size};" \ "if test ${dofastboot} -eq 1; then " \ "echo Boot fastboot requested, resetting dofastboot ...;" \ "setenv dofastboot 0; saveenv;" \ -- 2.39.5