Message ID | 20201125163341.2681-6-tmn505@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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=haF6qUw3; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=DhwMb4X5; 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 4Ch62d4PkCz9sSn for <incoming@patchwork.ozlabs.org>; Thu, 26 Nov 2020 03:35:53 +1100 (AEDT) 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: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:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1AXxwb9oPNFHE52eavB2XeZAwz6WeZnMGb3oSTolzVo=; b=haF6qUw3A16LohWQnCnMYMHoar BtFL8uB+ZjK3s90dghcEcAv+Avn67P62r0UHmrV2O3L5MXGJbPYjKRnzeFwUenXrkBB44o7U9TWSs R8iPLOho9fQE3p+AB4sgVMYPH0aX0PxxH9Whjs7xdhGcQdfaK/VNtw0eRfx5V9vI+HbwTV4SRZLEZ 4POn5BGHu/c6buitS+PLvASjFr8blBU1HqLhhST+z/7/uZ/oYGU64VW5BK8ub0I2VcJFAaBDqDgPz V+30Es+2nrg4dVuzOTUiXTKLbYEshmDs2trWmroNwwnFMivzRi+IVv62vnpb2HlbtWMh1BlXJ79ET lAo2LGKQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khxk8-0002NV-On; Wed, 25 Nov 2020 16:34:08 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khxk1-0002KD-C2 for openwrt-devel@lists.openwrt.org; Wed, 25 Nov 2020 16:34:04 +0000 Received: by mail-lf1-x12f.google.com with SMTP id d17so3963689lfq.10 for <openwrt-devel@lists.openwrt.org>; Wed, 25 Nov 2020 08:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=yHgDtpTVhKa1cdkH0jE9vWG2kpeTjODb/KASco3/dxI=; b=DhwMb4X5lb/Ri+3tyLqoYMzIM+LZy9srtbmFrMq1GzBMNsaJKylNl5c6hGCCHwVVJB MJKY0gGT/Y2XxPoAs2h0LReSuo79Z0VD2HRKJLpQkhOVHtI0kh4GrT0GC6LCjdO9aP8H SsJxtSzq8wlfpRNwmu1hHXTjJ95oB6c8CYFsl5MoteC+se9eWHWNzXo8YPmi37SFJX76 ebSc9GZV6bdR/3FVW67V98omyqD4ukakl6HKylKTJLlzKLFipJ+6E9kr5Xmn5dbrjtBz Qjot4NDQ4K7xXzDbVdU1i04HPdEMljuBlzUJVTwQjKc3rWJqZRUysY9eoWbht/eiNduW j6Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yHgDtpTVhKa1cdkH0jE9vWG2kpeTjODb/KASco3/dxI=; b=RhUZXt5uE0Al5SSmVZhziIc0E5PXQ0+Db9skJehGs2po9OibvKegNzeoUA2G4gpV6b dnBCu2PvyOopPF0xRCP0NSf3ClYktlger8F0xEf9hTgQkLs982TPiWAgbHKakLkQIgpG mBHoeYLOfPLOJpl0OqW5Z5cDvb7fMu9lQ5zUfaDngumNETjkjVufu1xY+Kwbn9JyEmhq kpc2p9wONY0iS2v4QlKieqnY+WI1maDNKhwkCZGcdGyuPoEmlXVn1OXZkChYDudgwiuc hYcvgqCBc6gGrVQtZVDOYWv6+E0IAjH1iFPBk7LAAr0GaNo0g9BUoOSy0dDXv3kjN/SW 7vDg== X-Gm-Message-State: AOAM532irHUsSiK8FQf3H2gTZ/gT/SCWM0AVUEcw+zKw2cifh63UXHRE TlQS0XWDOHyShYYCVyQpMKv/xzLngQY0sQ== X-Google-Smtp-Source: ABdhPJxTHOiSAl1dsKXCFXm7bdLsj59Qs5aZxIhrOdY4chvt0qwDxtOAXRrxauSR7uhGTtDfBIF3iA== X-Received: by 2002:ac2:4c21:: with SMTP id u1mr1615660lfq.269.1606322039205; Wed, 25 Nov 2020 08:33:59 -0800 (PST) Received: from localhost.localdomain ([194.29.183.4]) by smtp.googlemail.com with ESMTPSA id c8sm316465lfb.98.2020.11.25.08.33.58 for <openwrt-devel@lists.openwrt.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 08:33:58 -0800 (PST) From: Tomasz Maciej Nowak <tmn505@gmail.com> To: openwrt-devel@lists.openwrt.org Subject: [PATCH 5/8] tegra: sysupgrade: remove MBR check Date: Wed, 25 Nov 2020 17:33:38 +0100 Message-Id: <20201125163341.2681-6-tmn505@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201125163341.2681-1-tmn505@gmail.com> References: <20201125163341.2681-1-tmn505@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201125_113401_581861_98D8B4CA X-CRM114-Status: GOOD ( 11.08 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:12f listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [tmn505[at]gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [tmn505[at]gmail.com] 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_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
mvebu, tegra: sync sysupgrade with x86 changes
|
expand
|
diff --git a/target/linux/tegra/base-files/lib/upgrade/platform.sh b/target/linux/tegra/base-files/lib/upgrade/platform.sh index ea9bbe92bf56..05b48cd50a8a 100644 --- a/target/linux/tegra/base-files/lib/upgrade/platform.sh +++ b/target/linux/tegra/base-files/lib/upgrade/platform.sh @@ -1,23 +1,10 @@ REQUIRE_IMAGE_METADATA=1 -get_magic_at() { - local pos="$2" - get_image "$1" | dd bs=1 count=2 skip="$pos" 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"' -} - platform_check_image() { local diskdev partdev diff [ "$#" -gt 1 ] && return 1 - case "$(get_magic_at "$1" 510)" in - 55aa) ;; - *) - echo "Failed to verify MBR boot signature." - return 1 - ;; - esac - export_bootdevice && export_partdevice diskdev 0 || { echo "Unable to determine upgrade device" return 1
This is already done by get_partitions. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> --- .../linux/tegra/base-files/lib/upgrade/platform.sh | 13 ------------- 1 file changed, 13 deletions(-)