Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED890C433F5 for ; Mon, 20 Dec 2021 21:58:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BF38883758; Mon, 20 Dec 2021 22:58:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1640037493; bh=S6BtgoyshKWgevJ1G6ZbjhIPAvgFStSnczLp2w2cfZQ=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=P4RV95r1g664TtlL0q3TWJON5+3mPB194TSCM4WBvXIrSTQW0Ta3ts9VdIBvx23ow u51lG8oHGep1p+oA4XyR+6V8H0LuoUYtRwE9d6F6pYHUvi5jsGpFEq6qGMTxtN7XzX a2FeA7r0w+dMdSdjC/BG+octC0uawEM8SJxu7Nv29Eiyd9VL+Sj95gIh3WCXb6FUgt 61wBA0wDyYG2TETN0e0GWX1K/I9uTGimqApnspK+2dElYGCoyRHvYNEFLTRP70iSd0 330cH5U4eRe5HXhxHclzdWZzS4txGONb5JPBzIRscB76hrRzkyJ0qk2H46j68yUFyc OJe4Vu1ZZd98g== Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 83A5F8304E; Mon, 20 Dec 2021 22:58:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1640037490; bh=S6BtgoyshKWgevJ1G6ZbjhIPAvgFStSnczLp2w2cfZQ=; h=From:To:Cc:Subject:Date:From; b=ydveVjnv+dpRq8nabBIpJXy0gjaL5iqZwPSmYZlQ3IXmvsrfbv+XxGuCyvILOlAGm dW1Wj7xK4sTHdkkz/3r+Nd5s8TU9aCC+25aTzZQYKw/ShvEjeb9M+98c4fJafLWKQS 6PEsWwvX2h/W7u2x1Nph42B5Fijk1/QvVOb+YstKLAO2SDV5m3ABbgUy5WevPJo5kV +dN4aQStCUkqdPuI8p+j8Om0X/AvoQZpsK6xuaEcNwsoqIhjYIU1261z/v4sn9AlW0 ek0Xe8ra0BuJ7otzT40LJSY0XORNYagw250Qnun28N8FuD0ykyMU3lWnDyvQjObTtf p8oLO6VOgZBxw== From: Marek Vasut To: u-boot@lists.denx.de Cc: trini@konsulko.com, Marek Vasut , Siew Chin Lim , Simon Goldschmidt , Tien Fong Chee Subject: [PATCH] arm: socfpga: vining: Unmount UBIFS and detach UBI in ubi_load script Date: Mon, 20 Dec 2021 22:57:57 +0100 Message-Id: <20211220215757.1400884-1-marex@denx.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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 --- include/configs/socfpga_vining_fpga.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/socfpga_vining_fpga.h b/include/configs/socfpga_vining_fpga.h index d9d0a4af5ac..5c0ed07c427 100644 --- a/include/configs/socfpga_vining_fpga.h +++ b/include/configs/socfpga_vining_fpga.h @@ -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" \ -- 2.34.1