diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-08-17 15:09:17 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-08-25 08:40:04 -0600 |
commit | f0df9f73fb65d678ac87ff2cc24dd8e30a6a88ce (patch) | |
tree | a543c0a298375f283f9b430f540fab6bcf436b13 /meta-xilinx-core/conf | |
parent | 07e9984132049b8442a7b132b6581b2aad173531 (diff) | |
download | meta-xilinx-f0df9f73fb65d678ac87ff2cc24dd8e30a6a88ce.tar.gz |
meta-xilinx-core: Enable generic machine to be firmware-less
Generic machines no longer depend on firmware (ESW) components. Thus they
will now build a full Linux system, where possible, without XSCT or SDT
modes. (Default, if XILINX_WITH_ESW is set to xsct, still builds firmware.)
It is up to the specific machine.conf files to enable the correct build
flow and that will enable the necessary firmware dependencies for the SoC.
This also means HDF_MACHINES is no longer required. Set HDF_MACHINES = ""
to produce a firmware-less build.
Also correct QEMU settings so they can be overridden.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/conf')
8 files changed, 72 insertions, 75 deletions
diff --git a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc index 9284aa1f..5587d80c 100644 --- a/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc +++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-default.inc | |||
@@ -14,7 +14,7 @@ IMAGE_FSTYPES ?= "tar.gz cpio cpio.gz cpio.gz.u-boot" | |||
14 | PREFERRED_PROVIDER_virtual/kernel ??= "linux-xlnx" | 14 | PREFERRED_PROVIDER_virtual/kernel ??= "linux-xlnx" |
15 | 15 | ||
16 | # Device tree Configuration | 16 | # Device tree Configuration |
17 | PREFERRED_PROVIDER_virtual/dtb ??= "device-tree" | 17 | PREFERRED_PROVIDER_virtual/dtb ??= "${@'device-tree' if d.getVar('XILINX_WITH_ESW') else ''}" |
18 | 18 | ||
19 | # U-Boot Configuration | 19 | # U-Boot Configuration |
20 | PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-xlnx" | 20 | PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-xlnx" |
@@ -82,6 +82,17 @@ IMAGE_BOOT_FILES ?= "${@get_default_image_boot_files(d)}" | |||
82 | def get_default_image_boot_files(d): | 82 | def get_default_image_boot_files(d): |
83 | files = [] | 83 | files = [] |
84 | 84 | ||
85 | esw_type = d.getVar('XILINX_WITH_ESW') or '' | ||
86 | if esw_type: | ||
87 | if 'zynq' in d.getVar('OVERRIDES').split(':'): | ||
88 | files.append('boot.bin') | ||
89 | if 'zynqmp' in d.getVar('OVERRIDES').split(':'): | ||
90 | files.append('boot.bin') | ||
91 | if 'versal' in d.getVar('OVERRIDES').split(':'): | ||
92 | files.append('boot.bin') | ||
93 | if 'versal-net' in d.getVar('OVERRIDES').split(':'): | ||
94 | files.append('boot.bin') | ||
95 | |||
85 | # kernel images | 96 | # kernel images |
86 | kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split()) | 97 | kerneltypes = set((d.getVar("KERNEL_IMAGETYPE") or "").split()) |
87 | kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split()) | 98 | kerneltypes |= set((d.getVar("KERNEL_IMAGETYPES") or "").split()) |
@@ -95,6 +106,7 @@ def get_default_image_boot_files(d): | |||
95 | 106 | ||
96 | # device trees (device-tree only), these are first as they are likely desired over the kernel ones | 107 | # device trees (device-tree only), these are first as they are likely desired over the kernel ones |
97 | if "device-tree" in (d.getVar("PREFERRED_PROVIDER_virtual/dtb") or ""): | 108 | if "device-tree" in (d.getVar("PREFERRED_PROVIDER_virtual/dtb") or ""): |
109 | files.append("system.dtb") | ||
98 | files.append("devicetree/*.dtb;devicetree/") | 110 | files.append("devicetree/*.dtb;devicetree/") |
99 | files.append("devicetree/*.dtbo;devicetree/") | 111 | files.append("devicetree/*.dtbo;devicetree/") |
100 | 112 | ||
@@ -107,6 +119,34 @@ def get_default_image_boot_files(d): | |||
107 | 119 | ||
108 | return " ".join(files) | 120 | return " ".join(files) |
109 | 121 | ||
122 | EXTRA_IMAGEDEPENDS += "${@get_default_extra_imagedepends(d)}" | ||
123 | |||
124 | def get_default_extra_imagedepends(d): | ||
125 | depends = [] | ||
126 | |||
127 | # Add firmware dependencies | ||
128 | esw_type = d.getVar('XILINX_WITH_ESW') or '' | ||
129 | if esw_type: | ||
130 | depends.append('libyaml-native') | ||
131 | depends.append('python3-cython-native') | ||
132 | depends.append('python3-pyyaml-native') | ||
133 | if 'microblaze' in d.getVar('OVERRIDES').split(':'): | ||
134 | depends.append('virtual/bitstream') | ||
135 | if 'zynq' in d.getVar('OVERRIDES').split(':'): | ||
136 | depends.append('virtual/boot-bin') | ||
137 | if 'zynqmp' in d.getVar('OVERRIDES').split(':'): | ||
138 | depends.append('virtual/boot-bin') | ||
139 | if 'versal' in d.getVar('OVERRIDES').split(':'): | ||
140 | depends.append('virtual/boot-bin') | ||
141 | depends.append('virtual/cdo:do_deploy') | ||
142 | if 'versal-net' in d.getVar('OVERRIDES').split(':'): | ||
143 | depends.append('virtual/boot-bin') | ||
144 | depends.append('virtual/cdo:do_deploy') | ||
145 | |||
146 | return " ".join(depends) | ||
147 | |||
148 | |||
149 | |||
110 | XSERVER_EXT ?= "" | 150 | XSERVER_EXT ?= "" |
111 | 151 | ||
112 | FPGA_MNGR_RECONFIG_ENABLE ?= "1" | 152 | FPGA_MNGR_RECONFIG_ENABLE ?= "1" |
diff --git a/meta-xilinx-core/conf/machine/microblaze-generic.conf b/meta-xilinx-core/conf/machine/microblaze-generic.conf index 8fb40070..12f57a2c 100644 --- a/meta-xilinx-core/conf/machine/microblaze-generic.conf +++ b/meta-xilinx-core/conf/machine/microblaze-generic.conf | |||
@@ -70,17 +70,7 @@ MACHINE_FEATURES = "" | |||
70 | KERNEL_IMAGETYPE ?= "linux.bin.ub" | 70 | KERNEL_IMAGETYPE ?= "linux.bin.ub" |
71 | KERNEL_IMAGETYPES = "" | 71 | KERNEL_IMAGETYPES = "" |
72 | 72 | ||
73 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" | ||
74 | |||
75 | IMAGE_BOOT_FILES += " \ | ||
76 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | ||
77 | " | ||
78 | |||
79 | EXTRA_IMAGEDEPENDS += " \ | 73 | EXTRA_IMAGEDEPENDS += " \ |
80 | libyaml-native \ | ||
81 | python3-cython-native \ | ||
82 | python3-pyyaml-native \ | ||
83 | virtual/bitstream \ | ||
84 | virtual/bootloader \ | 74 | virtual/bootloader \ |
85 | virtual/elfrealloc \ | 75 | virtual/elfrealloc \ |
86 | u-boot-xlnx-scr \ | 76 | u-boot-xlnx-scr \ |
@@ -89,9 +79,9 @@ EXTRA_IMAGEDEPENDS += " \ | |||
89 | IMAGE_FSTYPES += "cpio.gz" | 79 | IMAGE_FSTYPES += "cpio.gz" |
90 | 80 | ||
91 | # Microblaze QEMU Configurations | 81 | # Microblaze QEMU Configurations |
92 | QB_MEM = "-m 2G" | 82 | QB_MEM ?= "-m 2G" |
93 | QB_KERNEL_CMDLINE_APPEND = "console=ttyUL0,115200 root=/dev/ram0 rw" | 83 | QB_KERNEL_CMDLINE_APPEND ?= "console=ttyUL0,115200 root=/dev/ram0 rw" |
94 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" | 84 | QB_NETWORK_DEVICE ?= "-net nic,netdev=net0,macaddr=@MAC@" |
95 | 85 | ||
96 | # This will work with the default runqemu, as the first serial port is the | 86 | # This will work with the default runqemu, as the first serial port is the |
97 | # correct console | 87 | # correct console |
@@ -99,7 +89,7 @@ QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" | |||
99 | # One total serial port defined in this model (according to the generated dts) | 89 | # One total serial port defined in this model (according to the generated dts) |
100 | # | 90 | # |
101 | # hw serial0 axi_uartlite_0 (40600000) - linux serial0 (ttyUL0) | 91 | # hw serial0 axi_uartlite_0 (40600000) - linux serial0 (ttyUL0) |
102 | QB_XILINX_SERIAL = "" | 92 | QB_XILINX_SERIAL ?= "" |
103 | 93 | ||
104 | #### No additional settings should be after the Postamble | 94 | #### No additional settings should be after the Postamble |
105 | #### Postamble | 95 | #### Postamble |
diff --git a/meta-xilinx-core/conf/machine/versal-ai-edge-generic.conf b/meta-xilinx-core/conf/machine/versal-ai-edge-generic.conf index 2b4f94d2..0d7f3223 100644 --- a/meta-xilinx-core/conf/machine/versal-ai-edge-generic.conf +++ b/meta-xilinx-core/conf/machine/versal-ai-edge-generic.conf | |||
@@ -8,9 +8,9 @@ MACHINE_FEATURES += "aie vdu" | |||
8 | 8 | ||
9 | # VEK280 board has 12GB memory only but default versal-generic has QB_MEM set to | 9 | # VEK280 board has 12GB memory only but default versal-generic has QB_MEM set to |
10 | # 8G, Hence we need set 12G in QB_MEM. | 10 | # 8G, Hence we need set 12G in QB_MEM. |
11 | QB_MEM = "-m 12G" | 11 | QB_MEM ?= "-m 12G" |
12 | 12 | ||
13 | QEMU_HW_DTB_PS = "${QEMU_HW_DTB_PATH}/board-versal-ps-vek280.dtb" | 13 | QEMU_HW_DTB_PS ?= "${QEMU_HW_DTB_PATH}/board-versal-ps-vek280.dtb" |
14 | 14 | ||
15 | #### No additional settings should be after the Postamble | 15 | #### No additional settings should be after the Postamble |
16 | #### Postamble | 16 | #### Postamble |
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf index 6365f569..67c145c4 100644 --- a/meta-xilinx-core/conf/machine/versal-generic.conf +++ b/meta-xilinx-core/conf/machine/versal-generic.conf | |||
@@ -46,41 +46,32 @@ HDF_MACHINE = "vck190-versal" | |||
46 | 46 | ||
47 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" | 47 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" |
48 | 48 | ||
49 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" | ||
50 | |||
51 | # Default SD image build onfiguration, use qemu-sd to pad | 49 | # Default SD image build onfiguration, use qemu-sd to pad |
52 | IMAGE_CLASSES += "image-types-xilinx-qemu" | 50 | IMAGE_CLASSES += "image-types-xilinx-qemu" |
53 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies | 51 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies |
54 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" | 52 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" |
55 | 53 | ||
56 | EXTRA_IMAGEDEPENDS += " \ | 54 | EXTRA_IMAGEDEPENDS += " \ |
57 | libyaml-native \ | ||
58 | python3-cython-native \ | ||
59 | python3-pyyaml-native \ | ||
60 | virtual/boot-bin \ | ||
61 | u-boot-xlnx-scr \ | 55 | u-boot-xlnx-scr \ |
62 | qemu-devicetrees:do_deploy \ | 56 | qemu-devicetrees:do_deploy \ |
63 | virtual/cdo:do_deploy \ | ||
64 | " | 57 | " |
65 | 58 | ||
66 | IMAGE_BOOT_FILES += " \ | 59 | IMAGE_BOOT_FILES += " \ |
67 | boot.bin \ | ||
68 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | ||
69 | Image \ | 60 | Image \ |
70 | boot.scr \ | 61 | boot.scr \ |
71 | " | 62 | " |
72 | 63 | ||
73 | # Versal QEMU Configurations | 64 | # Versal QEMU Configurations |
74 | # This machine has a QEMU model, runqemu setup: | 65 | # This machine has a QEMU model, runqemu setup: |
75 | QB_MEM = "-m 8G" | 66 | QB_MEM ?= "-m 8G" |
76 | QB_DEFAULT_KERNEL = "none" | 67 | QB_DEFAULT_KERNEL ?= "none" |
77 | # Iteration appears to be eth0 then eth1 | 68 | # Iteration appears to be eth0 then eth1 |
78 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@ -net nic" | 69 | QB_NETWORK_DEVICE ?= "-net nic,netdev=net0,macaddr=@MAC@ -net nic" |
79 | QB_KERNEL_CMDLINE_APPEND ?= "" | 70 | QB_KERNEL_CMDLINE_APPEND ?= "" |
80 | 71 | ||
81 | QEMU_HW_DTB_PATH = "${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch" | 72 | QEMU_HW_DTB_PATH ?= "${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch" |
82 | QEMU_HW_DTB_PS = "${QEMU_HW_DTB_PATH}/board-versal-ps-vck190.dtb" | 73 | QEMU_HW_DTB_PS ?= "${QEMU_HW_DTB_PATH}/board-versal-ps-vck190.dtb" |
83 | QEMU_HW_DTB_PMC = "${QEMU_HW_DTB_PATH}/board-versal-pmc-virt.dtb" | 74 | QEMU_HW_DTB_PMC ?= "${QEMU_HW_DTB_PATH}/board-versal-pmc-virt.dtb" |
84 | 75 | ||
85 | # Four total serial ports defined in this model (according to the dts) | 76 | # Four total serial ports defined in this model (according to the dts) |
86 | # | 77 | # |
@@ -89,7 +80,7 @@ QEMU_HW_DTB_PMC = "${QEMU_HW_DTB_PATH}/board-versal-pmc-virt.dtb" | |||
89 | # hw serial2 pl011 (ff000000) - linux serial0 (ttyAMA0) | 80 | # hw serial2 pl011 (ff000000) - linux serial0 (ttyAMA0) |
90 | # hw serial3 pl011 (ff010000) - linux serial1 (ttyAMA1) (disabled) | 81 | # hw serial3 pl011 (ff010000) - linux serial1 (ttyAMA1) (disabled) |
91 | # ? dcc ? - linux serial2 (????) | 82 | # ? dcc ? - linux serial2 (????) |
92 | QB_XILINX_SERIAL = "-serial null -serial null -serial mon:stdio -serial null" | 83 | QB_XILINX_SERIAL ?= "-serial null -serial null -serial mon:stdio -serial null" |
93 | 84 | ||
94 | QB_OSPI_FILE ??= "" | 85 | QB_OSPI_FILE ??= "" |
95 | 86 | ||
diff --git a/meta-xilinx-core/conf/machine/versal-hbm-generic.conf b/meta-xilinx-core/conf/machine/versal-hbm-generic.conf index 9fef78f3..805df7fc 100644 --- a/meta-xilinx-core/conf/machine/versal-hbm-generic.conf +++ b/meta-xilinx-core/conf/machine/versal-hbm-generic.conf | |||
@@ -6,9 +6,9 @@ require conf/machine/versal-generic.conf | |||
6 | 6 | ||
7 | # VHK158 has 32GB memory only but default versal-generic has QB_MEM set to 8G, | 7 | # VHK158 has 32GB memory only but default versal-generic has QB_MEM set to 8G, |
8 | # Since versal-vhk158-reva.dts has 32GB set, we need set same in QB_MEM | 8 | # Since versal-vhk158-reva.dts has 32GB set, we need set same in QB_MEM |
9 | QB_MEM = "-m 32G" | 9 | QB_MEM ?= "-m 32G" |
10 | 10 | ||
11 | QEMU_HW_DTB_PS = "${QEMU_HW_DTB_PATH}/board-versal-ps-vhk158.dtb" | 11 | QEMU_HW_DTB_PS ?= "${QEMU_HW_DTB_PATH}/board-versal-ps-vhk158.dtb" |
12 | 12 | ||
13 | #### No additional settings should be after the Postamble | 13 | #### No additional settings should be after the Postamble |
14 | #### Postamble | 14 | #### Postamble |
diff --git a/meta-xilinx-core/conf/machine/versal-net-generic.conf b/meta-xilinx-core/conf/machine/versal-net-generic.conf index a1b00074..160802cc 100644 --- a/meta-xilinx-core/conf/machine/versal-net-generic.conf +++ b/meta-xilinx-core/conf/machine/versal-net-generic.conf | |||
@@ -46,41 +46,32 @@ HDF_MACHINE = "versal-net-generic" | |||
46 | 46 | ||
47 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" | 47 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost" |
48 | 48 | ||
49 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" | ||
50 | |||
51 | # Default SD image build onfiguration, use qemu-sd to pad | 49 | # Default SD image build onfiguration, use qemu-sd to pad |
52 | IMAGE_CLASSES += "image-types-xilinx-qemu" | 50 | IMAGE_CLASSES += "image-types-xilinx-qemu" |
53 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies | 51 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies |
54 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" | 52 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot.qemu-sd-fatimg'}" |
55 | 53 | ||
56 | EXTRA_IMAGEDEPENDS += " \ | 54 | EXTRA_IMAGEDEPENDS += " \ |
57 | libyaml-native \ | ||
58 | python3-cython-native \ | ||
59 | python3-pyyaml-native \ | ||
60 | virtual/boot-bin \ | ||
61 | u-boot-xlnx-scr \ | 55 | u-boot-xlnx-scr \ |
62 | qemu-devicetrees:do_deploy \ | 56 | qemu-devicetrees:do_deploy \ |
63 | virtual/cdo:do_deploy \ | ||
64 | " | 57 | " |
65 | 58 | ||
66 | IMAGE_BOOT_FILES += " \ | 59 | IMAGE_BOOT_FILES += " \ |
67 | boot.bin \ | ||
68 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | ||
69 | Image \ | 60 | Image \ |
70 | boot.scr \ | 61 | boot.scr \ |
71 | " | 62 | " |
72 | 63 | ||
73 | # Versal QEMU Configurations | 64 | # Versal QEMU Configurations |
74 | # This machine has a QEMU model, runqemu setup: | 65 | # This machine has a QEMU model, runqemu setup: |
75 | QB_MEM = "-m 8G" | 66 | QB_MEM ?= "-m 8G" |
76 | QB_DEFAULT_KERNEL = "none" | 67 | QB_DEFAULT_KERNEL ?= "none" |
77 | # Iteration appears to be eth0 then eth1 | 68 | # Iteration appears to be eth0 then eth1 |
78 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@ -net nic" | 69 | QB_NETWORK_DEVICE ?= "-net nic,netdev=net0,macaddr=@MAC@ -net nic" |
79 | QB_KERNEL_CMDLINE_APPEND ?= "" | 70 | QB_KERNEL_CMDLINE_APPEND ?= "" |
80 | 71 | ||
81 | QEMU_HW_DTB_PATH = "${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch" | 72 | QEMU_HW_DTB_PATH ?= "${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch" |
82 | QEMU_HW_DTB_PS = "${QEMU_HW_DTB_PATH}/board-versal-net-psx-spp-1.4.dtb" | 73 | QEMU_HW_DTB_PS ?= "${QEMU_HW_DTB_PATH}/board-versal-net-psx-spp-1.4.dtb" |
83 | QEMU_HW_DTB_PMC = "${QEMU_HW_DTB_PATH}/board-versal-pmx-virt.dtb" | 74 | QEMU_HW_DTB_PMC ?= "${QEMU_HW_DTB_PATH}/board-versal-pmx-virt.dtb" |
84 | 75 | ||
85 | # Four total serial ports defined in this model (according to the dts) | 76 | # Four total serial ports defined in this model (according to the dts) |
86 | # | 77 | # |
@@ -88,7 +79,7 @@ QEMU_HW_DTB_PMC = "${QEMU_HW_DTB_PATH}/board-versal-pmx-virt.dtb" | |||
88 | # hw serial1 xps-uartlite (0xf0310000) - | 79 | # hw serial1 xps-uartlite (0xf0310000) - |
89 | # hw serial2 pl011 (0xf1920000) - linux serial0 (ttyAMA0) | 80 | # hw serial2 pl011 (0xf1920000) - linux serial0 (ttyAMA0) |
90 | # hw serial3 pl011 (0xf1930000) - linux serial1 (ttyAMA1) | 81 | # hw serial3 pl011 (0xf1930000) - linux serial1 (ttyAMA1) |
91 | QB_XILINX_SERIAL = "-serial null -serial null -serial mon:stdio -serial null" | 82 | QB_XILINX_SERIAL ?= "-serial null -serial null -serial mon:stdio -serial null" |
92 | 83 | ||
93 | QB_OSPI_FILE ??= "" | 84 | QB_OSPI_FILE ??= "" |
94 | 85 | ||
diff --git a/meta-xilinx-core/conf/machine/zynq-generic.conf b/meta-xilinx-core/conf/machine/zynq-generic.conf index 641e9d1f..f7eef778 100644 --- a/meta-xilinx-core/conf/machine/zynq-generic.conf +++ b/meta-xilinx-core/conf/machine/zynq-generic.conf | |||
@@ -45,18 +45,11 @@ HDF_MACHINE = "zc702-zynq7" | |||
45 | 45 | ||
46 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" | 46 | MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget" |
47 | 47 | ||
48 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" | ||
49 | |||
50 | EXTRA_IMAGEDEPENDS += " \ | 48 | EXTRA_IMAGEDEPENDS += " \ |
51 | libyaml-native \ | ||
52 | python3-cython-native \ | ||
53 | python3-pyyaml-native \ | ||
54 | u-boot-xlnx-scr \ | 49 | u-boot-xlnx-scr \ |
55 | " | 50 | " |
56 | 51 | ||
57 | IMAGE_BOOT_FILES += " \ | 52 | IMAGE_BOOT_FILES += " \ |
58 | boot.bin \ | ||
59 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | ||
60 | boot.scr \ | 53 | boot.scr \ |
61 | uImage \ | 54 | uImage \ |
62 | " | 55 | " |
@@ -67,10 +60,10 @@ IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' | |||
67 | 60 | ||
68 | # Zynq-7000 QEMU Configurations | 61 | # Zynq-7000 QEMU Configurations |
69 | # This machine has a QEMU model, runqemu setup: | 62 | # This machine has a QEMU model, runqemu setup: |
70 | QB_MEM = "-m 1024" | 63 | QB_MEM ?= "-m 1024" |
71 | QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" | 64 | QB_NETWORK_DEVICE ?= "-net nic,netdev=net0,macaddr=@MAC@" |
72 | 65 | ||
73 | QB_KERNEL_ROOT = "/dev/mmcblk0p2" | 66 | QB_KERNEL_ROOT ?= "/dev/mmcblk0p2" |
74 | 67 | ||
75 | # Side effect of not-enabled serial port is we have to lock | 68 | # Side effect of not-enabled serial port is we have to lock |
76 | # the second (console) to mon:stdio. | 69 | # the second (console) to mon:stdio. |
@@ -79,7 +72,7 @@ QB_KERNEL_ROOT = "/dev/mmcblk0p2" | |||
79 | # | 72 | # |
80 | # hw uart0 xuartps (e0000000) - | 73 | # hw uart0 xuartps (e0000000) - |
81 | # hw uart1 xuartps (e0001000) - linux serial0 (ttyPS0) | 74 | # hw uart1 xuartps (e0001000) - linux serial0 (ttyPS0) |
82 | QB_XILINX_SERIAL = "-serial null -serial mon:stdio" | 75 | QB_XILINX_SERIAL ?= "-serial null -serial mon:stdio" |
83 | 76 | ||
84 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) | 77 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) |
85 | QB_OPT_APPEND += " \ | 78 | QB_OPT_APPEND += " \ |
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf index afc1928b..a64e7348 100644 --- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf +++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf | |||
@@ -64,13 +64,7 @@ IMAGE_CLASSES += "image-types-xilinx-qemu" | |||
64 | # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies | 64 | # 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'}" | 65 | IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' else 'cpio.gz.u-boot'}" |
66 | 66 | ||
67 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" | ||
68 | |||
69 | EXTRA_IMAGEDEPENDS += " \ | 67 | EXTRA_IMAGEDEPENDS += " \ |
70 | libyaml-native \ | ||
71 | python3-cython-native \ | ||
72 | python3-pyyaml-native \ | ||
73 | virtual/boot-bin \ | ||
74 | virtual/bootloader \ | 68 | virtual/bootloader \ |
75 | qemu-devicetrees:do_deploy \ | 69 | qemu-devicetrees:do_deploy \ |
76 | u-boot-xlnx-uenv \ | 70 | u-boot-xlnx-uenv \ |
@@ -78,23 +72,21 @@ EXTRA_IMAGEDEPENDS += " \ | |||
78 | " | 72 | " |
79 | 73 | ||
80 | IMAGE_BOOT_FILES += " \ | 74 | IMAGE_BOOT_FILES += " \ |
81 | boot.bin \ | ||
82 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | ||
83 | boot.scr \ | 75 | boot.scr \ |
84 | Image \ | 76 | Image \ |
85 | " | 77 | " |
86 | 78 | ||
87 | # ZynqMP QEMU Configurations | 79 | # ZynqMP QEMU Configurations |
88 | # This machine has a QEMU model, runqemu setup: | 80 | # This machine has a QEMU model, runqemu setup: |
89 | QB_MEM = "-m 4096" | 81 | QB_MEM ?= "-m 4096" |
90 | # Iteration appears to be eth3, eth2, eth1, eth0 | 82 | # Iteration appears to be eth3, eth2, eth1, eth0 |
91 | QB_NETWORK_DEVICE = "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" | 83 | QB_NETWORK_DEVICE ?= "-net nic -net nic -net nic -net nic,netdev=net0,macaddr=@MAC@" |
92 | 84 | ||
93 | # Set variables for QEMU DTB PATH, PS DTB and PMU DTB for zynqmp_generic, this | 85 | # Set variables for QEMU DTB PATH, PS DTB and PMU DTB for zynqmp_generic, this |
94 | # allows user to use different QEMU HW DTB to match their board. | 86 | # allows user to use different QEMU HW DTB to match their board. |
95 | QEMU_HW_DTB_PATH = "${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch" | 87 | QEMU_HW_DTB_PATH ?= "${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch" |
96 | QEMU_HW_DTB_PS = "${QEMU_HW_DTB_PATH}/zcu102-arm.dtb" | 88 | QEMU_HW_DTB_PS ?= "${QEMU_HW_DTB_PATH}/zcu102-arm.dtb" |
97 | QEMU_HW_DTB_PMU = "${QEMU_HW_DTB_PATH}/zynqmp-pmu.dtb" | 89 | QEMU_HW_DTB_PMU ?= "${QEMU_HW_DTB_PATH}/zynqmp-pmu.dtb" |
98 | 90 | ||
99 | # Two total serial ports defined in this model (according to the dts) | 91 | # Two total serial ports defined in this model (according to the dts) |
100 | # | 92 | # |