get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 624189,
    "url": "http://patchwork.ozlabs.org/api/patches/624189/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-18-git-send-email-sven.eckelmann@open-mesh.com/",
    "project": {
        "id": 45,
        "url": "http://patchwork.ozlabs.org/api/projects/45/?format=api",
        "name": "OpenWrt development",
        "link_name": "openwrt",
        "list_id": "openwrt-devel.lists.openwrt.org",
        "list_email": "openwrt-devel@lists.openwrt.org",
        "web_url": "http://openwrt.org/",
        "scm_url": "git://git.openwrt.org/openwrt.git",
        "webscm_url": "https://dev.openwrt.org/browser",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1463682077-19339-18-git-send-email-sven.eckelmann@open-mesh.com>",
    "list_archive_url": null,
    "date": "2016-05-19T18:21:01",
    "name": "[OpenWrt-Devel,CC,18/34] scripts/om-fwupgradecfg-gen.sh: Fix u-boot image md5sum check",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "4a25227421a823154ec8a05669825e17c00cb676",
    "submitter": {
        "id": 68437,
        "url": "http://patchwork.ozlabs.org/api/people/68437/?format=api",
        "name": "Sven Eckelmann",
        "email": "sven.eckelmann@open-mesh.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-18-git-send-email-sven.eckelmann@open-mesh.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/624189/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/624189/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<openwrt-devel-bounces@lists.openwrt.org>",
        "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])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3r9fgk5bqSz9sdg\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 May 2016 04:27:46 +1000 (AEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 1D549B92068;\n\tThu, 19 May 2016 20:22:46 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP;\n\tThu, 19 May 2016 20:22:46 +0200 (CEST)",
            "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id 1A4FBB91FD3\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:22:02 +0200 (CEST)",
            "from mail-wm0-f48.google.com (mail-wm0-f48.google.com\n\t[74.125.82.48]) by arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:22:02 +0200 (CEST)",
            "by mail-wm0-f48.google.com with SMTP id n129so48256915wmn.1\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 11:22:02 -0700 (PDT)",
            "from sven-desktop.home.narfation.org\n\t(p579E6DC9.dip0.t-ipconnect.de. [87.158.109.201])\n\tby smtp.gmail.com with ESMTPSA id\n\tn66sm512030wmf.6.2016.05.19.11.22.00\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 19 May 2016 11:22:01 -0700 (PDT)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=open-mesh-com.20150623.gappssmtp.com\n\theader.i=@open-mesh-com.20150623.gappssmtp.com\n\theader.b=wbxZsYi+; dkim-atps=neutral",
        "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\n\tautolearn=unavailable autolearn_force=no version=3.4.1",
        "X-policyd-weight": "using cached result; rate:hard: -7",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=open-mesh-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=tJOlmgALCTXbY4sRNFlfMVdfElIuTgkFqQQajjrOyDk=;\n\tb=wbxZsYi+cMzn38lxodMJgjMKgRrVatBq4i+jFEb9OEiKU6dkeO54El7uUYFdIEiJQj\n\tRzToMUmuV/BpBvnztpRVAakHWd72/jVPSlLKZ9+SqYcHzvmurIaOdi1QaKRjSh+iOsCA\n\tUDpTG9kShAeGkcF62oSOQ/YmyuWemYabZ1QiYt8tasw5Y0JpzCjJeN9PBTHIcYPKv+PQ\n\tCpAOFItWL3mFERNM+Kf5y8REs+SOrbcW5jpdbkI0ztEAJD+L2R0QbQh2yCOxtyWTsgId\n\tB1oPuk7svUpmwWzcmCF/1YZ01RQnfxYBUNuL4t9ogOfYdYXaIJANqpBX/VKFlWgUgkMt\n\taZfA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=tJOlmgALCTXbY4sRNFlfMVdfElIuTgkFqQQajjrOyDk=;\n\tb=ffnqs8QB58Z11MC0YdrmGWaGfaFxDR+bLKnTbm7mli9KJ7knWJGh4b1vSGcVPQ92IZ\n\tvHA6j2pAl+gsvAJAE7hAHSM8PN9IuqCiMYpXzZBhZhw1GItZUB4D5QEt39L0RoTAmHkM\n\tLow/lqjLyRNSEHTcAEYtpoP3kd1WrrhRichWqUs9bygNgo91TOXtsGeyH5FXY4wmUs8R\n\t/I5dnab8SWRPt0fpaDZ3UtFNsZ5LHXCGxnOL3npcZ80QWBT87neDAAs5q8hXu17hX9BJ\n\tlotiixo+g3q6k1QflScYVekaL1mtjaSORk1ha9uKCfmLlQ5bpKMdJisj5MesjM231eGX\n\t5ERA==",
        "X-Gm-Message-State": "AOPr4FUQrNP5Xn/pLMTZd5ZtjhDKCtxzgXrx2vYeTL9ryNFMei6lwBHr+gxFnsQPQLLpn1td",
        "X-Received": "by 10.194.241.227 with SMTP id\n\twl3mr15068199wjc.168.1463682121756; \n\tThu, 19 May 2016 11:22:01 -0700 (PDT)",
        "From": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "To": "openwrt-devel@lists.openwrt.org",
        "Date": "Thu, 19 May 2016 20:21:01 +0200",
        "Message-Id": "<1463682077-19339-18-git-send-email-sven.eckelmann@open-mesh.com>",
        "X-Mailer": "git-send-email 2.8.1",
        "In-Reply-To": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "References": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>",
        "Subject": "[OpenWrt-Devel] [PATCH CC 18/34] scripts/om-fwupgradecfg-gen.sh:\n\tFix u-boot image md5sum check",
        "X-BeenThere": "openwrt-devel@lists.openwrt.org",
        "X-Mailman-Version": "2.1.20",
        "Precedence": "list",
        "List-Id": "OpenWrt Development List <openwrt-devel.lists.openwrt.org>",
        "List-Unsubscribe": "<https://lists.openwrt.org/cgi-bin/mailman/options/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.openwrt.org/pipermail/openwrt-devel/>",
        "List-Post": "<mailto:openwrt-devel@lists.openwrt.org>",
        "List-Help": "<mailto:openwrt-devel-request@lists.openwrt.org?subject=help>",
        "List-Subscribe": "<https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>",
        "Cc": "Sven Eckelmann <sven.eckelmann@open-mesh.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "openwrt-devel-bounces@lists.openwrt.org",
        "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>"
    },
    "content": "The u-boot on Open Mesh devices checks the whole transfered image against a\nmd5sum. This is stored inside the option filemd5sum inside the\nfwupgrade.cfg. The bootloader will not check it when this setting is\nmissing and could therefore write invalid images to the flash.\n\nSigned-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>\n\nBackport of r46925\n---\n scripts/om-fwupgradecfg-gen.sh | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/scripts/om-fwupgradecfg-gen.sh b/scripts/om-fwupgradecfg-gen.sh\nindex c790214..fab1582 100644\n--- a/scripts/om-fwupgradecfg-gen.sh\n+++ b/scripts/om-fwupgradecfg-gen.sh\n@@ -48,6 +48,7 @@ ROOTFS_FLASH_ADDR=$(addr=$(($KERNEL_FLASH_ADDR + ($KERNEL_PART_SIZE * 1024))); p\n ROOTFS_SIZE=$(stat -c%s \"$ROOTFS_PATH\")\n ROOTFS_CHECK_BLOCKS=$((($ROOTFS_SIZE / $CHECK_BS) - $MD5_SKIP_BLOCKS))\n ROOTFS_MD5=$(md5=$(dd if=$ROOTFS_PATH bs=$CHECK_BS count=$ROOTFS_CHECK_BLOCKS 2>&- | md5sum); echo ${md5%% *})\n+ROOTFS_MD5_FULL=$(md5=$(md5sum $ROOTFS_PATH); echo ${md5%% *})\n ROOTFS_CHECK_SIZE=$(printf '0x%x' $(($ROOTFS_CHECK_BLOCKS * $CHECK_BS)))\n ROOTFS_PART_SIZE=$(($MAX_PART_SIZE - $KERNEL_PART_SIZE))\n \n@@ -55,6 +56,7 @@ cat << EOF > $CFG_OUT\n [vmlinux]\n filename=kernel\n md5sum=$KERNEL_MD5\n+filemd5sum=$KERNEL_MD5\n flashaddr=$KERNEL_FLASH_ADDR\n checksize=0x0\n cmd_success=setenv bootseq 1,2; setenv kernel_size_1 $KERNEL_PART_SIZE; saveenv\n@@ -63,6 +65,7 @@ cmd_fail=reset\n [rootfs]\n filename=rootfs\n md5sum=$ROOTFS_MD5\n+filemd5sum=$ROOTFS_MD5_FULL\n flashaddr=$ROOTFS_FLASH_ADDR\n checksize=$ROOTFS_CHECK_SIZE\n cmd_success=setenv bootseq 1,2; setenv kernel_size_1 $KERNEL_PART_SIZE; setenv rootfs_size_1 $ROOTFS_PART_SIZE; saveenv\n",
    "prefixes": [
        "OpenWrt-Devel",
        "CC",
        "18/34"
    ]
}