From patchwork Wed Oct 10 18:54:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 10635111 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 82009112B for ; Wed, 10 Oct 2018 18:55:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11A042A840 for ; Wed, 10 Oct 2018 18:55:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05EBC2A85E; Wed, 10 Oct 2018 18:55:47 +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 8DD192A840 for ; Wed, 10 Oct 2018 18:55:46 +0000 (UTC) Received: from localhost ([::1]:58687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAJe5-0005VE-FO for patchwork-qemu-devel@patchwork.kernel.org; Wed, 10 Oct 2018 14:55:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAJdT-00059g-AR for qemu-devel@nongnu.org; Wed, 10 Oct 2018 14:55:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAJdP-00067D-Vw for qemu-devel@nongnu.org; Wed, 10 Oct 2018 14:55:07 -0400 Received: from mout.gmx.net ([212.227.15.18]:38343) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAJdP-00066Q-Li; Wed, 10 Oct 2018 14:55:03 -0400 Received: from LT02.fritz.box ([95.222.187.17]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0M54L0-1fkY1K207y-00zIO0; Wed, 10 Oct 2018 20:55:00 +0200 Received: from LT02.fritz.box ([95.222.187.17]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0M54L0-1fkY1K207y-00zIO0; Wed, 10 Oct 2018 20:55:00 +0200 From: Heinrich Schuchardt To: Peter Maydell Date: Wed, 10 Oct 2018 20:54:45 +0200 Message-Id: <20181010185445.10290-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:iXB/pkhqGiuNR5s7f7RQ0Xvcvfs144WPqFWeYZHecig6XrVMdwl dgmdwBAA1MeuWRWuNN3Muw6jtJRsW/PUIDJ4igzQcE6Cloi1VyM6SbH+IYxz2e1l0cfgL21 ss4HonjVZvTOYIJhI2lBgLDl7Nn+mEQ8r1kmjMCYP3qCmDEg49ZRL0X/oqxkPBjbn/SuStB ro+4pYPBjaEJLd3ovzigg== X-UI-Out-Filterresults: notjunk:1;V01:K0:BbKaM8EdanY=:i9FC5WB7QOpwTGlKAL1Cs1 XOSc8n3T2UI3V3aJdHM0prv2FPa+8mJGQEinhSDgOFzZyN/AJKUab/URBhwTww4EaI2QK9udt p3culn8iMwOQeo4G5u44FH+8Rt6aCLX0VNgEMHjiUXkElad0RNKIgypWwdbCYrcjPGsmPs4Z8 RsuvL2Bit0dwFAkHT1UoV/ZeZ+rFSmhTCItksa/UWc81N6fVAOGEpByy54HX4kHxPpJOeP9xf g0BwHslhl7MUMIkz9lnT2hDXyug2anvib6PknOf0nR/4POuhMA+ufSRwwFizvPxuALv8uU2T5 LayaS33DX96J4zQHUcIeNSzFTwXEK6g7xaX5MYSwxRR992KnVAX/Jru4qxwjms/EBNYiu0UAD i0OSrjZ+CCSj+tCmyXZPJedPbh+aLY9ULV0CBLAP8yG1xGRzxg5nqaUfSkrnmig9V9FUCfbEe PXL7IQnOyKjVhL85K30G1GDM5/9nw5qd/666a+QWhfC9n8dszWDLNJQH+GphV69yHKnAu+3f8 q23SzJeED/Ccedv0iQi9eo2wucCSxkgVNMoVOm5kg9wGMOv54gCiPmMJF9HHHW8HaXmRt+hkJ 0hOK5aZehpbzd5P+FVq4CENLvju6GRR+ofedbTXXIt+nmnu5u/JuII6j8gBAKXXU3L6WguWY7 gQ4q7Q+mUVuWWfgHaLXrYEu1uxaTMFJf+dSl8kZZGMa5bcMHGKPvxQ4Nl7UqlZBk8Obuw0/5+ f90Ga3dZyfxnESm2y7LfkQ+DTYMjp/W94O1Yf2ZcW0G4InsdilcFrx5FNMBOMZe+tVofLomvU it2nAhvtL8IhJrdUR/A2TZDnPylTw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.18 Subject: [Qemu-devel] [PATCH 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 Device trees in the Linux kernel generally provide a model property. Some software like the Debian flash-kernel package rely on this property to identify boards. The patch sets the model property for the virt boards to 'QEMU virt'. Signed-off-by: Heinrich Schuchardt --- 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);