From patchwork Thu May 19 18:20:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 624172 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (caladan.dune.hu [78.24.191.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r9fXl5JbDz9sCy for ; Fri, 20 May 2016 04:21:43 +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=t2EmJyRb; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 82BFBB91F4E; Thu, 19 May 2016 20:21:36 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Thu, 19 May 2016 20:21:36 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id A0B3DB91F44 for ; Thu, 19 May 2016 20:21:35 +0200 (CEST) X-policyd-weight: using cached result; rate: -7 Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 19 May 2016 20:21:35 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id n129so48240172wmn.1 for ; Thu, 19 May 2016 11:21:35 -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; bh=+u5c8CBqZXaIUz0PS1sN6nzl7woJsKKjpTYJ6a9mxcI=; b=t2EmJyRbVR3nAavjAMMK8hYmronsIcJDPa5hw6gHZnp0pWGNXBKEXP/MGm3O4nmHpQ a+dyXM3PXf4K4r5mzAzV1tDgMOdCWp9mKxHFOtHa+emNo9A0HrgccMk4dlFmzkc5GRpo ysyo2y84ksj7azviKPVgdS3Zv6Fu7598pdFYzG7GatV0HKpcarysPE68flMQ90GpUJF4 SkDk+7yONcVkwe5x+cC6QFSGeXnO3oukRvZzCju1ThArPnLY7UAoR27o1ZWXb7nIrPIY B2n+j7d1xecXjGTXgGFoWtH+oxzQjgZs2yqdrZBNOHVZUXK2lNSoPbirzN4XKuuRk/vX JhHQ== 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; bh=+u5c8CBqZXaIUz0PS1sN6nzl7woJsKKjpTYJ6a9mxcI=; b=CCI1WY77yRh8ScfvyzE+RbY3ewX7uIQevjzu0ZryLuHA7ol5Sc9K33f43gxqDCmJiB 2JSzRjoidfrOW40ulhKlkrg+cF617JAcW7PsTWj7NogWyYBN1gTCY2t7790Ktg+vX/pI P8I3VovTBepYGMLnuKga417CIpAGZT3IbxxoCL8Ds/Z3O+lIvNFNrp37oj4YXN5V/HVL Cu7M1Yx4l2Sd/iLg2PwLhT9iqNheKQhoIrNVhmVurD3mM2kMhsygVuNADvzyjdtadZQx AzbuIF0gNfArwQpUel73JGMyVLNoQMNKuf2pYkshj3BGivxnIlTIOO5LhBnvHoiWFvBx rbBA== X-Gm-Message-State: AOPr4FWXXZB1RJ7Vtv6mJCnsE5PyUaBiYLgRWdtpw1OwgAuzmTC/Ah6wja04MHixUwwOsAoe X-Received: by 10.28.2.67 with SMTP id 64mr14770576wmc.70.1463682094894; Thu, 19 May 2016 11:21:34 -0700 (PDT) Received: from sven-desktop.home.narfation.org (p579E6DC9.dip0.t-ipconnect.de. [87.158.109.201]) by smtp.gmail.com with ESMTPSA id u12sm495822wmu.12.2016.05.19.11.21.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2016 11:21:33 -0700 (PDT) From: Sven Eckelmann To: openwrt-devel@lists.openwrt.org Date: Thu, 19 May 2016 20:20:44 +0200 Message-Id: <1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com> X-Mailer: git-send-email 2.8.1 Subject: [OpenWrt-Devel] [PATCH CC 01/34] ar71xx: Generate sysupgrade images for OpenMesh devices X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sven Eckelmann MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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 9a7acbd..5b0a4ec 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -1847,6 +1847,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