summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-virtualization/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-virtualization/README.md')
-rw-r--r--meta-xilinx-virtualization/README.md143
1 files changed, 143 insertions, 0 deletions
diff --git a/meta-xilinx-virtualization/README.md b/meta-xilinx-virtualization/README.md
new file mode 100644
index 00000000..ad6d4ada
--- /dev/null
+++ b/meta-xilinx-virtualization/README.md
@@ -0,0 +1,143 @@
1# meta-xilinx-vendor
2
3This layer enables AMD Xilinx Xen configurations and features for ZynqMP and
4Versal devices and also provides related metadata.
5
6## Xen Build Instructions
7
8The Yocto Project setup for AMD Xilinx Xen configurations workflow is as follows.
9Be sure to read everything below.
10
111. Follow [Building Instructions](../README.building.md) upto step 2.
12
132. Clone the meta-security repository.
14
15```
16$ git clone -b <release-branch> https://git.yoctoproject.org/meta-security
17```
18
193. Continue [Building Instructions](../README.building.md) from step 4.
20
21> **Note:**
22> * For System Device Tree(SDT) workflow see [SDT Building Instructions](../meta-xilinx-standalone-experimental/README.md)
23
244. Add meta-xilinx-virtualization layer to bblayers.conf as shown below.
25
26```
27$ bitbake-layers add-layer ./<path-to-layer>/meta-xilinx/meta-xilinx-virtualization
28```
29
305. The following variables needs to be added to the end of the conf/local.conf file.
31
32```
33# Xen variables
34BOOTMODE = "xen"
35ENABLE_XEN_UBOOT_SCR = "1"
36ENABLE_XEN_DTSI = "1"
37ENABLE_XEN_QEMU_DTSI = "1"
38
39DISTRO_FEATURES:append = " multiarch security tpm virtualization vmsep xen"
40
41IMAGE_FEATURES += "ssh-server-openssh"
42
43DISTRO_FEATURES:append = " systemd"
44VIRTUAL-RUNTIME_init_manager = "systemd"
45DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
46
47IMAGE_INSTALL:append = " \
48 kernel-module-xen-blkback \
49 kernel-module-xen-gntalloc \
50 kernel-module-xen-gntdev \
51 kernel-module-xen-netback \
52 kernel-module-xen-wdt \
53 xen \
54 xen-tools \
55 xen-tools-xenstat \
56 ${@bb.utils.contains('DISTRO_FEATURES', 'vmsep', 'qemu-aarch64 qemu-keymaps', 'qemu', d)} \
57 "
58```
59
606. Continue [Building Instructions](../README.building.md) from step 5.
61
62## Xen Boot Instructions
63
64> **Note:**
65> * This README provides instructions for Xen Dom0 only.
66
671. Follow [Booting Instructions](../README.booting.md) upto step 2.
68
692. Verify Xen Dom0 is up and running on QEMU or target as shown below.
70
71```
72Poky (Yocto Project Reference Distro) 4.1.4 zynqmp-generic hvc0
73
74zynqmp-generic login: root
75root@zynqmp-generic:~# xl list
76Name ID Mem VCPUs State Time(s)
77Domain-0 0 1500 1 r----- 123.5
78root@zynqmp-generic:~# xl info
79host : zynqmp-generic
80release : 6.1.0-xilinx-v2024.1
81version : #1 SMP Thu Dec 21 07:00:11 UTC 2023
82machine : aarch64
83nr_cpus : 4
84max_cpu_id : 3
85nr_nodes : 1
86cores_per_socket : 1
87threads_per_core : 1
88cpu_mhz : 99.990
89hw_caps : 00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000
90virt_caps : hvm hvm_directio hap iommu_hap_pt_share vpmu gnttab-v1
91total_memory : 4095
92free_memory : 2529
93sharing_freed_memory : 0
94sharing_used_memory : 0
95outstanding_claims : 0
96free_cpus : 0
97xen_major : 4
98xen_minor : 17
99xen_extra : .0
100xen_version : 4.17.0
101xen_caps : xen-3.0-aarch64 xen-3.0-armv7l
102xen_scheduler : credit2
103xen_pagesize : 4096
104platform_params : virt_start=0x200000
105xen_changeset : Tue Dec 12 10:08:40 2023 +0100 git:38eebc6e5c-dirty
106xen_commandline : console=dtuart dtuart=serial0 dom0_mem=1500M dom0_max_vcpus=1 bootscrub=0 vwfi=native
107cc_compiler : aarch64-poky-linux-gcc (GCC) 12.2.0
108cc_compile_by : santraju
109cc_compile_domain :
110cc_compile_date : 2023-12-12
111build_id : 5e2952e1dd06c52a2a09ada7476333c48d88a285
112xend_config_format : 4
113root@zynqmp-generic:~#
114```
115
116## Dependencies
117
118This layer depends on:
119
120 URI: https://git.yoctoproject.org/poky
121 layers: meta, meta-poky
122 branch: langdale
123
124 URI: https://git.openembedded.org/meta-openembedded
125 layers: meta-oe, meta-python, meta-filesystems, meta-networking.
126 branch: langdale
127
128 URI:
129 https://git.yoctoproject.org/meta-xilinx (official version)
130 https://github.com/Xilinx/meta-xilinx (development and amd xilinx release)
131 layers: meta-xilinx-core, meta-xilinx-standalone
132 branch: langdale or amd xilinx release version (e.g. rel-v2024.1)
133
134 URI: https://git.yoctoproject.org/meta-virtualization
135 branch: langdale
136
137 URI: https://git.yoctoproject.org/meta-security
138 layers: meta-tpm
139 branch: langdale
140
141## References
142
143* https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842530/Xen+Hypervisor