diff options
| author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2023-01-12 15:33:01 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-01-13 23:31:51 -0600 |
| commit | ebed39133e24139ddad0d5d958c987fc36822f08 (patch) | |
| tree | a88873b30c2803261470cd8704c6c8a951f41559 /meta-xilinx-bsp | |
| parent | a4cffc264feba806fd5b310e8907dcd743f49649 (diff) | |
| download | meta-xilinx-ebed39133e24139ddad0d5d958c987fc36822f08.tar.gz | |
microblazeel: Update machine conf file using gen-machineconf tool
1. Update below microblazeel eval board machine conf file using
gen-machineconf tool by parsing respective xsa.
- ac701-microblazeel
- kc705-microblazeel
- kcu105-microblazeel
- vcu118-microblazeel
2. 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-bsp')
4 files changed, 92 insertions, 28 deletions
diff --git a/meta-xilinx-bsp/conf/machine/ac701-microblazeel.conf b/meta-xilinx-bsp/conf/machine/ac701-microblazeel.conf index 506f3071..88a0d7bb 100644 --- a/meta-xilinx-bsp/conf/machine/ac701-microblazeel.conf +++ b/meta-xilinx-bsp/conf/machine/ac701-microblazeel.conf | |||
| @@ -6,13 +6,9 @@ | |||
| 6 | MACHINEOVERRIDES =. "${@['', 'ac701-microblazeel:']['ac701-microblazeel' !='${MACHINE}']}" | 6 | MACHINEOVERRIDES =. "${@['', 'ac701-microblazeel:']['ac701-microblazeel' !='${MACHINE}']}" |
| 7 | #### Regular settings follow | 7 | #### Regular settings follow |
| 8 | 8 | ||
| 9 | # Required generic machine inclusion | 9 | # Variables that changes based on hw design or board specific requirement must be |
| 10 | require conf/machine/microblaze-generic.conf | 10 | # defined before calling the required inclusion file else pre-expansion value |
| 11 | 11 | # defined in microblazeel-generic.conf will be set. | |
| 12 | # This machine conf file uses ac701-microblazeel xsa as reference input. | ||
| 13 | # User can override with custom xsa using HDF_BASE and HDF_PATH variables from | ||
| 14 | # local.conf. | ||
| 15 | HDF_MACHINE = "ac701-microblazeel" | ||
| 16 | 12 | ||
| 17 | # Yocto AC701 FS-Boot variables | 13 | # Yocto AC701 FS-Boot variables |
| 18 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" | 14 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" |
| @@ -29,6 +25,18 @@ DTC_FLAGS:pn-device-tree ?= "" | |||
| 29 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" | 25 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" |
| 30 | YAML_DT_BOARD_FLAGS ?= "{BOARD ac701-full}" | 26 | YAML_DT_BOARD_FLAGS ?= "{BOARD ac701-full}" |
| 31 | 27 | ||
| 28 | # Set DDR Base address for u-boot-xlnx-scr variables | ||
| 29 | DDR_BASEADDR ?= "0x80000000" | ||
| 30 | SKIP_APPEND_BASEADDR ?= "0" | ||
| 31 | |||
| 32 | # Required generic machine inclusion | ||
| 33 | require conf/machine/microblaze-generic.conf | ||
| 34 | |||
| 35 | # This machine conf file uses ac701-microblazeel xsa as reference input. | ||
| 36 | # User can override with ac701 custom xsa using HDF_BASE and HDF_PATH variables | ||
| 37 | # from local.conf. | ||
| 38 | HDF_MACHINE = "ac701-microblazeel" | ||
| 39 | |||
| 32 | #### No additional settings should be after the Postamble | 40 | #### No additional settings should be after the Postamble |
| 33 | #### Postamble | 41 | #### Postamble |
| 34 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'ac701_microblazeel']['ac701-microblazeel' != '${MACHINE}']}" | 42 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'ac701_microblazeel']['ac701-microblazeel' != '${MACHINE}']}" |
diff --git a/meta-xilinx-bsp/conf/machine/kc705-microblazeel.conf b/meta-xilinx-bsp/conf/machine/kc705-microblazeel.conf index fa80b568..d312c07f 100644 --- a/meta-xilinx-bsp/conf/machine/kc705-microblazeel.conf +++ b/meta-xilinx-bsp/conf/machine/kc705-microblazeel.conf | |||
| @@ -1,14 +1,50 @@ | |||
| 1 | #@TYPE: Machine | 1 | #@TYPE: Machine |
| 2 | #@NAME: kc705-microblazeel | 2 | #@NAME: kc705-microblazeel |
| 3 | #@DESCRIPTION: Machine support for Xilinx KC705 Embedded Kit. | 3 | #@DESCRIPTION: Machine configuration for the KC705 evaluation board. |
| 4 | # | ||
| 5 | 4 | ||
| 6 | TUNE_FEATURES:tune-microblaze ?= "microblaze v11.0 barrel-shift reorder pattern-compare multiply-high divide-hard" | 5 | #### Preamble |
| 6 | MACHINEOVERRIDES =. "${@['', 'kc705-microblazeel:']['kc705-microblazeel' !='${MACHINE}']}" | ||
| 7 | #### Regular settings follow | ||
| 7 | 8 | ||
| 8 | require conf/machine/microblaze-generic.conf | 9 | # Variables that changes based on hw design or board specific requirement must be |
| 10 | # defined before calling the required inclusion file else pre-expansion value | ||
| 11 | # defined in microblazeel-generic.conf will be set. | ||
| 12 | |||
| 13 | # Yocto device-tree variables | ||
| 14 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0" | ||
| 15 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "MIG_7SERIES_0" | ||
| 16 | DT_PADDING_SIZE:pn-device-tree ?= "0x1000" | ||
| 17 | DTC_FLAGS:pn-device-tree ?= "" | ||
| 18 | XSCTH_PROC:microblaze:pn-device-tree ?= "microblaze_0" | ||
| 19 | YAML_DT_BOARD_FLAGS ?= "{BOARD template}" | ||
| 20 | |||
| 21 | # Yocto FS-Boot variables | ||
| 22 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" | ||
| 23 | YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0" | ||
| 24 | YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "MIG_7SERIES_0" | ||
| 25 | YAML_FLASH_MEMORY_CONFIG:pn-fs-boot ?= "axi_emc_0" | ||
| 26 | XSCTH_PROC:pn-fs-boot ?= "microblaze_0" | ||
| 27 | |||
| 28 | # Yocto KERNEL Variables | ||
| 29 | UBOOT_ENTRYPOINT ?= "0x80000000" | ||
| 30 | UBOOT_LOADADDRESS ?= "0x80000000" | ||
| 9 | 31 | ||
| 10 | USE_VT = "" | 32 | # Set DDR Base address for u-boot-xlnx-scr variables |
| 33 | DDR_BASEADDR ?= "0x80000000" | ||
| 34 | SKIP_APPEND_BASEADDR ?= "0" | ||
| 35 | |||
| 36 | # kc705-microblazeel Serial Console | ||
| 37 | SERIAL_CONSOLES ?= "115200;ttyUL0" | ||
| 38 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | ||
| 39 | |||
| 40 | # Required generic machine inclusion | ||
| 41 | require conf/machine/microblaze-generic.conf | ||
| 11 | 42 | ||
| 12 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 43 | # This machine conf file uses kc705-microblazeel xsa as reference input. |
| 44 | # User can override with kc705 custom xsa using HDF_BASE and HDF_PATH variables | ||
| 45 | # from local.conf. | ||
| 46 | HDF_MACHINE = "kc705-microblazeel" | ||
| 13 | 47 | ||
| 14 | EXTRA_IMAGEDEPENDS += "virtual/bitstream virtual/bootloader" | 48 | #### No additional settings should be after the Postamble |
| 49 | #### Postamble | ||
| 50 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'kc705_microblazeel']['kc705-microblazeel' != '${MACHINE}']}" | ||
diff --git a/meta-xilinx-bsp/conf/machine/kcu105-microblazeel.conf b/meta-xilinx-bsp/conf/machine/kcu105-microblazeel.conf index f7eb175f..3edf190e 100644 --- a/meta-xilinx-bsp/conf/machine/kcu105-microblazeel.conf +++ b/meta-xilinx-bsp/conf/machine/kcu105-microblazeel.conf | |||
| @@ -6,13 +6,9 @@ | |||
| 6 | MACHINEOVERRIDES =. "${@['', 'kcu105-microblazeel:']['kcu105-microblazeel' !='${MACHINE}']}" | 6 | MACHINEOVERRIDES =. "${@['', 'kcu105-microblazeel:']['kcu105-microblazeel' !='${MACHINE}']}" |
| 7 | #### Regular settings follow | 7 | #### Regular settings follow |
| 8 | 8 | ||
| 9 | # Required generic machine inclusion | 9 | # Variables that changes based on hw design or board specific requirement must be |
| 10 | require conf/machine/microblaze-generic.conf | 10 | # defined before calling the required inclusion file else pre-expansion value |
| 11 | 11 | # defined in microblazeel-generic.conf will be set. | |
| 12 | # This machine conf file uses kcu105-microblazeel xsa as reference input. | ||
| 13 | # User can override with custom xsa using HDF_BASE and HDF_PATH variables from | ||
| 14 | # local.conf. | ||
| 15 | HDF_MACHINE = "kcu105-microblazeel" | ||
| 16 | 12 | ||
| 17 | # Yocto KCU105 FS-Boot variables | 13 | # Yocto KCU105 FS-Boot variables |
| 18 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" | 14 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" |
| @@ -29,6 +25,18 @@ DTC_FLAGS:pn-device-tree ?= "" | |||
| 29 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" | 25 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" |
| 30 | YAML_DT_BOARD_FLAGS ?= "{BOARD kcu105}" | 26 | YAML_DT_BOARD_FLAGS ?= "{BOARD kcu105}" |
| 31 | 27 | ||
| 28 | # Set DDR Base address for u-boot-xlnx-scr variables | ||
| 29 | DDR_BASEADDR ?= "0x80000000" | ||
| 30 | SKIP_APPEND_BASEADDR ?= "0" | ||
| 31 | |||
| 32 | # Required generic machine inclusion | ||
| 33 | require conf/machine/microblaze-generic.conf | ||
| 34 | |||
| 35 | # This machine conf file uses kcu105-microblazeel xsa as reference input. | ||
| 36 | # User can override with kcu105 custom xsa using HDF_BASE and HDF_PATH variables | ||
| 37 | # from local.conf. | ||
| 38 | HDF_MACHINE = "kcu105-microblazeel" | ||
| 39 | |||
| 32 | #### No additional settings should be after the Postamble | 40 | #### No additional settings should be after the Postamble |
| 33 | #### Postamble | 41 | #### Postamble |
| 34 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'kcu105_microblazeel']['kcu105-microblazeel' != '${MACHINE}']}" | 42 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'kcu105_microblazeel']['kcu105-microblazeel' != '${MACHINE}']}" |
diff --git a/meta-xilinx-bsp/conf/machine/vcu118-microblazeel.conf b/meta-xilinx-bsp/conf/machine/vcu118-microblazeel.conf index 43355542..ada52ceb 100644 --- a/meta-xilinx-bsp/conf/machine/vcu118-microblazeel.conf +++ b/meta-xilinx-bsp/conf/machine/vcu118-microblazeel.conf | |||
| @@ -6,13 +6,9 @@ | |||
| 6 | MACHINEOVERRIDES =. "${@['', 'vcu118-microblazeel:']['vcu118-microblazeel' !='${MACHINE}']}" | 6 | MACHINEOVERRIDES =. "${@['', 'vcu118-microblazeel:']['vcu118-microblazeel' !='${MACHINE}']}" |
| 7 | #### Regular settings follow | 7 | #### Regular settings follow |
| 8 | 8 | ||
| 9 | # Required generic machine inclusion | 9 | # Variables that changes based on hw design or board specific requirement must be |
| 10 | require conf/machine/microblaze-generic.conf | 10 | # defined before calling the required inclusion file else pre-expansion value |
| 11 | 11 | # defined in microblazeel-generic.conf will be set. | |
| 12 | # This machine conf file uses vcu118-microblazeel xsa as reference input. | ||
| 13 | # User can override with custom xsa using HDF_BASE and HDF_PATH variables from | ||
| 14 | # local.conf. | ||
| 15 | HDF_MACHINE = "vcu118-microblazeel" | ||
| 16 | 12 | ||
| 17 | # Yocto VCU118 FS-Boot variables | 13 | # Yocto VCU118 FS-Boot variables |
| 18 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" | 14 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" |
| @@ -29,6 +25,22 @@ DTC_FLAGS:pn-device-tree ?= "" | |||
| 29 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" | 25 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" |
| 30 | YAML_DT_BOARD_FLAGS ?= "{BOARD vcu118-rev2.0}" | 26 | YAML_DT_BOARD_FLAGS ?= "{BOARD vcu118-rev2.0}" |
| 31 | 27 | ||
| 28 | # Yocto KERNEL Variables | ||
| 29 | UBOOT_ENTRYPOINT ?= "0x80000000" | ||
| 30 | UBOOT_LOADADDRESS ?= "0x80000000" | ||
| 31 | |||
| 32 | # Set DDR Base address for u-boot-xlnx-scr variables | ||
| 33 | DDR_BASEADDR ?= "0x80000000" | ||
| 34 | SKIP_APPEND_BASEADDR ?= "0" | ||
| 35 | |||
| 36 | # Required generic machine inclusion | ||
| 37 | require conf/machine/microblaze-generic.conf | ||
| 38 | |||
| 39 | # This machine conf file uses vcu118-microblazeel xsa as reference input. | ||
| 40 | # User can override with vcu118 custom xsa using HDF_BASE and HDF_PATH variables | ||
| 41 | # from local.conf. | ||
| 42 | HDF_MACHINE = "vcu118-microblazeel" | ||
| 43 | |||
| 32 | #### No additional settings should be after the Postamble | 44 | #### No additional settings should be after the Postamble |
| 33 | #### Postamble | 45 | #### Postamble |
| 34 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'vcu118_microblazeel']['vcu118-microblazeel' != '${MACHINE}']}" | 46 | PACKAGE_EXTRA_ARCHS:append = "${@['', 'vcu118_microblazeel']['vcu118-microblazeel' != '${MACHINE}']}" |
