From patchwork Tue Sep 1 04:45:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Colov X-Patchwork-Id: 1354737 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=abv.bg Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=wNduUGYn; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=abv.bg header.i=@abv.bg header.a=rsa-sha256 header.s=smtp-out header.b=vgw/tpVH; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BgZLJ3Wk4z9sTS for ; Tue, 1 Sep 2020 14:47:20 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PCI37KU/8NufZ3P80Mf7ZqPOXoVSP8sP0Gpsa+XO1a8=; b=wNduUGYnN+Wi000S8kyJdLmWH QAo/F0OzNLdZnPoYyOW/CysiyJ4YfyvAKt+v84viUkdcjGNcjv2MnqkNV6Trpno8SAJg8yyxdJUbE B+CQFdYgjXi24cb/0VgodvereOl964Fzr3o0rdI/yLKTJXncGL8H3eoj476lbLCGSVKsG6qRr1nRK UlH5VdSoV4IpiMQZz/IUgFFrDcxlJ6bk4XPSavdzEWC+mMaJbF4vd2ayO91IMQKRdDkxZPDGi7IIK Lc7IOeNuollpRyhKub6Zzw9Diu7ptK3mNJyWv3FPcfGWXhNIExVXQYsYC0DZlNYAOO77KCf8AWOgq bSTrIKqCA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCyB3-0002MF-Q8; Tue, 01 Sep 2020 04:45:49 +0000 Received: from pop32.abv.bg ([194.153.145.222]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCyB1-0002LR-0N for openwrt-devel@lists.openwrt.org; Tue, 01 Sep 2020 04:45:47 +0000 Received: from smtp.abv.bg (localhost [127.0.0.1]) by pop32.abv.bg (Postfix) with ESMTP id EAF141FEB7; Tue, 1 Sep 2020 07:45:45 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abv.bg; s=smtp-out; t=1598935546; bh=TZUj7Bk4sTGDACeLze1aPuR8qZUTuCDI8DJ4+PfxTPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vgw/tpVH6dyKN9GEM9iKW5vWUAdRhQZr4OL+BcthC/vhO4GFTt8zbSnAy3SL6ZUC5 z4lmGPogmutCnpi5YR/V9KfzavsUVl0Ye+OAtmioyWip1iU1Ndh5eSzqFQ9jSDX2fi XnWEHQu8E8GZQbsXDIGbXMvEqaASLG27ugDxMFYw= X-HELO: tchome.lan Authentication-Results: smtp.abv.bg; auth=pass (plain) smtp.auth=todorcolov@abv.bg Received: from host.48.137.bol-bg.com (HELO tchome.lan) (78.128.48.137) by smtp.abv.bg (qpsmtpd/0.96) with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256 encrypted); Tue, 01 Sep 2020 07:45:45 +0300 From: Todor Colov To: openwrt-devel@lists.openwrt.org Subject: [PATCH v3 2/4] package: fix nand.sh fwtool trailer removal for UBIFS Date: Tue, 1 Sep 2020 07:45:32 +0300 Message-Id: <20200901044534.329-3-todorcolov@abv.bg> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200901044534.329-1-todorcolov@abv.bg> References: <20200901044534.329-1-todorcolov@abv.bg> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_004547_279775_D8510792 X-CRM114-Status: GOOD ( 18.72 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [todorcolov[at]abv.bg] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Todor Colov Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org --- package/base-files/files/lib/upgrade/nand.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/package/base-files/files/lib/upgrade/nand.sh b/package/base-files/files/lib/upgrade/nand.sh index ad04bbc753..91eea3bd3a 100644 --- a/package/base-files/files/lib/upgrade/nand.sh +++ b/package/base-files/files/lib/upgrade/nand.sh @@ -224,6 +224,7 @@ nand_upgrade_ubinized() { local mtddev="/dev/mtd${mtdnum}" ubidetach -p "${mtddev}" || true sync + fwtool -q -t -i /dev/null "$1" ubiformat "${mtddev}" -y -f "${ubi_file}" ubiattach -p "${mtddev}" nand_do_upgrade_success