On Sat, Dec 29, 2012 at 11:08:11AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx> > --- > arch/arm/mach-at91/Kconfig | 5 ++ > arch/arm/mach-at91/Makefile | 1 + > arch/arm/mach-at91/boot_test_cmd.c | 97 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 103 insertions(+) > create mode 100644 arch/arm/mach-at91/boot_test_cmd.c > > diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig > index fcba7fb..264b975 100644 > --- a/arch/arm/mach-at91/Kconfig > +++ b/arch/arm/mach-at91/Kconfig > @@ -483,4 +483,9 @@ config CMD_AT91MUX > bool "at91mux dump command" > default y > > +config CONFIG_CMD_AT91_BOOT_TEST > + bool "at91_boot_test" > + help > + allow to upload a boot binary to sram and execute it You should mention here that this is for debugging/testing the bootstrap support. > + while ((opt = getopt(argc, argv, "j:s:")) > 0) { > + switch (opt) { > + case 'j': > + jump = simple_strtoul(optarg, NULL, 0); > + break; > + case 's': > + sram = optarg; > + break; default: return COMMAND_ERROR_USAGE; Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox