Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/92055/?format=api
{ "id": 92055, "url": "http://patchwork.ozlabs.org/api/patches/92055/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1303246918-19921-2-git-send-email-apr@cn-eng.de/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1303246918-19921-2-git-send-email-apr@cn-eng.de>", "list_archive_url": null, "date": "2011-04-19T21:01:57", "name": "[U-Boot,1/2] automatic update from FIT image: add optional address parameter", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "c03fa3adbac832f6d95dcfd4572400bfa84033a8", "submitter": { "id": 6492, "url": "http://patchwork.ozlabs.org/api/people/6492/?format=api", "name": "Andreas Pretzsch", "email": "apr@cn-eng.de" }, "delegate": { "id": 1689, "url": "http://patchwork.ozlabs.org/api/users/1689/?format=api", "username": "wd", "first_name": "Wolfgang", "last_name": "Denk", "email": "wd@denx.de" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1303246918-19921-2-git-send-email-apr@cn-eng.de/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/92055/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/92055/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Received": [ "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 73AD31007D9\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 20 Apr 2011 07:04:06 +1000 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 6D5C028098;\n\tTue, 19 Apr 2011 23:04:01 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 1kule7xrxtRN; Tue, 19 Apr 2011 23:04:01 +0200 (CEST)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id CDF7F2809E;\n\tTue, 19 Apr 2011 23:03:52 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id A5C8628096\n\tfor <u-boot@lists.denx.de>; Tue, 19 Apr 2011 23:03:48 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id NvGqzi-Pg9oU for <u-boot@lists.denx.de>;\n\tTue, 19 Apr 2011 23:03:47 +0200 (CEST)", "from mail.mars-solutions.de (mars-solutions.de [213.239.212.107])\n\tby theia.denx.de (Postfix) with ESMTP id 71B3D28093\n\tfor <u-boot@lists.denx.de>; Tue, 19 Apr 2011 23:03:47 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby mail.mars-solutions.de (Postfix) with ESMTP id CBC56A0410D\n\tfor <u-boot@lists.denx.de>; Tue, 19 Apr 2011 23:03:39 +0200 (CEST)", "from mail.mars-solutions.de ([127.0.0.1])\n\tby localhost (mars-solutions.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id v5aH6mBZz1e0 for <u-boot@lists.denx.de>;\n\tTue, 19 Apr 2011 23:03:39 +0200 (CEST)", "by mail.mars-solutions.de (Postfix, from userid 1036)\n\tid 197FFA0412D; Tue, 19 Apr 2011 23:02:39 +0200 (CEST)", "from ws-apr.office.loc\n\t(HSI-KBW-078-043-059-252.hsi4.kabel-badenwuerttemberg.de\n\t[78.43.59.252])\n\tby mail.mars-solutions.de (Postfix) with ESMTP id 8CC17A040E7\n\tfor <u-boot@lists.denx.de>; Tue, 19 Apr 2011 23:02:26 +0200 (CEST)", "by ws-apr.office.loc (Postfix, from userid 1000)\n\tid 4D063282A6A; Tue, 19 Apr 2011 23:02:08 +0200 (CEST)" ], "X-Virus-Scanned": [ "Debian amavisd-new at theia.denx.de", "Debian amavisd-new at theia.denx.de" ], "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "From": "Andreas Pretzsch <apr@cn-eng.de>", "To": "u-boot@lists.denx.de", "Date": "Tue, 19 Apr 2011 23:01:57 +0200", "Message-Id": "<1303246918-19921-2-git-send-email-apr@cn-eng.de>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1303246918-19921-1-git-send-email-apr@cn-eng.de>", "References": "<1303246918-19921-1-git-send-email-apr@cn-eng.de>", "Cc": "Andreas Pretzsch <apr@cn-eng.de>", "Subject": "[U-Boot] [PATCH 1/2] automatic update from FIT image: add optional\n\taddress parameter", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.9", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "Current update_tftp() flow:\n 1.) fetch \"updatefile\" from defined TFTP server\n 2.) check if FIT format\n 3.) flash contained images\n\nAdd an address parameter to update_tftp(). If this address is non-zero,\nskip the TFTP transfer and use the image at this address.\n\nSigned-off-by: Andreas Pretzsch <apr@cn-eng.de>\n---\n common/main.c | 4 ++--\n common/update.c | 8 ++++++--\n 2 files changed, 8 insertions(+), 4 deletions(-)", "diff": "diff --git a/common/main.c b/common/main.c\nindex dcbacc9..9b86934 100644\n--- a/common/main.c\n+++ b/common/main.c\n@@ -51,7 +51,7 @@ void inline __show_boot_progress (int val) {}\n void show_boot_progress (int val) __attribute__((weak, alias(\"__show_boot_progress\")));\n \n #if defined(CONFIG_UPDATE_TFTP)\n-void update_tftp (void);\n+void update_tftp (ulong addr);\n #endif /* CONFIG_UPDATE_TFTP */\n \n #define MAX_DELAY_STOP_STR 32\n@@ -356,7 +356,7 @@ void main_loop (void)\n #endif /* CONFIG_PREBOOT */\n \n #if defined(CONFIG_UPDATE_TFTP)\n-\tupdate_tftp ();\n+\tupdate_tftp (0UL);\n #endif /* CONFIG_UPDATE_TFTP */\n \n #if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0)\ndiff --git a/common/update.c b/common/update.c\nindex 7528474..531c7d6 100644\n--- a/common/update.c\n+++ b/common/update.c\n@@ -238,14 +238,17 @@ static int update_fit_getparams(const void *fit, int noffset, ulong *addr,\n \treturn 0;\n }\n \n-void update_tftp(void)\n+void update_tftp(ulong addr)\n {\n \tchar *filename, *env_addr;\n \tint images_noffset, ndepth, noffset;\n \tulong update_addr, update_fladdr, update_size;\n-\tulong addr;\n \tvoid *fit;\n \n+\t/* use already present image */\n+\tif (addr)\n+\t\tgoto got_update_file;\n+\n \tprintf(\"Auto-update from TFTP: \");\n \n \t/* get the file name of the update file */\n@@ -271,6 +274,7 @@ void update_tftp(void)\n \t\treturn;\n \t}\n \n+got_update_file:\n \tfit = (void *)addr;\n \n \tif (!fit_check_format((void *)fit)) {\n", "prefixes": [ "U-Boot", "1/2" ] }