mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-21 09:28:55 +09:00
xilinx: Make Xilinx custom distro boot commands more verbose
Extend description of Xilinx custom boot commands to make clear what runs and what failed. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
7a3e239e90
commit
19d1304505
@ -109,7 +109,8 @@
|
|||||||
#define BOOTENV_DEV_XSPI(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_XSPI(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_xspi0=sf probe 0 0 0 && " \
|
"bootcmd_xspi0=sf probe 0 0 0 && " \
|
||||||
"sf read $scriptaddr $script_offset_f $script_size_f && " \
|
"sf read $scriptaddr $script_offset_f $script_size_f && " \
|
||||||
"source ${scriptaddr}; echo SCRIPT FAILED: continuing...;\0"
|
"echo XSPI: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; echo XSPI: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_XSPI(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_XSPI(devtypeu, devtypel, instance) \
|
||||||
"xspi "
|
"xspi "
|
||||||
@ -117,7 +118,8 @@
|
|||||||
#define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
|
#define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
|
||||||
|
|
||||||
#define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_jtag=source $scriptaddr; echo SCRIPT FAILED: continuing...;\0"
|
"bootcmd_jtag=echo JTAG: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; echo JTAG: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
|
||||||
"jtag "
|
"jtag "
|
||||||
@ -126,8 +128,10 @@
|
|||||||
|
|
||||||
#define BOOTENV_DEV_DFU_USB(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_DFU_USB(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_dfu_usb=setenv dfu_alt_info boot.scr ram $scriptaddr " \
|
"bootcmd_dfu_usb=setenv dfu_alt_info boot.scr ram $scriptaddr " \
|
||||||
"$script_size_f; dfu 0 ram 0 && source $scriptaddr; " \
|
"$script_size_f; dfu 0 ram 0 && " \
|
||||||
"echo SCRIPT FAILED: continuing...;\0"
|
"echo DFU: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; " \
|
||||||
|
"echo DFU: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_DFU_USB(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_DFU_USB(devtypeu, devtypel, instance) \
|
||||||
"dfu_usb "
|
"dfu_usb "
|
||||||
|
@ -160,7 +160,8 @@
|
|||||||
#define BOOTENV_DEV_QSPI(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_QSPI(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_" #devtypel #instance "=sf probe " #instance " 0 0 && " \
|
"bootcmd_" #devtypel #instance "=sf probe " #instance " 0 0 && " \
|
||||||
"sf read $scriptaddr $script_offset_f $script_size_f && " \
|
"sf read $scriptaddr $script_offset_f $script_size_f && " \
|
||||||
"source ${scriptaddr}; echo SCRIPT FAILED: continuing...;\0"
|
"echo QSPI: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; echo QSPI: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_QSPI(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_QSPI(devtypeu, devtypel, instance) \
|
||||||
#devtypel #instance " "
|
#devtypel #instance " "
|
||||||
@ -168,7 +169,8 @@
|
|||||||
#define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_" #devtypel #instance "= nand info && " \
|
"bootcmd_" #devtypel #instance "= nand info && " \
|
||||||
"nand read $scriptaddr $script_offset_f $script_size_f && " \
|
"nand read $scriptaddr $script_offset_f $script_size_f && " \
|
||||||
"source ${scriptaddr}; echo SCRIPT FAILED: continuing...;\0"
|
"echo NAND: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; echo NAND: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
|
||||||
#devtypel #instance " "
|
#devtypel #instance " "
|
||||||
@ -176,7 +178,8 @@
|
|||||||
#define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
|
#define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
|
||||||
|
|
||||||
#define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_jtag=source $scriptaddr; echo SCRIPT FAILED: continuing...;\0"
|
"bootcmd_jtag=echo JTAG: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; echo JTAG: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
|
||||||
"jtag "
|
"jtag "
|
||||||
|
@ -152,7 +152,8 @@
|
|||||||
#define BOOTENV_DEV_QSPI(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_QSPI(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_qspi=sf probe 0 0 0 && " \
|
"bootcmd_qspi=sf probe 0 0 0 && " \
|
||||||
"sf read ${scriptaddr} ${script_offset_f} ${script_size_f} && " \
|
"sf read ${scriptaddr} ${script_offset_f} ${script_size_f} && " \
|
||||||
"source ${scriptaddr}; echo SCRIPT FAILED: continuing...;\0"
|
"echo QSPI: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; echo QSPI: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_QSPI(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_QSPI(devtypeu, devtypel, instance) \
|
||||||
"qspi "
|
"qspi "
|
||||||
@ -160,7 +161,8 @@
|
|||||||
#define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_nand=nand info && " \
|
"bootcmd_nand=nand info && " \
|
||||||
"nand read ${scriptaddr} ${script_offset_f} ${script_size_f} && " \
|
"nand read ${scriptaddr} ${script_offset_f} ${script_size_f} && " \
|
||||||
"source ${scriptaddr}; echo SCRIPT FAILED: continuing...;\0"
|
"echo NAND: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; echo NAND: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
|
||||||
"nand "
|
"nand "
|
||||||
@ -168,7 +170,8 @@
|
|||||||
#define BOOTENV_DEV_NOR(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NOR(devtypeu, devtypel, instance) \
|
||||||
"script_offset_nor=0xE2FC0000\0" \
|
"script_offset_nor=0xE2FC0000\0" \
|
||||||
"bootcmd_nor=cp.b ${script_offset_nor} ${scriptaddr} ${script_size_f} && " \
|
"bootcmd_nor=cp.b ${script_offset_nor} ${scriptaddr} ${script_size_f} && " \
|
||||||
"source ${scriptaddr}; echo SCRIPT FAILED: continuing...;\0"
|
"echo NOR: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; echo NOR: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_NOR(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_NOR(devtypeu, devtypel, instance) \
|
||||||
"nor "
|
"nor "
|
||||||
@ -176,7 +179,8 @@
|
|||||||
#define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
|
#define BOOT_TARGET_DEVICES_JTAG(func) func(JTAG, jtag, na)
|
||||||
|
|
||||||
#define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_JTAG(devtypeu, devtypel, instance) \
|
||||||
"bootcmd_jtag=source $scriptaddr; echo SCRIPT FAILED: continuing...;\0"
|
"bootcmd_jtag=echo JTAG: Trying to boot script at ${scriptaddr} && " \
|
||||||
|
"source ${scriptaddr}; echo JTAG: SCRIPT FAILED: continuing...;\0"
|
||||||
|
|
||||||
#define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
|
#define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
|
||||||
"jtag "
|
"jtag "
|
||||||
|
Loading…
Reference in New Issue
Block a user