diff options
Diffstat (limited to 'meta-xilinx-virtualization/README.md')
-rw-r--r-- | meta-xilinx-virtualization/README.md | 143 |
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 | |||
3 | This layer enables AMD Xilinx Xen configurations and features for ZynqMP and | ||
4 | Versal devices and also provides related metadata. | ||
5 | |||
6 | ## Xen Build Instructions | ||
7 | |||
8 | The Yocto Project setup for AMD Xilinx Xen configurations workflow is as follows. | ||
9 | Be sure to read everything below. | ||
10 | |||
11 | 1. Follow [Building Instructions](../README.building.md) upto step 2. | ||
12 | |||
13 | 2. Clone the meta-security repository. | ||
14 | |||
15 | ``` | ||
16 | $ git clone -b <release-branch> https://git.yoctoproject.org/meta-security | ||
17 | ``` | ||
18 | |||
19 | 3. 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 | |||
24 | 4. 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 | |||
30 | 5. The following variables needs to be added to the end of the conf/local.conf file. | ||
31 | |||
32 | ``` | ||
33 | # Xen variables | ||
34 | BOOTMODE = "xen" | ||
35 | ENABLE_XEN_UBOOT_SCR = "1" | ||
36 | ENABLE_XEN_DTSI = "1" | ||
37 | ENABLE_XEN_QEMU_DTSI = "1" | ||
38 | |||
39 | DISTRO_FEATURES:append = " multiarch security tpm virtualization vmsep xen" | ||
40 | |||
41 | IMAGE_FEATURES += "ssh-server-openssh" | ||
42 | |||
43 | DISTRO_FEATURES:append = " systemd" | ||
44 | VIRTUAL-RUNTIME_init_manager = "systemd" | ||
45 | DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" | ||
46 | |||
47 | IMAGE_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 | |||
60 | 6. 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 | |||
67 | 1. Follow [Booting Instructions](../README.booting.md) upto step 2. | ||
68 | |||
69 | 2. Verify Xen Dom0 is up and running on QEMU or target as shown below. | ||
70 | |||
71 | ``` | ||
72 | Poky (Yocto Project Reference Distro) 4.1.4 zynqmp-generic hvc0 | ||
73 | |||
74 | zynqmp-generic login: root | ||
75 | root@zynqmp-generic:~# xl list | ||
76 | Name ID Mem VCPUs State Time(s) | ||
77 | Domain-0 0 1500 1 r----- 123.5 | ||
78 | root@zynqmp-generic:~# xl info | ||
79 | host : zynqmp-generic | ||
80 | release : 6.1.0-xilinx-v2024.1 | ||
81 | version : #1 SMP Thu Dec 21 07:00:11 UTC 2023 | ||
82 | machine : aarch64 | ||
83 | nr_cpus : 4 | ||
84 | max_cpu_id : 3 | ||
85 | nr_nodes : 1 | ||
86 | cores_per_socket : 1 | ||
87 | threads_per_core : 1 | ||
88 | cpu_mhz : 99.990 | ||
89 | hw_caps : 00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000 | ||
90 | virt_caps : hvm hvm_directio hap iommu_hap_pt_share vpmu gnttab-v1 | ||
91 | total_memory : 4095 | ||
92 | free_memory : 2529 | ||
93 | sharing_freed_memory : 0 | ||
94 | sharing_used_memory : 0 | ||
95 | outstanding_claims : 0 | ||
96 | free_cpus : 0 | ||
97 | xen_major : 4 | ||
98 | xen_minor : 17 | ||
99 | xen_extra : .0 | ||
100 | xen_version : 4.17.0 | ||
101 | xen_caps : xen-3.0-aarch64 xen-3.0-armv7l | ||
102 | xen_scheduler : credit2 | ||
103 | xen_pagesize : 4096 | ||
104 | platform_params : virt_start=0x200000 | ||
105 | xen_changeset : Tue Dec 12 10:08:40 2023 +0100 git:38eebc6e5c-dirty | ||
106 | xen_commandline : console=dtuart dtuart=serial0 dom0_mem=1500M dom0_max_vcpus=1 bootscrub=0 vwfi=native | ||
107 | cc_compiler : aarch64-poky-linux-gcc (GCC) 12.2.0 | ||
108 | cc_compile_by : santraju | ||
109 | cc_compile_domain : | ||
110 | cc_compile_date : 2023-12-12 | ||
111 | build_id : 5e2952e1dd06c52a2a09ada7476333c48d88a285 | ||
112 | xend_config_format : 4 | ||
113 | root@zynqmp-generic:~# | ||
114 | ``` | ||
115 | |||
116 | ## Dependencies | ||
117 | |||
118 | This 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 | ||