To make it easier for developers in jtag mode, make it
automatically TFTP a kernel into memory and start it.
#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;
case SD_MODE:
setenv("modeboot", "run sdboot");
break;
+ case JTAG_MODE:
+ setenv("modeboot", "run jtagboot");
+ break;
default:
setenv("modeboot", "");
break;
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 */