[edk2-devel] [PATCH v2 3/5] OvmfPkg/Microvm/fdt: add empty fdt

Philippe Mathieu-Daudé philmd at redhat.com
Tue Nov 9 08:54:32 UTC 2021


On 11/3/21 16:06, Gerd Hoffmann wrote:
> FdtClient is unhappy without a device tree, so add an empty fdt
> which we can use in case etc/fdt is not present in fw_cfg.
> 
> On ARM machines a device tree is mandatory for hardware detection,
> thats why FdtClient fails hard.
> 
> On microvm the device tree is only used to detect virtio-mmio devices
> (this patch series) and the pcie host (future series).  So edk2 can
> continue with limited functionality in case no device tree is present:
> no storage, no network, but serial console and direct kernel boot
> works.
> 
> qemu release 6.2 & newer will provide a device tree for microvm.
> 
> https://bugzilla.tianocore.org/show_bug.cgi?id=3689
> Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
> ---
>  OvmfPkg/PlatformPei/Platform.c | 26 ++++++++++++++++++++++----
>  1 file changed, 22 insertions(+), 4 deletions(-)

Reviewed-by: Philippe Mathieu-Daude <philmd at redhat.com>



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#83501): https://edk2.groups.io/g/devel/message/83501
Mute This Topic: https://groups.io/mt/86793345/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list