Skip to contentSkip to conversation

arm: socfpga: vining: Unmount UBIFS and detach UBI in ubi_load script

PATCH In review Marek Vasut 2 participants 2 messages Dec 20, 2021 – Dec 23, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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)

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 include/configs/socfpga_vining_fpga.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/socfpga_vining_fpga.h +2 -1
index d9d0a4af5ac..5c0ed07c427 100644
@@ -118,7 +118,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"					\
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 41 lines

-----Original Message-----
From: Marek Vasut <[email protected]>
Sent: Tuesday, 21 December, 2021 5:58 AM
To: [email protected]
Cc: [email protected]; Vasut, Marek <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH] 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)

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 include/configs/socfpga_vining_fpga.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/socfpga_vining_fpga.h +2 -1
index d9d0a4af5ac..5c0ed07c427 100644
@@ -118,7 +118,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"	\
Quoted 3 lines

"miscargs=nohlt panic=1\0" \
--
2.34.1

Regards
Tien Fong