Hi Chris,
On 7/27/2023 6:10 PM, Christopher Clark via lists.yoctoproject.org wrote:
On Thu, Jul 27, 2023 at 4:22 PM Sandeep Gundlupet Raju
<[email protected]> wrote:
Add Xen dt and u-boot script support for AMD ZynqMP and Versal
devices.
Hi Sandeep - this is a slightly surprising submission. I'm unsure
about meta-virtualization being the right place for this as typically
hardware enablement is more appropriately done in a BSP layer, where
engineers who have knowledge about and access to specific hardware can
collaborate on maintaining the machine-specific aspects of recipes.
[Sandeep]: I checked with Bruce before I submit the patches, Since we
had xilinx dynamic layer, he has no objection in accepting the patches.
Xen in this (non-BSP) layer has support for qemu MACHINES, plus
generic x86-64 and the Raspberry Pi 4 board for Arm platform coverage;
the latter is a special-case that has been discussed by Xen and Yocto
community members as a basic commodity reference hardware platform for
testing (and using) Xen, and the community for this layer has more of
the interested parties participating in it than meta-raspberrypi does.
Are you experiencing difficulties with maintaining your Xen recipe
components in a separate layer?
[Sandeep]: No we are not experiencing any difficulties in maintaining
these files, currently all the dtsi files are in meta-petalinux layer
and if users are using without meta-petalinux distro layer(building
xen-image-minimal), then Xen doesn't work on ZynqMP and Versal devices.
Mark Hatle and myself we discussed on this and we saw rpi u-boot script
and other files in this layer, we thought this is a good place to move
these files. Mark can chime in here to add any additional comments.
Christopher
User can enable xen u-boot script by adding below variable from
configuration file as shown below.
BOOTMODE = "xen"
This u-boot script also supports to configure below Xen params from
configuration file.
params variable assignment
------ -------------------
duart XEN_SERIAL_CONSOLES = "serial0"
dom0_mem DOM0_MEM = "1500M"
dom0_max_vcpus DOM0_MAX_VCPUS = "1"
extra params XEN_CMDLINE_APPEND = "loglvl=all"
Sandeep Gundlupet Raju (2):
recipes-bsp: Add device-tree files for Xen support
recipes-bsp: Add u-boot-xlnx scripts for Xen support
.../device-tree/device-tree.bbappend | 19 +++
.../files/versal-net-xen-qemu.dtsi | 2 +
.../device-tree/files/versal-net-xen.dtsi | 67 ++++++++++
.../device-tree/files/versal-xen-qemu.dtsi | 2 +
.../device-tree/files/versal-xen.dtsi | 59 +++++++++
.../device-tree/files/zynqmp-xen-qemu.dtsi | 16 +++
.../device-tree/files/zynqmp-xen.dtsi | 123
++++++++++++++++++
.../u-boot/u-boot-xlnx-scr.bbappend | 2 +
.../u-boot/u-boot-xlnx-scr/boot.cmd.xen | 80 ++++++++++++
.../recipes-bsp/u-boot/xen-boot-cmd.inc | 38 ++++++
10 files changed, 408 insertions(+)
create mode 100644
dynamic-layers/xilinx/recipes-bsp/device-tree/device-tree.bbappend
create mode 100644
dynamic-layers/xilinx/recipes-bsp/device-tree/files/versal-net-xen-qemu.dtsi
create mode 100644
dynamic-layers/xilinx/recipes-bsp/device-tree/files/versal-net-xen.dtsi
create mode 100644
dynamic-layers/xilinx/recipes-bsp/device-tree/files/versal-xen-qemu.dtsi
create mode 100644
dynamic-layers/xilinx/recipes-bsp/device-tree/files/versal-xen.dtsi
create mode 100644
dynamic-layers/xilinx/recipes-bsp/device-tree/files/zynqmp-xen-qemu.dtsi
create mode 100644
dynamic-layers/xilinx/recipes-bsp/device-tree/files/zynqmp-xen.dtsi
create mode 100644
dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr.bbappend
create mode 100644
dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.xen
create mode 100644
dynamic-layers/xilinx/recipes-bsp/u-boot/xen-boot-cmd.inc
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8146):
https://lists.yoctoproject.org/g/meta-virtualization/message/8146
Mute This Topic: https://lists.yoctoproject.org/mt/100401326/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-