Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2228960/?format=api
{ "id": 2228960, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228960/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260427150409.400914-1-ludwig.nussel@siemens.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<20260427150409.400914-1-ludwig.nussel@siemens.com>", "date": "2026-04-27T15:03:38", "name": "[1/4] qemu: overlay signature nodes", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "421119d3d8f06eb2351b3e23c0b8676d24f74934", "submitter": { "id": 90265, "url": "http://patchwork.ozlabs.org/api/1.1/people/90265/?format=api", "name": "Ludwig Nussel", "email": "ludwig.nussel@siemens.com" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/1.1/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260427150409.400914-1-ludwig.nussel@siemens.com/mbox/", "series": [ { "id": 501669, "url": "http://patchwork.ozlabs.org/api/1.1/series/501669/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501669", "date": "2026-04-27T15:03:38", "name": "[1/4] qemu: overlay signature nodes", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501669/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228960/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228960/checks/", "tags": {}, "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=siemens.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=siemens.com header.i=ludwig.nussel@siemens.com\n header.b=\"PspsK55D\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=siemens.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=ludwig.nussel@siemens.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g46LN2SW4z1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 01:05:00 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id A130D83693;\n\tMon, 27 Apr 2026 17:04:56 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id C25078416F; Mon, 27 Apr 2026 17:04:54 +0200 (CEST)", "from mta-64-225.siemens.flowmailer.net\n (mta-64-225.siemens.flowmailer.net [185.136.64.225])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id A48EE83693\n for <u-boot@lists.denx.de>; Mon, 27 Apr 2026 17:04:52 +0200 (CEST)", "by mta-64-225.siemens.flowmailer.net with ESMTPSA id\n 202604271504518e9f35cfe8000207c3 for <u-boot@lists.denx.de>;\n Mon, 27 Apr 2026 17:04:52 +0200" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_MED,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,\n SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2;\n d=siemens.com; i=ludwig.nussel@siemens.com;\n h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc;\n bh=3uJ9tKjGteE1L3PXQEENsWHygkCp7cxfujTGzIlEb/k=;\n b=PspsK55DiHeWLO2vKl6l+tS7ETmyA00sAwYOk0u709HPDAbmq46R2t4ZlxR00tYtLrj0qG\n qpcIXxgUMaIMmMTtnzhhLGvGMGsyvrm9I1qu+AOCn45qaaFFFyyUCcu10NDCT0yy96P+TzAr\n rHJB3wecJdZROg1SWz7DYDUD1NUPeGPxzR+kGEk0A0E1oNGz+WwqV3h1RpYs/QxR7KgdSdsS\n jwCfNbL5xA5CEs5hlp/lGJN8YKrpD2IDH7hL8/6zyUNdJe3xCp10jzQ+4e9VPoJZz5eR2qcn\n RbHQ3H1PH40Dvlcu8IwzYkz/2hhe5GA9msUziewZEfYAmqv8wuEYd/tA==;", "From": "Ludwig Nussel <ludwig.nussel@siemens.com>", "To": "u-boot@lists.denx.de", "Cc": "Ludwig Nussel <ludwig.nussel@siemens.com>, Peng Fan <peng.fan@nxp.com>,\n Sam Protsenko <semen.protsenko@linaro.org>, Tom Rini <trini@konsulko.com>,\n Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>", "Subject": "[PATCH 1/4] qemu: overlay signature nodes", "Date": "Mon, 27 Apr 2026 17:03:38 +0200", "Message-ID": "<20260427150409.400914-1-ludwig.nussel@siemens.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Flowmailer-Platform": "Siemens", "Feedback-ID": "519:519-1328817:519-21489:flowmailer", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://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": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "The keys trusted for FIT signature verification are supposed to be\nembedded in the device tree built into u-boot. When running in Qemu it's\nconvenient to use the device tree provided by the VM which doesn't know\nabout signatures though. So merge the signature nodes at run time.\n\nNeeds\n CONFIG_OF_OMIT_DTB=n\n CONFIG_OF_LIBFDT_OVERLAY=y\n\nSigned-off-by: Ludwig Nussel <ludwig.nussel@siemens.com>\n---\n\n board/emulation/qemu-arm/qemu-arm.c | 33 ++++++++++++++++++++++++++++-\n 1 file changed, 32 insertions(+), 1 deletion(-)", "diff": "diff --git a/board/emulation/qemu-arm/qemu-arm.c b/board/emulation/qemu-arm/qemu-arm.c\nindex 38f0ec5f2fb..460958b04a1 100644\n--- a/board/emulation/qemu-arm/qemu-arm.c\n+++ b/board/emulation/qemu-arm/qemu-arm.c\n@@ -147,7 +147,38 @@ int dram_init_banksize(void)\n int board_fdt_blob_setup(void **fdtp)\n {\n \t/* QEMU loads a generated DTB for us at the start of RAM. */\n-\t*fdtp = (void *)CFG_SYS_SDRAM_BASE;\n+\tvoid *qemu_fdt = (void *)CFG_SYS_SDRAM_BASE;\n+\tint ret;\n+\n+\tif (!*fdtp)\n+\t\tgoto out;\n+\n+\tif (!CONFIG_IS_ENABLED(OF_LIBFDT_OVERLAY)) {\n+\t\tlog_err(\"found built-in dt but CONFIG_OF_LIBFDT_OVERLAY isn't enabled\");\n+\t\tgoto out;\n+\t}\n+\n+\tif (fdt_check_header(*fdtp) != 0) {\n+\t\tlog_err(\"invalid built-in fdt, skipped.\\n\");\n+\t\tgoto out;\n+\t}\n+\n+\tlog_debug(\"found built-in dt %p merging into qemu's at %p...\\n\", *fdtp, qemu_fdt);\n+\n+\tret = fdt_increase_size(qemu_fdt, 1024 + fdt_totalsize(*fdtp));\n+\tif (ret) {\n+\t\tlog_err(\"Failed to resize overlay: %d\", ret);\n+\t\tgoto out;\n+\t}\n+\n+\tret = fdt_overlay_apply_node(qemu_fdt, 0, (void *)*fdtp, 0);\n+\tif (ret) {\n+\t\tlog_err(\"Failed to apply overlay: %d\\n\", ret);\n+\t\tgoto out;\n+\t}\n+\n+out:\n+\t*fdtp = qemu_fdt;\n \n \treturn 0;\n }\n", "prefixes": [ "1/4" ] }