summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-virtualization/README.md
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2024-01-03 19:51:33 -0700
committerMark Hatle <mark.hatle@amd.com>2024-01-06 11:36:39 -0600
commit6839677f67360f3c1bd23eb907c232d809f4f446 (patch)
treea83091631aa3416faba5afbe390d8398a85c555b /meta-xilinx-virtualization/README.md
parent8bbbc41cd804127527e555622fa54257be2544b0 (diff)
downloadmeta-xilinx-6839677f67360f3c1bd23eb907c232d809f4f446.tar.gz
README.md: Add Xen build and boot instructions
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-virtualization/README.md')
-rw-r--r--meta-xilinx-virtualization/README.md116
1 files changed, 115 insertions, 1 deletions
diff --git a/meta-xilinx-virtualization/README.md b/meta-xilinx-virtualization/README.md
index 9bdaf057..ad6d4ada 100644
--- a/meta-xilinx-virtualization/README.md
+++ b/meta-xilinx-virtualization/README.md
@@ -3,6 +3,116 @@
3This layer enables AMD Xilinx Xen configurations and features for ZynqMP and 3This layer enables AMD Xilinx Xen configurations and features for ZynqMP and
4Versal devices and also provides related metadata. 4Versal devices and also provides related metadata.
5 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
6## Dependencies 116## Dependencies
7 117
8This layer depends on: 118This layer depends on:
@@ -26,4 +136,8 @@ This layer depends on:
26 136
27 URI: https://git.yoctoproject.org/meta-security 137 URI: https://git.yoctoproject.org/meta-security
28 layers: meta-tpm 138 layers: meta-tpm
29 branch: langdale \ No newline at end of file 139 branch: langdale
140
141## References
142
143* https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842530/Xen+Hypervisor