From patchwork Wed Jun 13 15:45:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 928944 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.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=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="phTlqmcV"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ca+B+hxd"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 415WNb2L1fz9s0W for ; Thu, 14 Jun 2018 01:47:43 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=KigX4Gce1smYYofRkCxbs3rcqcSfHADv3KHbH9nlDpk=; b=phTlqmcVN4icH1 +ma4klV74KslpV8zHGGu+ynAuu8ORzLr9k/7ZloL0l3q0Hcl/EetiMkzQ/iaBkCgSV6zWeBiigMgs utz1yGwe9kf6zf0ckpa5usj7F1hehhQXZRaGrpKEbwuQ7/MoV++kNcU95wVRdQv23nq55+sa+DDW8 QCw/ANW/HaaXqBtzjtZm2GUewZJW9QB76pZZouqGzHmqCRxzi49XRI2leaXWYeVpugXUEXvxg/veH GMNuFPlj6fGxzJZkEKDzlR2ktt3USgij1LTumbI3tMN9GuQsmLu70cCEvqgkWsfpiMX9WANXhgFMU yMjL4YUuvVoO65sKyUcw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fT7za-0003Ks-19; Wed, 13 Jun 2018 15:47:26 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fT7zU-0003D4-KE for lede-dev@lists.infradead.org; Wed, 13 Jun 2018 15:47:22 +0000 Received: by mail-lf0-x244.google.com with SMTP id u4-v6so4705655lff.3 for ; Wed, 13 Jun 2018 08:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=KQmKcCpcycqPtxCvuBjqf7Fcc5ACDtBJZr9Kbjqto5s=; b=ca+B+hxdNmVH0DgsEFyA9B3v/wCz5SQUCsESQ9XEa6PEAFkVleJ7gL5PdSp9GFv818 fxIsYp+qGe5tmG+dOkIoYaFXuQjhGjuT+7MB9TNQHEC6KtiJTbmVaiWEuqtF2WFBojjl lhtbD0J16dqZPWH2DPr1ates7ROkHosSCOePY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KQmKcCpcycqPtxCvuBjqf7Fcc5ACDtBJZr9Kbjqto5s=; b=GP+vu0qPWD13uQ5vrZlQgbFd7dOGEZVY/bh6/9L65qHVe9IhJNHQM/bYfZ176+0nIr l36HhbG9x+nCMOfRvCMKnDMm3Nwx+G1guX/il41VWmyjdrC6vdT9OsFKq7BbTBYKTKVo gwBZ+xFukVEPQOd7pDo7nTxd8F/jF+C4pS4KIWr9zsPMWwTKI94PLdyLhXczYi5O0P0h oTXhM8qTa//K/1cD/dkm4gCL3fO982hIob30nHt/10do1QwbQjZ7r2WlWXDgDld77whM oCPC1eRPnYsGlV83UQzsCBNET/Wa5c642MHCgSRIhlIJd2DgVBsLYhlsewbTSo828Onm 5XZQ== X-Gm-Message-State: APt69E0azHeFbAJ3iKE71zAfxnY3fnXItcLnJ9Bwsbu/AystKvCu7te/ zTmGKKFx/wtk+sYl1nwCY+NC1A== X-Google-Smtp-Source: ADUXVKKIkntJVP84QIDr2KDGiVWfH63UIyCCN1D5kOhr2jUS6CtnpCBs1OUyPF+jQx6pjU1Lez4P/w== X-Received: by 2002:a19:428c:: with SMTP id p134-v6mr3321810lfa.4.1528904828476; Wed, 13 Jun 2018 08:47:08 -0700 (PDT) Received: from localhost.localdomain (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id g72-v6sm636391lfg.93.2018.06.13.08.47.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Jun 2018 08:47:07 -0700 (PDT) From: Linus Walleij To: Roman Yeryomin , Sebastian Luft , Hans Ulli Kroll , Hauke Mehrtens Date: Wed, 13 Jun 2018 17:45:04 +0200 Message-Id: <20180613154504.6152-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180613_084720_666021_4C68D933 X-CRM114-Status: GOOD ( 12.51 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4010:c07:0:0:0:244 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Subject: [OpenWrt-Devel] [PATCH 1/2] gemini: Cook a WRGG firmware image X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , Florian Fainelli , LEDE Development List MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This makes the Gemini build a WRGG-type firmware update image for the DIR-685. This should hopefully install the kernel from the web firmware upgrade API on the product switching it permanently to use OpenWRT. Signed-off-by: Linus Walleij --- target/linux/gemini/image/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile index 3e122fc457ae..b631452a0ffb 100644 --- a/target/linux/gemini/image/Makefile +++ b/target/linux/gemini/image/Makefile @@ -7,9 +7,17 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk -# Just copy the zImage for D-Link DIR-685 +# Cook a "WRGG" image, this board is apparently one in the D-Link +# WRGG family and uses the exact same firmware format as other +# D-Link devices. define Build/dir685-images - cp $(IMAGE_KERNEL) $(BIN_DIR)/$(IMG_PREFIX)-dir685-zImage + mkwrggimg -i $(IMAGE_KERNEL) \ + -o $(BIN_DIR)/$(IMG_PREFIX)-dir685-fwupdate.bin \ + -d /dev/mtdblock/1 \ + -s wrgns01_dlwbr_dir685RBWW \ + -v 'N/A' \ + -m dir685 \ + -B 96bb endef # Build D-Link DNS-313 images using the special header tool. From patchwork Wed Jun 13 15:47:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 928948 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.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=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mkuvsHP7"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="VTT8kSWr"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 415WRk4B1jz9s2g for ; Thu, 14 Jun 2018 01:50:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ei2xs36TIKHmY8qOoUA4ZMsGROibVHUq8ASUwsAL6U0=; b=mkuvsHP75oO0Qp WacZPSj+K3N2w3y/ffYP+FYdyIxVL17TRFOpYDwMqhfQKgyRE7pdAy+yZqGkQC4IbRW0SbEf5cHrx 6jtXWM8syvnCIQ7ld0H+xsge1WlnSmlG6b5M88t0Icps+Mrx7hRt8hmxd10ND/n35A1Z647zihreA w1ynQiua47LEaKPbtFEgxARndAvNxRu7vnM2sZy+3geY4oS+yKQg8E034BkVL/sYW2jRZ8X5FcpP5 GatFePaOHqZ1WxG/rW4UdEO2UHC+ca0QJdFTHOkgB2v3Omx5pXFuIn8kVGF/sJhA/LHKkhn5RfeuG ZIfK3M/o2bvPpztJC+Pg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fT82L-0005mn-St; Wed, 13 Jun 2018 15:50:17 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fT82I-0004UD-Hr for openwrt-devel@lists.openwrt.org; Wed, 13 Jun 2018 15:50:16 +0000 Received: by mail-lf0-x244.google.com with SMTP id 36-v6so4681539lfr.11 for ; Wed, 13 Jun 2018 08:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=TpfuA5/mMvYiQOr6+XXUJ6o1mHFTdAbKormY4qkajkc=; b=VTT8kSWr0ATQHwqTxd2zhKPzlnpcsLS5PbJx/EhA9KtwYaxyIx9+xZ0meUdQCiLE5I pxQwCPCxH9WIwgkp2oeSJjN7924H7QRgyy2Yps12aCvttD+XCX+L9oFGyw9z3wfBPP5N zeSRh/GtZfUH+gQrQhrb5/J1avX02wY4wZtU4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TpfuA5/mMvYiQOr6+XXUJ6o1mHFTdAbKormY4qkajkc=; b=HYD8kITCsyAanGYzGFxQYAltETxQKtBQWhGjdnzZ3kBiJ7VZ2mMbzm8i/9OcpvftHW nqjnlVMD8WH1ZEoSm5hMsSX0H97OEhWlEzKWWHHD2ZHVEg1yVZVqcSYSyjLD9C8iK0Pu 0U88pXoRm0Nj119rsZSdBe3sgRhXNJFwkNvSv3kGJGLdP7wi+S6XtIsR8EFutw+9Iy4B 76XsGvIMFGP1q36KNkGVLLXUkVqDYOUkZjNVnFaaT2aVvmV7zRLaTByW6rw1RpdbhA76 pP1NVa/L7FeX4kAmmrOZjb7FEvNqe47+MjF0uJT8/4suImmlky9Ymroo2jwXklLWXuNY KI2w== X-Gm-Message-State: APt69E0Imcx1HnMcgUAdv53PehEXTYWdY8QhknY4jA3KKkqPXVckre2q iU90vfMghOWieM6a23DXIUqfOQ== X-Google-Smtp-Source: ADUXVKL2x/M+TB4YY6eI5/XqiedXHCNdZsmQ2wXrcCTA+u2waeueMocLtXMEMjzi7z5bVOMYQcvY6w== X-Received: by 2002:a2e:9f47:: with SMTP id v7-v6mr3452941ljk.42.1528905002853; Wed, 13 Jun 2018 08:50:02 -0700 (PDT) Received: from localhost.localdomain (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id o25-v6sm643573lfg.41.2018.06.13.08.50.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Jun 2018 08:50:01 -0700 (PDT) From: Linus Walleij To: Roman Yeryomin , Sebastian Luft , Hans Ulli Kroll , Hauke Mehrtens Date: Wed, 13 Jun 2018 17:47:58 +0200 Message-Id: <20180613154758.6230-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180613_085014_606562_7B9E512B X-CRM114-Status: GOOD ( 11.18 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4010:c07:0:0:0:244 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Subject: [OpenWrt-Devel] [PATCH 2/2] gemini: Add appropriate Wireless kernel modules X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , Florian Fainelli , LEDE Development List MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The D-Link DIR-685 has a RealTek RT2880 mini-PCI card in a slot. Activate the appropriate kernel module. The Square One SQ201 has a Ralink RT61-based mini-PCI card. Activate the appropriate kernel modules. This fixes the previous error just activating the firmware: the kernel module will bring in the firmware it needs. Signed-off-by: Linus Walleij --- target/linux/gemini/image/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile index b631452a0ffb..ba2ee02bfa7d 100644 --- a/target/linux/gemini/image/Makefile +++ b/target/linux/gemini/image/Makefile @@ -89,7 +89,8 @@ GEMINI_NAS_PACKAGES:=kmod-md-mod kmod-md-linear kmod-md-multipath \ define Device/dlink-dir-685 DEVICE_TITLE := D-Link DIR-685 Xtreme N Storage Router DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) \ - kmod-switch-rtl8366rb swconfig + kmod-switch-rtl8366rb swconfig \ + rt2800-pci IMAGES += dir685-image IMAGE/dir685-image := dir685-images endef @@ -119,7 +120,7 @@ TARGET_DEVICES += rut1xx define Device/sq201 DEVICE_TITLE := ITian Square One SQ201 - DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) rt61-pci-firmware + DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) rt61-pci endef TARGET_DEVICES += sq201