From d18c0dd7b119d44d6f69479f962b184cecc27bf2 Mon Sep 17 00:00:00 2001 From: John Linn Date: Tue, 17 Jan 2012 14:12:50 -0800 Subject: [PATCH] Xilinx: ARM: adding jtag boot mode To make it easier for developers in jtag mode, make it automatically TFTP a kernel into memory and start it. --- board/xilinx/dfe/board.c | 4 ++++ include/configs/xpele.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/board/xilinx/dfe/board.c b/board/xilinx/dfe/board.c index abeb4d09ab9..8710636e117 100644 --- a/board/xilinx/dfe/board.c +++ b/board/xilinx/dfe/board.c @@ -19,6 +19,7 @@ #define NOR_FLASH_MODE (0x00000002) /**< NOR */ #define NAND_FLASH_MODE (0x00000004) /**< NAND */ #define SD_MODE (0x00000005) /**< Secure Digital card */ +#define JTAG_MODE (0x00000000) /**< JTAG */ DECLARE_GLOBAL_DATA_PTR; @@ -619,6 +620,9 @@ int board_late_init (void) case SD_MODE: setenv("modeboot", "run sdboot"); break; + case JTAG_MODE: + setenv("modeboot", "run jtagboot"); + break; default: setenv("modeboot", ""); break; diff --git a/include/configs/xpele.h b/include/configs/xpele.h index 5f74733f410..85ced1d49ba 100644 --- a/include/configs/xpele.h +++ b/include/configs/xpele.h @@ -65,8 +65,14 @@ nand read 0x1000000 0x700000 0x20000; \ echo Copying ramdisk...; \ nand read 0x800000 0x900000 ${nand_ramdisk_size}; \ + go 0x8000\0"\ + "jtagboot=echo TFTPing Linux to RAM...; \ + tftp 0x8000 zImage; \ + tftp 0x1000000 devicetree.dtb; \ + tftp 0x800000 ramdisk8M.image.gz; \ go 0x8000\0" + #undef CONFIG_PELE_XIL_LQSPI /* default boot is according to the bootmode switch settings */ -- 2.47.3