diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2022-12-24 22:00:01 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-01-06 10:58:21 -0800 |
commit | 557131346a4129a9d41affffea396cf5c34e24c3 (patch) | |
tree | b09794ea6d65556c3363957682f5ef867dd35902 /meta-xilinx-core/conf/machine | |
parent | dfafee05cf7f936a0941240ca43dedc06e6e12cc (diff) | |
download | meta-xilinx-557131346a4129a9d41affffea396cf5c34e24c3.tar.gz |
versal-generic: Update machine conf file using gen-machineconf tool
1. Update machine conf file using gen-machineconf tool by parsing
vck190 xsa.
2. Use TFA_BL33_LOAD for TF-A preloadded bl33 base address.
3. Move variables which changes based on xsa before required
inclusion file to handle pre-expansion values.
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-core/conf/machine')
-rw-r--r-- | meta-xilinx-core/conf/machine/versal-generic.conf | 52 |
1 files changed, 41 insertions, 11 deletions
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf index a1f0fda6..7811073b 100644 --- a/meta-xilinx-core/conf/machine/versal-generic.conf +++ b/meta-xilinx-core/conf/machine/versal-generic.conf | |||
@@ -1,6 +1,6 @@ | |||
1 | #@TYPE: Machine | 1 | #@TYPE: Machine |
2 | #@NAME: Generic versal | 2 | #@NAME: versal-generic |
3 | #@DESCRIPTION: versal devices | 3 | #@DESCRIPTION: Machine configuration for the versal-generic devices |
4 | 4 | ||
5 | # Deprecated board config | 5 | # Deprecated board config |
6 | USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}" | 6 | USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}" |
@@ -11,29 +11,59 @@ unset USE_BOARD | |||
11 | MACHINEOVERRIDES =. "${@['', 'versal-generic:']['versal-generic' != '${MACHINE}']}" | 11 | MACHINEOVERRIDES =. "${@['', 'versal-generic:']['versal-generic' != '${MACHINE}']}" |
12 | #### Regular settings follow | 12 | #### Regular settings follow |
13 | 13 | ||
14 | require conf/machine/include/soc-versal.inc | 14 | # Variables that changes based on hw design or board specific requirement must be |
15 | require conf/machine/include/machine-xilinx-default.inc | 15 | # defined before calling the required inclusion file else pre-expansion value |
16 | require conf/machine/include/machine-xilinx-qemu.inc | 16 | # defined in local.conf without machine override will not be reflected. |
17 | |||
18 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" | ||
19 | 17 | ||
20 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" | 18 | # Yocto Versal device-tree variables |
19 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "CIPS_0_pspmc_0_psv_sbsauart_0" | ||
20 | DT_PADDING_SIZE:pn-device-tree ?= "0x1000" | ||
21 | DTC_FLAGS:pn-device-tree = "-@" | ||
22 | YAML_DT_BOARD_FLAGS ?= "{BOARD versal-vck190-reva-x-ebm-01-reva}" | ||
21 | 23 | ||
24 | # Yocto Versal u-boot-xlnx variables | ||
22 | UBOOT_MACHINE ?= "xilinx_versal_virt_defconfig" | 25 | UBOOT_MACHINE ?= "xilinx_versal_virt_defconfig" |
23 | BOOTMODE ?= "generic.root" | 26 | BOOTMODE ?= "generic.root" |
24 | 27 | ||
28 | # Yocto Versal arm-trusted-firmware(TF-A) variables | ||
29 | TFA_BL33_LOAD ?= "0x8000000" | ||
30 | |||
31 | # Yocto Versal PLM variables | ||
32 | YAML_SERIAL_CONSOLE_STDIN:pn-plm-firmware ?= "CIPS_0_pspmc_0_psv_sbsauart_0" | ||
33 | YAML_SERIAL_CONSOLE_STDOUT:pn-plm-firmware ?= "CIPS_0_pspmc_0_psv_sbsauart_0" | ||
34 | |||
35 | # Yocto Versal KERNEL Variables | ||
36 | UBOOT_ENTRYPOINT ?= "0x200000" | ||
37 | UBOOT_LOADADDRESS ?= "0x200000" | ||
38 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | ||
39 | |||
40 | # Versal Serial Console | ||
25 | SERIAL_CONSOLES ?= "115200;ttyAMA0" | 41 | SERIAL_CONSOLES ?= "115200;ttyAMA0" |
42 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
43 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | ||
26 | 44 | ||
27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 45 | require conf/machine/include/soc-versal.inc |
46 | require conf/machine/include/machine-xilinx-default.inc | ||
47 | require conf/machine/include/machine-xilinx-qemu.inc | ||
28 | 48 | ||
49 | # versal-generic.conf uses vck190-versal xsa as reference input. | ||
50 | # User can override with custom xsa using HDF_BASE and HDF_PATH variables from | ||
51 | # local.conf. | ||
29 | HDF_MACHINE = "vck190-versal" | 52 | HDF_MACHINE = "vck190-versal" |
30 | 53 | ||
54 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" | ||
55 | |||
56 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | ||
57 | |||
31 | # Default SD image build onfiguration, use qemu-sd to pad | 58 | # Default SD image build onfiguration, use qemu-sd to pad |
32 | IMAGE_CLASSES += "image-types-xilinx-qemu" | 59 | IMAGE_CLASSES += "image-types-xilinx-qemu" |
33 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies | 60 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies |
34 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" | 61 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" |
35 | 62 | ||
36 | EXTRA_IMAGEDEPENDS += " \ | 63 | EXTRA_IMAGEDEPENDS += " \ |
64 | libyaml-native \ | ||
65 | python3-cython-native \ | ||
66 | python3-pyyaml-native \ | ||
37 | arm-trusted-firmware \ | 67 | arm-trusted-firmware \ |
38 | virtual/boot-bin \ | 68 | virtual/boot-bin \ |
39 | virtual/bootloader \ | 69 | virtual/bootloader \ |
@@ -49,9 +79,9 @@ IMAGE_BOOT_FILES += " \ | |||
49 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | 79 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ |
50 | Image \ | 80 | Image \ |
51 | boot.scr \ | 81 | boot.scr \ |
52 | " | 82 | " |
53 | |||
54 | 83 | ||
84 | # Versal QEMU Configurations | ||
55 | # This machine has a QEMU model, runqemu setup: | 85 | # This machine has a QEMU model, runqemu setup: |
56 | QB_MEM = "-m 8G" | 86 | QB_MEM = "-m 8G" |
57 | QB_DEFAULT_KERNEL = "none" | 87 | QB_DEFAULT_KERNEL = "none" |