diff options
Diffstat (limited to 'meta-xilinx-core/conf/machine/zynqmp-generic.conf')
| -rw-r--r-- | meta-xilinx-core/conf/machine/zynqmp-generic.conf | 43 |
1 files changed, 5 insertions, 38 deletions
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf index b5a2f832..15a48102 100644 --- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf +++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf | |||
| @@ -10,13 +10,6 @@ MACHINEOVERRIDES =. "${@['', 'zynqmp-generic:']['zynqmp-generic' != '${MACHINE}' | |||
| 10 | # defined before calling the required inclusion file else pre-expansion value | 10 | # defined before calling the required inclusion file else pre-expansion value |
| 11 | # defined in local.conf without machine override will not be reflected. | 11 | # defined in local.conf without machine override will not be reflected. |
| 12 | 12 | ||
| 13 | # Yocto device-tree variables | ||
| 14 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "psu_uart_0" | ||
| 15 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "PSU_DDR_0" | ||
| 16 | DT_PADDING_SIZE:pn-device-tree ?= "0x1000" | ||
| 17 | DTC_FLAGS:pn-device-tree = "-@" | ||
| 18 | YAML_DT_BOARD_FLAGS ?= "{BOARD zcu102-rev1.0}" | ||
| 19 | |||
| 20 | # Yocto ZynqMP u-boot-xlnx variables | 13 | # Yocto ZynqMP u-boot-xlnx variables |
| 21 | UBOOT_MACHINE ?= "xilinx_zynqmp_virt_defconfig" | 14 | UBOOT_MACHINE ?= "xilinx_zynqmp_virt_defconfig" |
| 22 | BOOTMODE ?= "generic.root" | 15 | BOOTMODE ?= "generic.root" |
| @@ -30,31 +23,17 @@ SPL_BINARY ?= "" | |||
| 30 | # Yocto ZynqMP arm-trusted-firmware(TF-A) variables | 23 | # Yocto ZynqMP arm-trusted-firmware(TF-A) variables |
| 31 | TFA_BL33_LOAD ?= "0x8000000" | 24 | TFA_BL33_LOAD ?= "0x8000000" |
| 32 | 25 | ||
| 33 | # Yocto ZynqMP PMUFW variables | ||
| 34 | YAML_SERIAL_CONSOLE_STDIN:pn-pmu-firmware ?= "psu_uart_0" | ||
| 35 | YAML_SERIAL_CONSOLE_STDOUT:pn-pmu-firmware ?= "psu_uart_0" | ||
| 36 | |||
| 37 | # Yocto ZynqMP FSBL variables | ||
| 38 | YAML_SERIAL_CONSOLE_STDIN:pn-fsbl-firmware ?= "psu_uart_0" | ||
| 39 | YAML_SERIAL_CONSOLE_STDOUT:pn-fsbl-firmware ?= "psu_uart_0" | ||
| 40 | |||
| 41 | # Yocto ZynqMP KERNEL Variables | 26 | # Yocto ZynqMP KERNEL Variables |
| 42 | UBOOT_ENTRYPOINT ?= "0x200000" | 27 | UBOOT_ENTRYPOINT ?= "0x200000" |
| 43 | UBOOT_LOADADDRESS ?= "0x200000" | 28 | UBOOT_LOADADDRESS ?= "0x200000" |
| 44 | 29 | ||
| 45 | # ZynqMP Serial Console | 30 | # ZynqMP Serial Console |
| 46 | SERIAL_CONSOLES ?= "115200;ttyPS0 115200;ttyPS1" | 31 | SERIAL_CONSOLES ?= "115200;ttyPS0 115200;ttyPS1" |
| 47 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | ||
| 48 | 32 | ||
| 49 | require conf/machine/include/soc-zynqmp.inc | 33 | require conf/machine/include/soc-zynqmp.inc |
| 50 | require conf/machine/include/machine-xilinx-default.inc | 34 | require conf/machine/include/machine-xilinx-default.inc |
| 51 | require conf/machine/include/machine-xilinx-qemu.inc | 35 | require conf/machine/include/machine-xilinx-qemu.inc |
| 52 | 36 | ||
| 53 | # zynqmp-generic.conf uses zcu102-zynqmp xsa as reference input. | ||
| 54 | # User can override with custom xsa using HDF_BASE and HDF_PATH variables from | ||
| 55 | # local.conf. | ||
| 56 | HDF_MACHINE = "zcu102-zynqmp" | ||
| 57 | |||
| 58 | # Machine features must result in a superset | 37 | # Machine features must result in a superset |
| 59 | # Basic features: | 38 | # Basic features: |
| 60 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget wifi bluetooth" | 39 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget wifi bluetooth" |
| @@ -64,40 +43,28 @@ IMAGE_CLASSES += "image-types-xilinx-qemu" | |||
| 64 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies | 43 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies |
| 65 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" | 44 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" |
| 66 | 45 | ||
| 67 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" | ||
| 68 | |||
| 69 | EXTRA_IMAGEDEPENDS += " \ | 46 | EXTRA_IMAGEDEPENDS += " \ |
| 70 | libyaml-native \ | ||
| 71 | python3-cython-native \ | ||
| 72 | python3-pyyaml-native \ | ||
| 73 | virtual/fsbl \ | ||
| 74 | virtual/pmu-firmware \ | ||
| 75 | arm-trusted-firmware \ | ||
| 76 | virtual/boot-bin \ | ||
| 77 | virtual/bootloader \ | 47 | virtual/bootloader \ |
| 78 | qemu-devicetrees:do_deploy \ | ||
| 79 | u-boot-xlnx-uenv \ | 48 | u-boot-xlnx-uenv \ |
| 80 | u-boot-xlnx-scr \ | 49 | u-boot-xlnx-scr \ |
| 81 | " | 50 | " |
| 82 | 51 | ||
| 83 | IMAGE_BOOT_FILES += " \ | 52 | IMAGE_BOOT_FILES += " \ |
| 84 | boot.bin \ | ||
| 85 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | ||
| 86 | boot.scr \ | 53 | boot.scr \ |
| 87 | Image \ | 54 | Image \ |
| 88 | " | 55 | " |
| 89 | 56 | ||
| 90 | # ZynqMP QEMU Configurations | 57 | # ZynqMP QEMU Configurations |
| 91 | # This machine has a QEMU model, runqemu setup: | 58 | # This machine has a QEMU model, runqemu setup: |
| 92 | QB_MEM = "-m 4096" | 59 | QB_MEM ?= "-m 4096" |
| 93 | # Iteration appears to be eth3, eth2, eth1, eth0 | 60 | # Iteration appears to be eth3, eth2, eth1, eth0 |
| 94 | QB_NETWORK_DEVICE = "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" | 61 | QB_NETWORK_DEVICE ?= "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" |
| 95 | 62 | ||
| 96 | # Set variables for QEMU DTB PATH, PS DTB and PMU DTB for zynqmp_generic, this | 63 | # Set variables for QEMU DTB PATH, PS DTB and PMU DTB for zynqmp_generic, this |
| 97 | # allows user to use different QEMU HW DTB to match their board. | 64 | # allows user to use different QEMU HW DTB to match their board. |
| 98 | QEMU_HW_DTB_PATH = "${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch" | 65 | QEMU_HW_DTB_PATH ?= "${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch" |
| 99 | QEMU_HW_DTB_PS = "${QEMU_HW_DTB_PATH}/zcu102-arm.dtb" | 66 | QEMU_HW_DTB_PS ?= "${QEMU_HW_DTB_PATH}/zcu102-arm.dtb" |
| 100 | QEMU_HW_DTB_PMU = "${QEMU_HW_DTB_PATH}/zynqmp-pmu.dtb" | 67 | QEMU_HW_DTB_PMU ?= "${QEMU_HW_DTB_PATH}/zynqmp-pmu.dtb" |
| 101 | 68 | ||
| 102 | # Two total serial ports defined in this model (according to the dts) | 69 | # Two total serial ports defined in this model (according to the dts) |
| 103 | # | 70 | # |
