aboutsummaryrefslogtreecommitdiff
path: root/include/configs/socfpga_vining_fpga.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2021-12-20 22:57:57 +0100
committerTien Fong Chee <tien.fong.chee@intel.com>2022-06-16 16:11:06 +0800
commit163863d572a7bc52b58743b3de4aafbc24dd12c8 (patch)
treec74bbe0b723e93031a11352cd6daac3c6c1951e2 /include/configs/socfpga_vining_fpga.h
parent39bbcc341bda435899cb623a19d20727ca98c67a (diff)
downloadu-boot-163863d572a7bc52b58743b3de4aafbc24dd12c8.zip
u-boot-163863d572a7bc52b58743b3de4aafbc24dd12c8.tar.gz
u-boot-163863d572a7bc52b58743b3de4aafbc24dd12c8.tar.bz2
arm: socfpga: vining: Unmount UBIFS and detach UBI in ubi_load script
Clean up in ubiload script. Unmount UBIFS from which kernel image was loaded and detach UBI on which the UBIFS is located, otherwise message similar to the following is printed just before booting kernel: Removing MTD device #7 (rootfs) with use count 1 Error when deleting partition "rootfs" (-16) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Siew Chin Lim <elly.siew.chin.lim@intel.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Cc: Tien Fong Chee <tien.fong.chee@intel.com> Reviewed-by: Tien Fong Chee <tien.fong.chee@intel.com>
Diffstat (limited to 'include/configs/socfpga_vining_fpga.h')
-rw-r--r--include/configs/socfpga_vining_fpga.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/socfpga_vining_fpga.h b/include/configs/socfpga_vining_fpga.h
index 9455e4c..c333c93 100644
--- a/include/configs/socfpga_vining_fpga.h
+++ b/include/configs/socfpga_vining_fpga.h
@@ -116,7 +116,8 @@
"addargs=run addcons addmtd addmisc\0" \
"ubiload=" \
"ubi part ${ubimtd} ; ubifsmount ${ubipart} ; " \
- "ubifsload ${kernel_addr_r} /boot/${bootfile}\0" \
+ "ubifsload ${kernel_addr_r} /boot/${bootfile} ; " \
+ "ubifsumount ; ubi detach\0" \
"netload=" \
"tftp ${kernel_addr_r} ${hostname}/${bootfile}\0" \
"miscargs=nohlt panic=1\0" \