diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2022-11-22 18:15:02 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2022-11-24 07:00:36 -0800 |
commit | a223160ed3b6dbe278862926b73c01176ce89bce (patch) | |
tree | 57eb40784f96f0651acde658fd1436c5b9b74692 | |
parent | 94aaaf2dd55f2aa09c46bdd8fdc04601015b3936 (diff) | |
download | meta-xilinx-a223160ed3b6dbe278862926b73c01176ce89bce.tar.gz |
microblaze-generic: Switch default machine to kcu105
1. Switch default machine from kc705 to kcu105.
2. Move YAML configs to microblaze-generic file with weak assignments.
3. Add bitstream, bootloader and u-boot-zynq-scr to EXTRA_IMAGEDEPENDS.
4. Use QB_KERNEL_CMDLINE_APPEND to pass bootargs to QEMU.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r-- | meta-xilinx-core/conf/machine/microblaze-generic.conf | 58 |
1 files changed, 46 insertions, 12 deletions
diff --git a/meta-xilinx-core/conf/machine/microblaze-generic.conf b/meta-xilinx-core/conf/machine/microblaze-generic.conf index 92412681..db38fb03 100644 --- a/meta-xilinx-core/conf/machine/microblaze-generic.conf +++ b/meta-xilinx-core/conf/machine/microblaze-generic.conf | |||
@@ -1,6 +1,6 @@ | |||
1 | #@TYPE: Machine | 1 | #@TYPE: Machine |
2 | #@NAME: microblaze-generic | 2 | #@NAME: microblaze-generic |
3 | #@DESCRIPTION: Generic microblaze defaults to little-endian v11.0 barrel-shift pattern-compare reorder divide-hard multiple-high support | 3 | #@DESCRIPTION: Machine configuration for the microblaze-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 ""}" |
@@ -27,32 +27,66 @@ MB_MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH'), d.getVar('TUNE_PKGARCH') + '-ge | |||
27 | 27 | ||
28 | MACHINE_ARCH = "${@['${MB_MACHINE_ARCH}', '${DEF_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" | 28 | MACHINE_ARCH = "${@['${MB_MACHINE_ARCH}', '${DEF_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" |
29 | 29 | ||
30 | # microblaze-generic.conf uses kcu105-microblazeel xsa as reference input. | ||
31 | # User can override with custom xsa using HDF_BASE and HDF_PATH variables from | ||
32 | # local.conf. | ||
33 | HDF_MACHINE = "kcu105-microblazeel" | ||
34 | |||
35 | # Yocto Microblaze FS-Boot variables | ||
36 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" | ||
37 | YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0" | ||
38 | YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "DDR4_0" | ||
39 | XSCTH_PROC:pn-fs-boot ?= "microblaze_0" | ||
40 | |||
41 | # Yocto Microblaze u-boot-xlnx variables | ||
42 | UBOOT_MACHINE ?= "microblaze-generic_defconfig" | ||
43 | UBOOT_INITIAL_ENV = "" | ||
44 | BOOTMODE ?= "generic.root" | ||
45 | |||
46 | # Yocto Microblaze device-tree variables | ||
47 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0" | ||
48 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "DDR4_0" | ||
49 | DT_PADDING_SIZE:pn-device-tree ?= "0x1000" | ||
50 | DTC_FLAGS:pn-device-tree ?= "" | ||
51 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" | ||
52 | YAML_DT_BOARD_FLAGS ?= "{BOARD kcu105}" | ||
53 | |||
54 | # Yocto Microblaze KERNEL Variables | ||
55 | UBOOT_ENTRYPOINT ?= "0x80000000" | ||
56 | UBOOT_LOADADDRESS ?= "0x80000000" | ||
57 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | ||
58 | |||
59 | # Microblaze Serial Console settings | ||
60 | SERIAL_CONSOLES ?= "115200;ttyUL0" | ||
61 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
62 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | ||
63 | |||
30 | MACHINE_FEATURES = "" | 64 | MACHINE_FEATURES = "" |
31 | 65 | ||
32 | KERNEL_IMAGETYPE ?= "linux.bin.ub" | 66 | KERNEL_IMAGETYPE ?= "linux.bin.ub" |
33 | KERNEL_IMAGETYPES = "" | 67 | KERNEL_IMAGETYPES = "" |
34 | 68 | ||
35 | SERIAL_CONSOLES ?= "115200;ttyUL0" | ||
36 | |||
37 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 69 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" |
38 | 70 | ||
39 | IMAGE_BOOT_FILES += " \ | 71 | IMAGE_BOOT_FILES += " \ |
40 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | 72 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ |
41 | " | 73 | " |
42 | 74 | ||
43 | EXTRA_IMAGEDEPENDS += "libyaml-native python3-cython-native python3-pyyaml-native" | 75 | EXTRA_IMAGEDEPENDS += " \ |
76 | libyaml-native \ | ||
77 | python3-cython-native \ | ||
78 | python3-pyyaml-native \ | ||
79 | virtual/bitstream \ | ||
80 | virtual/bootloader \ | ||
81 | virtual/elfrealloc \ | ||
82 | u-boot-zynq-scr \ | ||
83 | " | ||
44 | 84 | ||
45 | UBOOT_MACHINE ?= "microblaze-generic_defconfig" | ||
46 | UBOOT_INITIAL_ENV = "" | ||
47 | BOOTMODE ?= "generic.root" | ||
48 | |||
49 | HDF_MACHINE = "kc705-microblazeel" | ||
50 | IMAGE_FSTYPES += "cpio.gz" | 85 | IMAGE_FSTYPES += "cpio.gz" |
51 | 86 | ||
52 | QB_KERNEL_CMDLINE = "none" | 87 | # Microblaze QEMU Configurations |
53 | 88 | QB_KERNEL_CMDLINE_APPEND = "console=ttyUL0,115200 root=/dev/ram0 rw" | |
54 | QB_OPT_APPEND = "" | 89 | QB_OPT_APPEND = "" |
55 | |||
56 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" | 90 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" |
57 | 91 | ||
58 | #### No additional settings should be after the Postamble | 92 | #### No additional settings should be after the Postamble |