diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2022-12-24 22:00:00 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-01-06 10:58:21 -0800 |
commit | dfafee05cf7f936a0941240ca43dedc06e6e12cc (patch) | |
tree | e38aa83edabd4aeaab37121f0b71ef5d183e21ca /meta-xilinx-core/conf | |
parent | fdb3e6e167665315899e796e3a6eadc8e645f44b (diff) | |
download | meta-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.conf | 68 |
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 |
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,39 +11,71 @@ unset USE_BOARD | |||
11 | MACHINEOVERRIDES =. "${@['', 'zynq-generic:']['zynq-generic' != '${MACHINE}']}" | 11 | MACHINEOVERRIDES =. "${@['', 'zynq-generic:']['zynq-generic' != '${MACHINE}']}" |
12 | #### Regular settings follow | 12 | #### Regular settings follow |
13 | 13 | ||
14 | require conf/machine/include/soc-zynq.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 usbgadget" | ||
19 | 17 | ||
20 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" | 18 | # Yocto Zynq-7000 device-tree variables |
19 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "ps7_uart_1" | ||
20 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "PS7_DDR_0" | ||
21 | DT_PADDING_SIZE:pn-device-tree ?= "0x1000" | ||
22 | DTC_FLAGS:pn-device-tree = "-@" | ||
23 | YAML_DT_BOARD_FLAGS ?= "{BOARD zc702}" | ||
21 | 24 | ||
25 | # Yocto Zynq-7000 u-boot-xlnx variables | ||
22 | UBOOT_MACHINE ?= "xilinx_zynq_virt_defconfig" | 26 | UBOOT_MACHINE ?= "xilinx_zynq_virt_defconfig" |
23 | BOOTMODE ?= "generic.root" | 27 | BOOTMODE ?= "generic.root" |
24 | 28 | ||
29 | # Yocto Zynq-7000 FSBL variables | ||
30 | YAML_SERIAL_CONSOLE_STDIN:pn-fsbl-firmware ?= "ps7_uart_1" | ||
31 | YAML_SERIAL_CONSOLE_STDOUT:pn-fsbl-firmware ?= "ps7_uart_1" | ||
32 | |||
33 | # Yocto KERNEL Variables | ||
34 | UBOOT_ENTRYPOINT ?= "0x200000" | ||
35 | UBOOT_LOADADDRESS ?= "0x200000" | ||
36 | KERNEL_EXTRA_ARGS += "UIMAGE_LOADADDR=${UBOOT_ENTRYPOINT}" | ||
37 | |||
38 | # Zynq-7000 Serial Console settings | ||
25 | SERIAL_CONSOLES ?= "115200;ttyPS0" | 39 | SERIAL_CONSOLES ?= "115200;ttyPS0" |
40 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
41 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | ||
42 | |||
43 | require conf/machine/include/soc-zynq.inc | ||
44 | require conf/machine/include/machine-xilinx-default.inc | ||
45 | require 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. | ||
50 | HDF_MACHINE = "zc702-zynq7" | ||
51 | |||
52 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" | ||
26 | 53 | ||
27 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 54 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
28 | 55 | ||
29 | EXTRA_IMAGEDEPENDS += " \ | 56 | EXTRA_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 | ||
36 | IMAGE_BOOT_FILES += " \ | 66 | IMAGE_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 | ||
42 | HDF_MACHINE = "zc702-zynq7" | ||
43 | IMAGE_CLASSES += "image-types-xilinx-qemu" | 73 | IMAGE_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 |
45 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz'}" | 75 | IMAGE_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: | ||
47 | QB_MEM = "-m 1024" | 79 | QB_MEM = "-m 1024" |
48 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" | 80 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" |
49 | 81 | ||