From: Marek Vasut Date: Mon, 20 Dec 2021 21:57:57 +0000 (+0100) Subject: arm: socfpga: vining: Unmount UBIFS and detach UBI in ubi_load script X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=163863d572a7bc52b58743b3de4aafbc24dd12c8;p=u-boot.git 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 Cc: Siew Chin Lim Cc: Simon Goldschmidt Cc: Tien Fong Chee Reviewed-by: Tien Fong Chee --- diff --git a/include/configs/socfpga_vining_fpga.h b/include/configs/socfpga_vining_fpga.h index 9455e4cb56..c333c931ab 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" \