qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] pseries: Add compatible property to root of dev


From: Erlon Cruz
Subject: Re: [Qemu-devel] [PATCH] pseries: Add compatible property to root of device tree
Date: Tue, 26 Feb 2013 07:15:57 -0300

I wonder if this can be related with the problem I found some time ago while installing SLES.

http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg00261.html

Regards,
Erlon

On Tue, Feb 26, 2013 at 2:27 AM, David Gibson <address@hidden> wrote:
Currently, for the pseries machine the device tree supplied by qemu to SLOF
and from there to the guest does not include a 'compatible property' at the
root level.  Usually that works fine, since in this case the compatible
property doesn't really give any information not already found in the
'device_type' or 'model' properties.

However, the lack of 'compatible' confuses the bootloader install in the
SLES11 SP2 and SLES11 SP3 installers.  This patch therefore adds a token
'compatible' property to work around that.

Signed-off-by: David Gibson <address@hidden>
---
 hw/spapr.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/spapr.c b/hw/spapr.c
index e88a27a..fadf70f 100644
--- a/hw/spapr.c
+++ b/hw/spapr.c
@@ -260,6 +260,7 @@ static void *spapr_create_fdt_skel(const char *cpu_model,
     _FDT((fdt_begin_node(fdt, "")));
     _FDT((fdt_property_string(fdt, "device_type", "chrp")));
     _FDT((fdt_property_string(fdt, "model", "IBM pSeries (emulated by qemu)")));
+    _FDT((fdt_property_string(fdt, "compatible", "qemu,pseries")));

     _FDT((fdt_property_cell(fdt, "#address-cells", 0x2)));
     _FDT((fdt_property_cell(fdt, "#size-cells", 0x2)));
--
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]