From patchwork Thu Oct 11 03:50:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 10635677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B5BB617E3 for ; Thu, 11 Oct 2018 03:51:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E10A2A890 for ; Thu, 11 Oct 2018 03:51:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80EDF2AC69; Thu, 11 Oct 2018 03:51:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 23D0E2A890 for ; Thu, 11 Oct 2018 03:51:28 +0000 (UTC) Received: from localhost ([::1]:60207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAS0V-0004Gu-V9 for patchwork-qemu-devel@patchwork.kernel.org; Wed, 10 Oct 2018 23:51:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gARzk-0003q7-Jp for qemu-devel@nongnu.org; Wed, 10 Oct 2018 23:50:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gARzh-00051t-F4 for qemu-devel@nongnu.org; Wed, 10 Oct 2018 23:50:40 -0400 Received: from mout.gmx.net ([212.227.17.21]:35263) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gARzh-00051C-5O; Wed, 10 Oct 2018 23:50:37 -0400 Received: from LT02.fritz.box ([95.222.187.17]) by mail.gmx.com (mrgmx103 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MTBfe-1gHZYl49xO-00S7lL; Thu, 11 Oct 2018 05:50:34 +0200 Received: from LT02.fritz.box ([95.222.187.17]) by mail.gmx.com (mrgmx103 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MTBfe-1gHZYl49xO-00S7lL; Thu, 11 Oct 2018 05:50:34 +0200 From: Heinrich Schuchardt To: Peter Maydell Date: Thu, 11 Oct 2018 05:50:26 +0200 Message-Id: <20181011035026.23517-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181010185445.10290-1-xypron.glpk@gmx.de> References: <20181010185445.10290-1-xypron.glpk@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:l2Oz9NoUti0aOdNumimRmZqmqde0CJJPl2babal3cETfPOT49Ag UbPx1MnvwgwL1WT3uQ/WsMQb8nCdspxTaSw/O6vIDNOtnulByNRMK4xu8snUOz4HShUge7V SIi9ZSiZvlydYyAy5YDj0F7a5ZVpXEQQHHsKTnmFin9WUfLW4G6UsEtFw8C+FJkSqERWUHx y9sgP/rcjwDYtKdadjI1w== X-UI-Out-Filterresults: notjunk:1;V01:K0:zJzduwCZSLs=:+gyVEpeVnOLP7yqshNwsOM ldoS/djttjVvsYI3GX3214MPvMMCcB1UiS6dly8sh43b7tkaP3uEtuU7ujgiA6j64Yk5tuPQz gQU/7LgYzq8PJ7oISLAabEMUZzN/l2Er2sGTYkd5BSbCxxqgYoQgsg+qFa5ZWDe89gSFTR1OG M1Th4TdCVeiRMpubrFyabdkPoW2k+y57df+9XOYO/5yNRyHhe6AOZmyMa/SkH9vXtWIqpuf5f hz/BqsCMDwt96uC5pmYKHUIaYxajtO7XXhMA3xj4ApMGVzCRFNQExcdnONhA8tF6EYXIUzcOB WWBoyqiCqAneZ34n22fyh/kPY5FuBaSo+hy84/QEZM0OauY604Qkh8cXcu+bNCP02lGrDdX+O aT2zSTwfvuyci+osymvZgJkKrvG8ayiNaDYyx+cE6ZGCsMH5b0YmdVHf+7LsbD/54Rq7fanZO Ock74E6ebnY4rgUS2MX/+ruQNb305wrVBhKU7rkv4s8qRg43suWqn4vBhkZKodlDgx8beNBon E46Qi5JTAXIFz92Po2bOLC21XqrcjxjABEqMiR6UJOYauGauPwHuP+ycjjs6ztFYvH9bNp89G Nve8tcZa+nVp52CB0csefB2ATeFTqjhppUrXShdTDzDARlwss8drCI0Ey0suLVrpIc1Nr60Ol hyGYEZpgKmP6MB3OGXERIfpUfBaw4014qlRGrJSUmtMjddNJsQ0FDWPCp6Qoum+cOVnZPizSh xtLpbcztLCi08yVUjtb1BK4P0vXhpMvJstdSjn5RfGH4JRm2TXoNAI+yu40XnnCngCKl5Gzw8 D1/Mjm/QGeE+BYlJQWcFniUgggcXg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.21 Subject: [Qemu-devel] [PATCH v2 1/1] hw/arm/virt: provide a model property in the fdt X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Heinrich Schuchardt , qemu-arm@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP According to the "Devicetree Specification, Release v0.2" 'model' is a required property of the root node. Some software like the Debian flash-kernel package rely on this property to identify boards. The patch sets the model property to 'qemu,virt'. Signed-off-by: Heinrich Schuchardt --- v2 use the recommended format of the model property --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 281ddcdf6e..abe366895a 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -200,6 +200,7 @@ static void create_fdt(VirtMachineState *vms) vms->fdt = fdt; /* Header */ + qemu_fdt_setprop_string(fdt, "/", "model", "qemu,virt"); qemu_fdt_setprop_string(fdt, "/", "compatible", "linux,dummy-virt"); qemu_fdt_setprop_cell(fdt, "/", "#address-cells", 0x2); qemu_fdt_setprop_cell(fdt, "/", "#size-cells", 0x2);