summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/conf
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2022-12-24 22:00:00 -0700
committerMark Hatle <mark.hatle@amd.com>2023-01-06 10:58:21 -0800
commitdfafee05cf7f936a0941240ca43dedc06e6e12cc (patch)
treee38aa83edabd4aeaab37121f0b71ef5d183e21ca /meta-xilinx-core/conf
parentfdb3e6e167665315899e796e3a6eadc8e645f44b (diff)
downloadmeta-xilinx-dfafee05cf7f936a0941240ca43dedc06e6e12cc.tar.gz
zynq-generic: Update machine conf file using gen-machineconf tool
1. Update machine conf file using gen-machineconf tool by parsing zc702 xsa. 2. Add UIMAGE_LOADADDR to KERNEL_EXTRA_ARGS. 3. Move variables which changes based on xsa before required inclusion file to handle pre-expansion values. 4. Add uImage to IMAGE_BOOT_FILES. 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')
-rw-r--r--meta-xilinx-core/conf/machine/zynq-generic.conf68
1 files changed, 50 insertions, 18 deletions
diff --git a/meta-xilinx-core/conf/machine/zynq-generic.conf b/meta-xilinx-core/conf/machine/zynq-generic.conf
index c79db9f0..a4e6e725 100644
--- a/meta-xilinx-core/conf/machine/zynq-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynq-generic.conf
@@ -1,6 +1,6 @@
1#@TYPE: Machine 1#@TYPE: Machine
2#@NAME: Generic Zynq 2#@NAME: zynq-generic
3#@DESCRIPTION: Generic Zynq Device 3#@DESCRIPTION: Machine configuration for the zynq-generic devices
4 4
5# Deprecated board config 5# Deprecated board config
6USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}" 6USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
@@ -11,39 +11,71 @@ unset USE_BOARD
11MACHINEOVERRIDES =. "${@['', 'zynq-generic:']['zynq-generic' != '${MACHINE}']}" 11MACHINEOVERRIDES =. "${@['', 'zynq-generic:']['zynq-generic' != '${MACHINE}']}"
12#### Regular settings follow 12#### Regular settings follow
13 13
14require conf/machine/include/soc-zynq.inc 14# Variables that changes based on hw design or board specific requirement must be
15require conf/machine/include/machine-xilinx-default.inc 15# defined before calling the required inclusion file else pre-expansion value
16require conf/machine/include/machine-xilinx-qemu.inc 16# defined in local.conf without machine override will not be reflected.
17
18MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget"
19 17
20EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" 18# Yocto Zynq-7000 device-tree variables
19YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "ps7_uart_1"
20YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "PS7_DDR_0"
21DT_PADDING_SIZE:pn-device-tree ?= "0x1000"
22DTC_FLAGS:pn-device-tree = "-@"
23YAML_DT_BOARD_FLAGS ?= "{BOARD zc702}"
21 24
25# Yocto Zynq-7000 u-boot-xlnx variables
22UBOOT_MACHINE ?= "xilinx_zynq_virt_defconfig" 26UBOOT_MACHINE ?= "xilinx_zynq_virt_defconfig"
23BOOTMODE ?= "generic.root" 27BOOTMODE ?= "generic.root"
24 28
29# Yocto Zynq-7000 FSBL variables
30YAML_SERIAL_CONSOLE_STDIN:pn-fsbl-firmware ?= "ps7_uart_1"
31YAML_SERIAL_CONSOLE_STDOUT:pn-fsbl-firmware ?= "ps7_uart_1"
32
33# Yocto KERNEL Variables
34UBOOT_ENTRYPOINT ?= "0x200000"
35UBOOT_LOADADDRESS ?= "0x200000"
36KERNEL_EXTRA_ARGS += "UIMAGE_LOADADDR=${UBOOT_ENTRYPOINT}"
37
38# Zynq-7000 Serial Console settings
25SERIAL_CONSOLES ?= "115200;ttyPS0" 39SERIAL_CONSOLES ?= "115200;ttyPS0"
40SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
41YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200"
42
43require conf/machine/include/soc-zynq.inc
44require conf/machine/include/machine-xilinx-default.inc
45require conf/machine/include/machine-xilinx-qemu.inc
46
47# zynq-generic.conf uses zc702-zynq7 xsa as reference input.
48# User can override with custom xsa using HDF_BASE and HDF_PATH variables from
49# local.conf.
50HDF_MACHINE = "zc702-zynq7"
51
52MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget"
26 53
27MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" 54MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree"
28 55
29EXTRA_IMAGEDEPENDS += " \ 56EXTRA_IMAGEDEPENDS += " \
30 virtual/boot-bin \ 57 libyaml-native \
31 virtual/fsbl \ 58 python3-cython-native \
32 virtual/bootloader \ 59 python3-pyyaml-native \
33 u-boot-xlnx-scr \ 60 virtual/fsbl \
34 " 61 virtual/boot-bin \
62 virtual/bootloader \
63 u-boot-xlnx-scr \
64 "
35 65
36IMAGE_BOOT_FILES += " \ 66IMAGE_BOOT_FILES += " \
37 boot.bin \ 67 boot.bin \
38 ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ 68 ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \
39 boot.scr \ 69 boot.scr \
40 " 70 uImage \
71 "
41 72
42HDF_MACHINE = "zc702-zynq7"
43IMAGE_CLASSES += "image-types-xilinx-qemu" 73IMAGE_CLASSES += "image-types-xilinx-qemu"
44# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies 74# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
45IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz'}" 75IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz'}"
46 76
77# Zynq-7000 QEMU Configurations
78# This machine has a QEMU model, runqemu setup:
47QB_MEM = "-m 1024" 79QB_MEM = "-m 1024"
48QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" 80QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@"
49 81