Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/627231/?format=api
{ "id": 627231, "url": "http://patchwork.ozlabs.org/api/patches/627231/?format=api", "web_url": "http://patchwork.ozlabs.org/project/lede/patch/1464359207-2744-6-git-send-email-ash.benz@bk.ru/", "project": { "id": 54, "url": "http://patchwork.ozlabs.org/api/projects/54/?format=api", "name": "LEDE development", "link_name": "lede", "list_id": "lede-dev.lists.infradead.org", "list_email": "lede-dev@lists.infradead.org", "web_url": "http://lede-project.org/", "scm_url": "", "webscm_url": "http://git.lede-project.org/", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1464359207-2744-6-git-send-email-ash.benz@bk.ru>", "list_archive_url": null, "date": "2016-05-27T14:26:42", "name": "[LEDE-DEV,v3,05/10] ipq806x/base-files: Add support for Archer C2600", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "2003460fe0056f7c4a4127355d67000743871fd4", "submitter": { "id": 68948, "url": "http://patchwork.ozlabs.org/api/people/68948/?format=api", "name": "Ash Benz", "email": "ash.benz@bk.ru" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/lede/patch/1464359207-2744-6-git-send-email-ash.benz@bk.ru/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/627231/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/627231/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n\t[IPv6:2001:1868:205::9])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3rGT0M2gw7z9t3x\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 28 May 2016 00:28:51 +1000 (AEST)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))\n\tid 1b6IjW-0005fV-PI; Fri, 27 May 2016 14:27:26 +0000", "from smtp49.i.mail.ru ([94.100.177.109])\n\tby bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat\n\tLinux)) id 1b6IjR-0005U2-Hr\n\tfor lede-dev@lists.infradead.org; Fri, 27 May 2016 14:27:23 +0000", "from [115.132.97.57] (port=49566 helo=builder.lan)\n\tby smtp49.i.mail.ru with esmtpa (envelope-from <ash.benz@bk.ru>)\n\tid 1b6Ij5-00052k-Ie; Fri, 27 May 2016 17:27:00 +0300" ], "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=bk.ru header.i=@bk.ru header.b=u8I615LZ;\n\tdkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bk.ru;\n\ts=mail; \n\th=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From;\n\tbh=bW+SUPhMwISgyz8VV7MBpwmVATj/S+arvZ79y8QU+3s=; \n\tb=u8I615LZI/FslAVduMBZlGT/3xzkKJJVJ174UDu7aaGMBD1GkiJJwdFaYoUAvn6dWA70+McqZTTWRUkQaugo2Cj6hmSsZEiO6V9edV6RVUwwRy0VvaPT2iQGjxLanNPCon16Hxbp8BoyT9Em/2mQbmVC1hVrtLnzXRuwjptIYrc=;", "From": "Ash Benz <ash.benz@bk.ru>", "To": "lede-dev@lists.infradead.org", "Date": "Fri, 27 May 2016 22:26:42 +0800", "Message-Id": "<1464359207-2744-6-git-send-email-ash.benz@bk.ru>", "X-Mailer": "git-send-email 2.1.4", "In-Reply-To": "<1464359207-2744-1-git-send-email-ash.benz@bk.ru>", "References": "<1464359207-2744-1-git-send-email-ash.benz@bk.ru>", "X-Mras": "OK", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20160527_072722_217733_B16A9415 ", "X-CRM114-Status": "UNSURE ( 6.26 )", "X-CRM114-Notice": "Please train this message.", "X-Spam-Score": "-2.7 (--)", "X-Spam-Report": "SpamAssassin version 3.4.0 on bombadil.infradead.org summary:\n\tContent analysis details: (-2.7 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow trust [94.100.177.109 listed in list.dnswl.org]\n\t-0.0 SPF_HELO_PASS SPF: HELO matches SPF record\n\t-0.0 SPF_PASS SPF: sender matches SPF record\n\t-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain\n\t0.1 DKIM_SIGNED Message has a DKIM or DK signature,\n\tnot necessarily valid", "Subject": "[LEDE-DEV] [PATCH v3 05/10] ipq806x/base-files: Add support for\n\tArcher C2600", "X-BeenThere": "lede-dev@lists.infradead.org", "X-Mailman-Version": "2.1.20", "Precedence": "list", "List-Id": "<lede-dev.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/lede-dev/>", "List-Post": "<mailto:lede-dev@lists.infradead.org>", "List-Help": "<mailto:lede-dev-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=subscribe>", "Cc": "Ash Benz <ash.benz@bk.ru>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"Lede-dev\" <lede-dev-bounces@lists.infradead.org>", "Errors-To": "lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "Signed-off-by: Ash Benz <ash.benz@bk.ru>\n---\n target/linux/ipq806x/base-files/lib/ipq806x.sh | 3 +++\n .../linux/ipq806x/base-files/lib/upgrade/platform.sh | 20 +++++++++++++++++++-\n 2 files changed, 22 insertions(+), 1 deletion(-)", "diff": "diff --git a/target/linux/ipq806x/base-files/lib/ipq806x.sh b/target/linux/ipq806x/base-files/lib/ipq806x.sh\nindex db22708..73202c0 100644\n--- a/target/linux/ipq806x/base-files/lib/ipq806x.sh\n+++ b/target/linux/ipq806x/base-files/lib/ipq806x.sh\n@@ -17,6 +17,9 @@ ipq806x_board_detect() {\n \t*\"AP148\")\n \t\tname=\"ap148\"\n \t\t;;\n+\t*\"C2600\")\n+\t\tname=\"c2600\"\n+\t\t;;\n \t*\"D7800\")\n \t\tname=\"d7800\"\n \t\t;;\ndiff --git a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh\nindex 542b5ce..a181f13 100644\n--- a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh\n+++ b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh\n@@ -12,6 +12,14 @@ platform_check_image() {\n \t\tnand_do_platform_check $board $1\n \t\treturn $?;\n \t\t;;\n+\tc2600)\n+\t\tlocal magic_long=\"$(get_magic_long \"$1\")\"\n+\t\t[ \"$magic_long\" != \"27051956\" ] && {\n+\t\t\techo \"Invalid image, bad magic: $magic_long\"\n+\t\t\treturn 1\n+\t\t}\n+\t\treturn 0;\n+\t\t;;\n \t*)\n \t\treturn 1;\n \tesac\n@@ -29,4 +37,14 @@ platform_pre_upgrade() {\n \tesac\n }\n \n-# use default for platform_do_upgrade()\n+platform_do_upgrade() {\n+\tlocal board=$(ipq806x_board_name)\n+\n+\tcase \"$board\" in\n+\tc2600)\n+\t\tPART_NAME=\"os-image:rootfs\"\n+\t\tMTD_CONFIG_ARGS=\"-s 0x200000\"\n+\t\tdefault_do_upgrade \"$ARGV\"\n+\t\t;;\n+\tesac\n+}\n", "prefixes": [ "LEDE-DEV", "v3", "05/10" ] }