get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/709476/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 709476,
    "url": "http://patchwork.ozlabs.org/api/patches/709476/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/lede/patch/1482996419-10245-3-git-send-email-yszhou4tech@gmail.com/",
    "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": "<1482996419-10245-3-git-send-email-yszhou4tech@gmail.com>",
    "list_archive_url": null,
    "date": "2016-12-29T07:26:59",
    "name": "[LEDE-DEV,v3,2/2] ar71xx: wrt400n: lift size limit on kernel and rootfs part",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "8808c21572f3ffdf3e26140ecf92982d9d86f381",
    "submitter": {
        "id": 65295,
        "url": "http://patchwork.ozlabs.org/api/people/65295/?format=api",
        "name": "Yousong Zhou",
        "email": "yszhou4tech@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/lede/patch/1482996419-10245-3-git-send-email-yszhou4tech@gmail.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/709476/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/709476/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 3tq1Sy6KY2z9s3v\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 29 Dec 2016 18:29:38 +1100 (AEDT)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux))\n\tid 1cMV7q-0004tR-V6; Thu, 29 Dec 2016 07:27:46 +0000",
            "from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243])\n\tby bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat\n\tLinux)) id 1cMV7l-0004lQ-2i\n\tfor lede-dev@lists.infradead.org; Thu, 29 Dec 2016 07:27:42 +0000",
            "by mail-pf0-x243.google.com with SMTP id 127so10455638pfg.0\n\tfor <lede-dev@lists.infradead.org>;\n\tWed, 28 Dec 2016 23:27:20 -0800 (PST)",
            "from titan.office.mos (mx-yf144-138.meituan.com. [36.110.144.138])\n\tby smtp.gmail.com with ESMTPSA id\n\tp5sm89068035pgk.23.2016.12.28.23.27.16\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 28 Dec 2016 23:27:19 -0800 (PST)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"iW34yu28\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=pY6PJvspHPQ0iA9ZRJNFm+r8jobSmBnL3w0o2s2R5lA=;\n\tb=iW34yu28AaUZacxotOijUSbUumVFiHMiGRLrAH9vFOSMhOTS6qgwyhIWNEDIym3Ae9\n\tIaYu9pkZc1KJGwoVFPZGMGGNpTuaWxksoEw9dDHNv8J2CXmHrlw/cbqbdJ9mk5nbGwN0\n\tS9XzXqSL/OBh3y//aW3IvwTjE2EBhh3A1YczVqt4JEAnD/TCKlxFTBH4Fd7hQWvvHeoU\n\t1FMdPrJffBM7wWaXZVFwd3QDjxCwOMFBLRuZjxm0cjDzfdQxwaSnMlM6fRy13QJeIYls\n\tYS9TdU1YA2JMT1KiptdngLx39oPlFY281Fi7+x19b0RA85P0CO1kWCiwwNkJMawHoGYD\n\t/mjA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=pY6PJvspHPQ0iA9ZRJNFm+r8jobSmBnL3w0o2s2R5lA=;\n\tb=r7hVSeEdkeYu6WqbgfBpDCTc1Emyk3WQqPooC6jpADsB6kN5d/t/WZpwSV1aOPOBfU\n\tZ0NSqd0BsutH9AnRXI0catikKjdlwf+YOT4FaVZW0HR6d6AZdEZhEgS2ps9k8+c+NXtK\n\tP9p1zY7pPPmSvcfpgeyCLsjZp5CoeROuPZGH09x/z8tJaazlkXq1Wgwq0ivw3mqJQuij\n\tlN/IkG3FAltclDKYNsrBii8GdJ3nI1LTPI/9FL9lwLemaucI+oqXJ6mug/Trbe9zAH0e\n\tJk4M8h70iNvQzRchH87BM4MXp0TxVlKQ5lQc/P0667owyr45aONMdtEu5fJ7UUb97UJb\n\t4gtw==",
        "X-Gm-Message-State": "AIkVDXKRFBNIJWkF9pADk9hhauDP22fZil+O7J6dPqllwNngdSpyrarNPrRQ34k4fyO7LQ==",
        "X-Received": "by 10.99.188.2 with SMTP id q2mr74876504pge.34.1482996439690;\n\tWed, 28 Dec 2016 23:27:19 -0800 (PST)",
        "From": "Yousong Zhou <yszhou4tech@gmail.com>",
        "To": "john@phrozen.org",
        "Date": "Thu, 29 Dec 2016 15:26:59 +0800",
        "Message-Id": "<1482996419-10245-3-git-send-email-yszhou4tech@gmail.com>",
        "X-Mailer": "git-send-email 2.6.4",
        "In-Reply-To": "<1482996419-10245-1-git-send-email-yszhou4tech@gmail.com>",
        "References": "<1482996419-10245-1-git-send-email-yszhou4tech@gmail.com>",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20161228_232741_256146_4D6045EC ",
        "X-CRM114-Status": "GOOD (  10.48  )",
        "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\n\ttrust [2607:f8b0:400e:c00:0:0:0:243 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (yszhou4tech[at]gmail.com)\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 2/2] ar71xx: wrt400n: lift size limit on\n\tkernel and rootfs part",
        "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": "Yousong Zhou <yszhou4tech@gmail.com>, frank.horowitz@cornell.edu,\n\tlede-dev@lists.infradead.org",
        "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": "While at it, convert to new build method\n\nSigned-off-by: Yousong Zhou <yszhou4tech@gmail.com>\n---\n .../ar71xx/files/arch/mips/ath79/mach-wrt400n.c    | 12 ++----------\n target/linux/ar71xx/image/generic.mk               | 22 ++++++++++++++++++++++\n target/linux/ar71xx/image/legacy-devices.mk        |  5 -----\n target/linux/ar71xx/image/legacy.mk                | 11 -----------\n 4 files changed, 24 insertions(+), 26 deletions(-)",
    "diff": "diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wrt400n.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wrt400n.c\nindex 6c4c1cb..64126f4 100644\n--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wrt400n.c\n+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wrt400n.c\n@@ -48,13 +48,9 @@ static struct mtd_partition wrt400n_partitions[] = {\n \t\t.size\t\t= 0x010000,\n \t\t.mask_flags\t= MTD_WRITEABLE,\n \t}, {\n-\t\t.name\t\t= \"linux\",\n+\t\t.name\t\t= \"firmware\",\n \t\t.offset\t\t= 0x040000,\n-\t\t.size\t\t= 0x140000,\n-\t}, {\n-\t\t.name\t\t= \"rootfs\",\n-\t\t.offset\t\t= 0x180000,\n-\t\t.size\t\t= 0x630000,\n+\t\t.size\t\t= 0x770000,\n \t}, {\n \t\t.name\t\t= \"nvram\",\n \t\t.offset\t\t= 0x7b0000,\n@@ -75,10 +71,6 @@ static struct mtd_partition wrt400n_partitions[] = {\n \t\t.offset\t\t= 0x7f0000,\n \t\t.size\t\t= 0x010000,\n \t\t.mask_flags\t= MTD_WRITEABLE,\n-\t}, {\n-\t\t.name\t\t= \"firmware\",\n-\t\t.offset\t\t= 0x040000,\n-\t\t.size\t\t= 0x770000,\n \t}\n };\n \ndiff --git a/target/linux/ar71xx/image/generic.mk b/target/linux/ar71xx/image/generic.mk\nindex a5053be..b982bb9 100644\n--- a/target/linux/ar71xx/image/generic.mk\n+++ b/target/linux/ar71xx/image/generic.mk\n@@ -731,3 +731,25 @@ define Device/bhr-4grv2\n   IMAGE/factory.bin = append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | mkbuffaloimg\n endef\n TARGET_DEVICES += bhr-4grv2\n+\n+\n+# factory image starts with a header of size 60 (0x3c) bytes.  The header is\n+# only used for checking integrity of the firmware image without being written\n+# to flash chip.  That means it's okay we include jffs2 pads when computing\n+# checksums\n+define Build/wrt400n-factory\n+\tcp $(IMAGE_ROOTFS) $(IMAGE_ROOTFS).tmp\n+\t$(STAGING_DIR_HOST)/bin/padjffs2 $(IMAGE_ROOTFS).tmp $(BLOCKSIZE:%k=%)\n+\t$(STAGING_DIR_HOST)/bin/wrt400n $(IMAGE_KERNEL) $(IMAGE_ROOTFS).tmp $@\n+\trm -f $(IMAGE_ROOTFS).tmp\n+endef\n+\n+define Device/wrt400n\n+  DEVICE_TITLE := Linksys WRT400N\n+  BOARDNAME := WRT400N\n+  CONSOLE := ttyS0,115200\n+  IMAGES := sysupgrade.bin factory.bin\n+  IMAGE/sysupgrade.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size 0x770000\n+  IMAGE/factory.bin = wrt400n-factory | check-size 0x77003c\n+endef\n+TARGET_DEVICES += wrt400n\ndiff --git a/target/linux/ar71xx/image/legacy-devices.mk b/target/linux/ar71xx/image/legacy-devices.mk\nindex 3f865da..f1274a2 100644\n--- a/target/linux/ar71xx/image/legacy-devices.mk\n+++ b/target/linux/ar71xx/image/legacy-devices.mk\n@@ -582,11 +582,6 @@ define LegacyDevice/WLAEAG300N\n endef\n LEGACY_DEVICES += WLAEAG300N\n \n-define LegacyDevice/WRT400N\n-  DEVICE_TITLE := Linksys WRT400N\n-endef\n-LEGACY_DEVICES += WRT400N\n-\n define LegacyDevice/WZRHPG300NH\n   DEVICE_TITLE := Buffalo WZR-HP-G300NH\n   DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport\ndiff --git a/target/linux/ar71xx/image/legacy.mk b/target/linux/ar71xx/image/legacy.mk\nindex 3259016..f890c6e 100644\n--- a/target/linux/ar71xx/image/legacy.mk\n+++ b/target/linux/ar71xx/image/legacy.mk\n@@ -307,15 +307,6 @@ define Image/BuildKernel/Initramfs\n \t$(call Image/Build/Initramfs)\n endef\n \n-Image/Build/WRT400N/buildkernel=$(call MkuImageLzma,$(2),$(3))\n-\n-define Image/Build/WRT400N\n-\t$(call Sysupgrade/KRuImage,$(1),$(2),1310720,6488064)\n-\tif [ -e \"$(call sysupname,$(1),$(2))\" ]; then \\\n-\t\twrt400n $(KDIR_TMP)/vmlinux-$(2).uImage $(KDIR)/root.$(1) $(call factoryname,$(1),$(2)); \\\n-\tfi\n-endef\n-\n \n define Image/Build/CameoAP94/buildkernel\n \t$(call MkuImageLzma,$(2),$(3) $(4))\n@@ -1009,8 +1000,6 @@ $(eval $(call SingleProfile,WHRHPG300N,64kraw,WHRHPG300N,whr-hp-g300n,WHR-HP-G30\n $(eval $(call SingleProfile,WHRHPG300N,64kraw,WHRHPGN,whr-hp-gn,WHR-HP-GN,ttyS0,115200,$$(whrhpg300n_mtdlayout),WHR-HP-GN))\n $(eval $(call SingleProfile,WHRHPG300N,64kraw,WLAEAG300N,wlae-ag300n,WLAE-AG300N,ttyS0,115200,$$(whrhpg300n_mtdlayout),WLAE-AG300N))\n \n-$(eval $(call SingleProfile,WRT400N,64k,WRT400N,wrt400n,WRT400N,ttyS0,115200))\n-\n $(eval $(call SingleProfile,WZRHP128K,128kraw,WZRHPG300NH,wzr-hp-g300nh,WZR-HP-G300NH,ttyS0,115200,WZR-HP-G300NH))\n $(eval $(call SingleProfile,WZRHP64K,64kraw,WZRHPG300NH2,wzr-hp-g300nh2,WZR-HP-G300NH2,ttyS0,115200,WZR-HP-G300NH2))\n $(eval $(call SingleProfile,WZRHP64K,64kraw,WZRHPAG300H,wzr-hp-ag300h,WZR-HP-AG300H,ttyS0,115200,WZR-HP-AG300H))\n",
    "prefixes": [
        "LEDE-DEV",
        "v3",
        "2/2"
    ]
}