From patchwork Tue May 17 15:51:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 623186 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r8MLz40ZRz9t6K for ; Wed, 18 May 2016 01:53:47 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=open-mesh-com.20150623.gappssmtp.com header.i=@open-mesh-com.20150623.gappssmtp.com header.b=aub9dnod; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b2hIQ-0004Sb-Dj; Tue, 17 May 2016 15:52:34 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b2hIL-0004Ku-EO for lede-dev@lists.infradead.org; Tue, 17 May 2016 15:52:30 +0000 Received: by mail-wm0-x22d.google.com with SMTP id n129so146255164wmn.1 for ; Tue, 17 May 2016 08:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OsLiN2j4jsFKc73hPVhJqIu+RtCnrxROE6xVuy5hJRE=; b=aub9dnod/nBLC1fqnKHKPaplZ6RjwqofI7DuiIHi/gw0qdkV88gajRHTbblFyms6zW MkfX+tP+wvQcdDenr/EN14cmRgzJxq12D3bGxIC9uSgRK6FCedcvkX2ULaHnUU36Rb0a dqT25J4f10APARR+mrdor+D+TXTyxLh1H5BAvUmCPiWAZ3KSj0Kz4B2CfEi402frHPMJ EKE8fLLk4PKlcaAkcY8Tz0/oa1md6kaEmLBHmn2mdMbRAR1th6cOZgEbCQv0g1M1OAHQ 49+nR+fy8I5BPmv6QDm33irkH65yNOouLtpkNV/tSRZ9uGhV3dtsy69My8TPJJC40XRP xQwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OsLiN2j4jsFKc73hPVhJqIu+RtCnrxROE6xVuy5hJRE=; b=Gn0K5UN0jQrAq1k9JVcxsFeQhWpO7cnpBLak1O29NNEOfJzgG+hVtOqdNCTGEtB5WZ r3NWR7vQIR3I0xyM6JwFJq95yV5D+owC9HeMmCqMW6EoYlijHE4dpf60+AkdBpWdq0nK YWI5PiEyrnU9K2iUoAc6qZ3vsWPSwQdgvFn1wl15J9726nNobxzbshV1vYAsfcSqPaVQ GQNsG0onML+MNwIRiD+ns0178wCoTp1xXaeYfB3MeLZE9q1t5RlAt0p4REYrwCElEu8w 5mYvEBa+nKefrTsDB3joUg4xyZO6Bz4rzWx5FCv8rpHOEtXsCf2GVZVlYzglKAq/UlJr YsSg== X-Gm-Message-State: AOPr4FWx8Qge3ZAYl/0w0tJ/AQBgz12/ZqzI7aA1Vhs/74szc7dlZ+g7HmfBk0tfiwVWH4SP X-Received: by 10.28.60.5 with SMTP id j5mr2279671wma.47.1463500325687; Tue, 17 May 2016 08:52:05 -0700 (PDT) Received: from sven-desktop.home.narfation.org (p549BC98B.dip0.t-ipconnect.de. [84.155.201.139]) by smtp.gmail.com with ESMTPSA id i4sm3780030wjj.49.2016.05.17.08.52.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 May 2016 08:52:05 -0700 (PDT) From: Sven Eckelmann To: lede-dev@lists.infradead.org Date: Tue, 17 May 2016 17:51:34 +0200 Message-Id: <1463500296-21346-2-git-send-email-sven.eckelmann@open-mesh.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1463500296-21346-1-git-send-email-sven.eckelmann@open-mesh.com> References: <1463500296-21346-1-git-send-email-sven.eckelmann@open-mesh.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160517_085229_695119_6B97050A X-CRM114-Status: UNSURE ( 8.50 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:22d listed in] [list.dnswl.org] 1.0 FSL_HELO_HOME No description available. 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [LEDE-DEV] [PATCH 2/4] ar71xx: Generate sysupgrade images for OpenMesh devices X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sven Eckelmann MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Some OpenWrt based firmwares like Gluon expect that a sysupgrade image exists when a device firmware can be updated via sysupgrade. This image wasn't created until now because OpenMesh devices use the same image for factory and sysupgrade flash. Copying the image from *factory.bin to *sysupgrade.bin is therefore enough to make the sysupgrade functionality visible. Reported-by: Matthias Schiffer Signed-off-by: Sven Eckelmann --- target/linux/ar71xx/image/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 384eba8..615bbe1 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -2338,6 +2338,9 @@ define Image/Build/OpenMesh "$(BUILD_DIR)/fwupgrade.cfg-$(4)" "fwupgrade.cfg" \ "$(KDIR_TMP)/vmlinux-$(2).uImage" "kernel" \ "$(KDIR)/root.$(1)" "rootfs" + if [ -e "$(call factoryname,$(1),$(2))" ]; then \ + cp "$(call factoryname,$(1),$(2))" "$(call sysupname,$(1),$(2))"; \ + fi endef