summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2020-01-23 21:48:00 +0100
committerMing Liu <ming.liu@toradex.com>2020-01-23 21:48:00 +0100
commit314e3913b03ddfe96390dc7e1665558cc8aec26b (patch)
tree913d75626fb21596f1cf0538773250f5f21a8fc1 /recipes-bsp
parent81370b31d97fff94a851d626372b09fbffae4d8e (diff)
u-boot-distro-boot: add a missing ubifsumount
ubifs should be umounted after the uEnv.txt file loading finished. Signed-off-by: Ming Liu <ming.liu@toradex.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/u-boot/u-boot-distro-boot/sota/boot.cmd.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-bsp/u-boot/u-boot-distro-boot/sota/boot.cmd.in b/recipes-bsp/u-boot/u-boot-distro-boot/sota/boot.cmd.in
index ae72c67..9f49291 100644
--- a/recipes-bsp/u-boot/u-boot-distro-boot/sota/boot.cmd.in
+++ b/recipes-bsp/u-boot/u-boot-distro-boot/sota/boot.cmd.in
@@ -20,7 +20,7 @@ env set bootcmd_otenv 'ext4load ${devtype} ${devnum}:2 ${loadaddr} /boot/loader/
env set bootcmd_args 'env set bootargs root=LABEL=otaroot rootfstype=ext4 ${bootargs} ${scriptargs} ${tdxargs}'
else
# Load commands for raw NAND devices
-env set bootcmd_otenv 'ubifsmount ubi${devnum}:rootfs && load ${devtype} ${devnum}:2 ${loadaddr} /boot/loader/uEnv.txt; env import -t ${loadaddr} ${filesize}'
+env set bootcmd_otenv 'ubifsmount ubi${devnum}:rootfs && load ${devtype} ${devnum}:2 ${loadaddr} /boot/loader/uEnv.txt; env import -t ${loadaddr} ${filesize}; ubifsumount'
env set bootcmd_args 'env set bootargs ubi.mtd=ubi root=/dev/ubi0_1 rootfstype=ubifs ubi.fm_autoconvert=1 ${bootargs} ${tdxargs}'
fi