]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: adding jtag boot mode
authorJohn Linn <john.linn@xilinx.com>
Tue, 17 Jan 2012 22:12:50 +0000 (14:12 -0800)
committerJohn Linn <john.linn@xilinx.com>
Tue, 17 Jan 2012 22:12:50 +0000 (14:12 -0800)
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
include/configs/xpele.h

index abeb4d09ab97429d9e0f2bd81d51b46cb94ad33c..8710636e117251276dbdddfec163ca07784613a4 100644 (file)
@@ -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;
index 5f74733f410aaf8bb8a2c674eabb21a8191583da..85ced1d49bab0bc4683a1e7163b887996e684cfd 100644 (file)
                            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 */