[U-Boot] [PATCH] arm64: zynqmp: Add new jtag distro boot command
Michal Simek
monstr at monstr.eu
Tue Oct 8 07:38:20 UTC 2019
st 11. 9. 2019 v 10:08 odesÃlatel Michal Simek <michal.simek at xilinx.com> napsal:
>
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu at xilinx.com>
>
> This patch adds new jtag distro boot command to look for bootscript file in
> DDR and execute it first incase of jtag bootmode.
>
> Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> board/xilinx/zynqmp/zynqmp.c | 2 +-
> include/configs/xilinx_zynqmp.h | 9 +++++++++
> 2 files changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
> index 0c331e332230..f36d49fded99 100644
> --- a/board/xilinx/zynqmp/zynqmp.c
> +++ b/board/xilinx/zynqmp/zynqmp.c
> @@ -564,7 +564,7 @@ int board_late_init(void)
> break;
> case JTAG_MODE:
> puts("JTAG_MODE\n");
> - mode = "pxe dhcp";
> + mode = "jtag pxe dhcp";
> env_set("modeboot", "jtagboot");
> break;
> case QSPI_MODE_24BIT:
> diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h
> index 791719147ce2..070b210ffcce 100644
> --- a/include/configs/xilinx_zynqmp.h
> +++ b/include/configs/xilinx_zynqmp.h
> @@ -175,7 +175,16 @@
> #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
> #devtypel #instance " "
>
> +#define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
> +
> +#define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
> + "bootcmd_jtag=source $scriptaddr; echo SCRIPT FAILED: continuing...;\0"
> +
> +#define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
> + "jtag "
> +
> #define BOOT_TARGET_DEVICES(func) \
> + BOOT_TARGET_DEVICES_JTAG(func) \
> BOOT_TARGET_DEVICES_MMC(func) \
> BOOT_TARGET_DEVICES_QSPI(func) \
> BOOT_TARGET_DEVICES_NAND(func) \
> --
> 2.17.1
>
Applied.
M
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
More information about the U-Boot
mailing list