From e28f8263aaedf1201542d4c8f2d70fbf646e2155 Mon Sep 17 00:00:00 2001 From: Valentin Raevsky Date: Thu, 21 Jan 2021 14:33:01 +0200 Subject: [PATCH] recipes-bsp: u-boot-fw-utils: Use full path in cl_setenv Signed-off-by: Valentin Raevsky --- recipes-bsp/u-boot/compulab/imx8mm/cl_setenv | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes-bsp/u-boot/compulab/imx8mm/cl_setenv b/recipes-bsp/u-boot/compulab/imx8mm/cl_setenv index 5d38caa..694c2a6 100644 --- a/recipes-bsp/u-boot/compulab/imx8mm/cl_setenv +++ b/recipes-bsp/u-boot/compulab/imx8mm/cl_setenv @@ -1,6 +1,7 @@ #!/bin/bash CONF=/etc/fw_env.config +PREFIX=/sbin force_rw() { for _d in $(awk '(/^\/dev\//)&&($0=$1)' ${CONF});do @@ -16,10 +17,10 @@ fi done } -[[ -f ${CONF} ]] || fw_printenv -e > ${CONF} +[[ -f ${CONF} ]] || ${PREFIX}/fw_printenv -e > ${CONF} force_rw 1 -fw_setenv $@ +${PREFIX}/fw_setenv $@ force_rw 0