* [Qemu-devel] [PATCH 1/1] hw/arm/virt: provide a model property in the fdt
@ 2018-10-10 18:54 Heinrich Schuchardt
2018-10-11 3:50 ` [Qemu-devel] [PATCH v2 " Heinrich Schuchardt
0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2018-10-10 18:54 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-arm, qemu-devel, qemu-trivial, Heinrich Schuchardt
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 <xypron.glpk@gmx.de>
---
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);
--
2.19.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Qemu-devel] [PATCH v2 1/1] hw/arm/virt: provide a model property in the fdt
2018-10-10 18:54 [Qemu-devel] [PATCH 1/1] hw/arm/virt: provide a model property in the fdt Heinrich Schuchardt
@ 2018-10-11 3:50 ` Heinrich Schuchardt
2018-10-16 10:57 ` Peter Maydell
0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2018-10-11 3:50 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-arm, qemu-devel, qemu-trivial, Heinrich Schuchardt
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 <xypron.glpk@gmx.de>
---
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);
--
2.19.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH v2 1/1] hw/arm/virt: provide a model property in the fdt
2018-10-11 3:50 ` [Qemu-devel] [PATCH v2 " Heinrich Schuchardt
@ 2018-10-16 10:57 ` Peter Maydell
0 siblings, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2018-10-16 10:57 UTC (permalink / raw)
To: Heinrich Schuchardt; +Cc: qemu-arm, QEMU Developers, QEMU Trivial
On 11 October 2018 at 04:50, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> 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 <xypron.glpk@gmx.de>
> ---
> 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);
The spec says "a string that uniquely identifies the model of the system
board". So should we be using "virt" for everything, or should we use
"virt-2.10", "virt-2.11", "virt-2.12", etc ?
thanks
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-16 10:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-10 18:54 [Qemu-devel] [PATCH 1/1] hw/arm/virt: provide a model property in the fdt Heinrich Schuchardt
2018-10-11 3:50 ` [Qemu-devel] [PATCH v2 " Heinrich Schuchardt
2018-10-16 10:57 ` Peter Maydell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.