From patchwork Sat Jan 28 16:05:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 721062 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 3v9gYC2HS8z9sD6 for ; Sun, 29 Jan 2017 03:07:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Gd+ofQ2b"; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cXVXh-0007gi-6w; Sat, 28 Jan 2017 16:07:57 +0000 Received: from mail-pg0-f66.google.com ([74.125.83.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cXVXF-0007V3-18 for lede-dev@lists.infradead.org; Sat, 28 Jan 2017 16:07:31 +0000 Received: by mail-pg0-f66.google.com with SMTP id 3so9765210pgj.1 for ; Sat, 28 Jan 2017 08:07:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mdo8FS85cif03GZSSk4O9j4EttCUk20saY3UMhk6bxY=; b=Gd+ofQ2bbt3qI/zvdKJBmyEsjUhFRB3/acPelZI7X5oklYLGMF8hzxoGE/TpB1po5v KPSbJg674cJS5u+9vFmIfor/Y85nEE71wfFl6cX7BFMDDntX0uy6ihYW6t0GbgIDx7HY JumtI7eYPOC0VW05TqOPVNoy5IdRXPbamuk6juqYp+zWEOxXy+bz761qS9I9smyQGZWX OZuN9wA3ewWJ9ALy6O+BmBdCb3RhGCLbxmTfkAgRZHHSAOo0vpG7mMRhC6Zkjx+V1xd4 Hp0xrALjGHYyqeCypi3bUWR9XWFtGVFmWlKEcbr9JxOCmVZCmBnsoviUJNr6XcD50h/H CNJw== 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:in-reply-to :references; bh=mdo8FS85cif03GZSSk4O9j4EttCUk20saY3UMhk6bxY=; b=Hhz3Z0h6FFoHCuYU+dzknfkzMXNQGL2JvezbevYkDjN3Gx5T6th6d0bIR9zbM+lI85 h2BrPk6SM9x63Enw9N6H+Y/JFGjbQ/a7uDtpZgvHA4rHwVEJXqqbO0w749X8UKG/45On nifTRflhXHCnPChN7CHfquSQzMQQiZcnNSVOmIFmvKchgyJLptdHWpdIIb6DkgomqVKp du7k1szvWG+Mctph8XEOk4u4yq4GaKXrNoZjTI5oUTs+LZ8Jdp4pLKwGT+y8rFagPGNK V31bB8hWtm4kBhTUM3vWM735k4GWfqy9Cumq0fqo6+LPSBK3zD0qIZHayYtK2vNlhsbY nf3g== X-Gm-Message-State: AIkVDXKohKoUcZhqOF5i2J9r+qF0S7/Rb5jq6nA/0QZ814HHWMQd8tmZXBFYVxv7DsJszA== X-Received: by 10.98.88.133 with SMTP id m127mr15005220pfb.155.1485619568201; Sat, 28 Jan 2017 08:06:08 -0800 (PST) Received: from localhost.localdomain (sakura.naobsd.org. [160.16.200.221]) by smtp.gmail.com with ESMTPSA id l22sm19951778pgc.43.2017.01.28.08.06.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Jan 2017 08:06:07 -0800 (PST) From: FUKAUMI Naoki To: lede-dev@lists.infradead.org Date: Sun, 29 Jan 2017 01:05:55 +0900 Message-Id: <20170128160556.23071-2-naobsd@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170128160556.23071-1-naobsd@gmail.com> References: <20170128160556.23071-1-naobsd@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170128_080729_104167_E431705D X-CRM114-Status: UNSURE ( 6.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (naobsd[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.83.66 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.83.66 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Subject: [LEDE-DEV] [PATCH v4 2/3] bcm53xx: build factory images for WZR-900DHP series X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: FUKAUMI Naoki MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org only factory images for DHP-EU and DHP2-JP (fw ver. 2.x) are built. this will not work for DHP-JP/AP/TW (fw ver. 1.x) because they use different buffalo_csum() formula. Signed-off-by: FUKAUMI Naoki --- Changes in v4: - no change Changes in v3: - renumbered, no change Changes in v2: - refresh everything to make rules simple target/linux/bcm53xx/image/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile index e7a628b..75d1644 100644 --- a/target/linux/bcm53xx/image/Makefile +++ b/target/linux/bcm53xx/image/Makefile @@ -38,6 +38,17 @@ define Build/bcm53xx-tplink-safeloader rm $@.trx endef +define Build/buffalo-wzr-header + $(eval product=$(word 1,$(1))) + $(eval region=$(word 2,$(1))) + ( \ + echo $(product)_$(BUFFALO_TAG_VERSION)_$(BUFFALO_TAG_MINOR)_$(region)_$(BUFFALO_TAG_PLATFORM); \ + echo filelen=$$(stat -c%s $@); \ + cat $@ \ + ) > $@.new + mv $@.new $@ +endef + define Build/trx-serial $(STAGING_DIR_HOST)/bin/trx \ -o $@.new \ @@ -85,6 +96,7 @@ define Build/seama-nand endef DEVICE_VARS += PRODUCTID SIGNATURE NETGEAR_BOARD_ID NETGEAR_REGION TPLINK_BOARD +DEVICE_VARS += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR BRCMFMAC_43602A1 := kmod-brcmfmac brcmfmac-firmware-43602a1-pcie BRCMFMAC_4366B1 := kmod-brcmfmac brcmfmac-firmware-4366b1-pcie @@ -149,6 +161,20 @@ endef TARGET_DEVICES += buffalo-wzr-600dhp2 define Device/buffalo-wzr-900dhp + BUFFALO_TAG_PLATFORM := bcm + BUFFALO_TAG_VERSION := 9.99 + BUFFALO_TAG_MINOR := 9.99 + IMAGES += factory-DHP-EU.bin factory-DHP2-JP.bin + IMAGE/factory-DHP-EU.bin := \ + append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP EU | \ + buffalo-enc WZR-900DHP $$(BUFFALO_TAG_VERSION) | \ + buffalo-tag-dhp WZR-900DHP EU mlang20 | buffalo-enc-tag | \ + buffalo-dhp-image + IMAGE/factory-DHP2-JP.bin := \ + append-ubi | trx-nand | buffalo-wzr-header WZR-900DHP2 JP | \ + buffalo-enc WZR-900DHP2 $$(BUFFALO_TAG_VERSION) | \ + buffalo-tag-dhp WZR-900DHP2 JP jp | buffalo-enc-tag | \ + buffalo-dhp-image DEVICE_TITLE := Buffalo WZR-900DHP DEVICE_PACKAGES := kmod-b43 $(USB3_PACKAGES) endef