Skip to content
Snippets Groups Projects
Commit 3d865acb authored by Siva Durga Prasad Paladugu's avatar Siva Durga Prasad Paladugu Committed by Michal Simek
Browse files

arm64: versal: Add new jtag distro boot command


This patch adds new jtag distro boot command to look for bootscript file
in DDR and execute it first incase of jtag bootmode.
This patch also updates scriptaddr to 512MB as there is high of script
corruption incase of bigger kernel image.

Signed-off-by: default avatarSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 37d53180
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,7 @@ int board_late_init(void) ...@@ -108,7 +108,7 @@ int board_late_init(void)
switch (bootmode) { switch (bootmode) {
case JTAG_MODE: case JTAG_MODE:
puts("JTAG_MODE\n"); puts("JTAG_MODE\n");
mode = "pxe dhcp"; mode = "jtag pxe dhcp";
break; break;
case QSPI_MODE_24BIT: case QSPI_MODE_24BIT:
puts("QSPI_MODE_24\n"); puts("QSPI_MODE_24\n");
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
"pxefile_addr_r=0x10000000\0" \ "pxefile_addr_r=0x10000000\0" \
"kernel_addr_r=0x18000000\0" \ "kernel_addr_r=0x18000000\0" \
"kernel_size_r=0x10000000\0" \ "kernel_size_r=0x10000000\0" \
"scriptaddr=0x02000000\0" \ "scriptaddr=0x20000000\0" \
"ramdisk_addr_r=0x02100000\0" \ "ramdisk_addr_r=0x02100000\0" \
"script_offset_f=0x3f80000\0" \ "script_offset_f=0x3f80000\0" \
"script_size_f=0x80000\0" "script_size_f=0x80000\0"
...@@ -115,7 +115,16 @@ ...@@ -115,7 +115,16 @@
#define BOOTENV_DEV_NAME_XSPI(devtypeu, devtypel, instance) \ #define BOOTENV_DEV_NAME_XSPI(devtypeu, devtypel, instance) \
"xspi " "xspi "
#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) \ #define BOOT_TARGET_DEVICES(func) \
BOOT_TARGET_DEVICES_JTAG(func) \
BOOT_TARGET_DEVICES_MMC(func) \ BOOT_TARGET_DEVICES_MMC(func) \
BOOT_TARGET_DEVICES_XSPI(func) \ BOOT_TARGET_DEVICES_XSPI(func) \
func(PXE, pxe, na) \ func(PXE, pxe, na) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment