u-boot-update would try to load U_BOOT_FDT from U_BOOT_FTD_DIR in all cases, which is a hindrance to specifying an absolute unversioned path for a device tree file to be loaded from.
Change this so that the first thing the script tries with regards to generating the FDT line is to check whether U_BOOT_FDT begins with a slash. If it does, and the file exists as an absolute path, use it as the fdt file. --- u-boot-update | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/u-boot-update b/u-boot-update index 69da211..0c18358 100755 --- a/u-boot-update +++ b/u-boot-update @@ -182,7 +182,10 @@ do else _INITRD="" fi - if [ -e "${_BOOT_PATH}${U_BOOT_FDT_DIR}${_VERSION}/${U_BOOT_FDT}" ] && [ -n "${U_BOOT_FDT}" ] + if [ -e "${U_BOOT_FDT}" ] && [ -n "${U_BOOT_FDT}" ] && [ "/" = $(echo "${U_BOOT_FDT}" | head -c1) ] + then + _FDT="fdt ${U_BOOT_FDT}" + elif [ -e "${_BOOT_PATH}${U_BOOT_FDT_DIR}${_VERSION}/${U_BOOT_FDT}" ] && [ -n "${U_BOOT_FDT}" ] then _FDT="fdt ${U_BOOT_FDT_DIR}${_VERSION}/${U_BOOT_FDT}" elif [ -d "${_BOOT_PATH}${U_BOOT_FDT_DIR}${_VERSION}/" ] -- 2.38.1