On 5/12/21 2:30 AM, Michael Kleber wrote:
> Hi,
>
>
>
> I tried to build an image for a zybo-zynq7 board with yocto with xilinx meta.
>
> I used poky with the hardknott and the gatesgarth branch, both brings the
We have not yet updated hardknott or master. Gatesgarth should work in general.
But really there are only three machines (machines define kernel and userspace)
that we build and test (plus microbalze):
zynq-generic
zynqmp-generic
versal-generic
The other machines might or might not work, but I don't have access to them to
do any testing.
> following two error messages:
>
>
>
> ERROR: Nothing PROVIDES 'virtual/xilinx-platform-init' (but
> /home/avt/poky/meta/recipes-bsp/u-boot/u-boot_2020.07.bb DEPENDS on or
> otherwise
> requires it)
>
> platform-init PROVIDES virtual/xilinx-platform-init but was skipped:
> incompatible with machine zybo-zynq7 (not in COMPATIBLE_MACHINE)
>
You should be able to use zynq-generic to do your build, but of course that
won't have any board specific items. We're still working on defining 'BOARD'
specific items outside of the normal machine interfaces, but we don't have this
board to try it.
My recommendation is to try:
Change the file meta-xilinx-bsp/conf/machine/zybo-zynq7.conf to:
BOARD = 'zybo-zynq7'
MACHINE = 'zynq-generic'
require conf/machine/zynq-generic.conf
# u-boot configuration
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
UBOOT_MACHINE = "zynq_zybo_config"
SPL_BINARY ?= "spl/boot.bin"
UBOOT_ELF_zynq = "u-boot"
EXTRA_IMAGEDEPENDS += " \
u-boot-zynq-uenv \
virtual/boot-bin \
virtual/bootloader \
"
SERIAL_CONSOLE = "115200 ttyPS0"
KERNEL_DEVICETREE = "zynq-zybo.dtb"
IMAGE_BOOT_FILES += " \
boot.bin \
uEnv.txt \
"
You may have to adjust the above, but it's where I would start.
If that works for you, please let me know. I'd like to start moving gatesgarth
through master to this new format, but simply haven't had the time.
--Mark
>
> ERROR: Required build target 'core-image-minimal' has no buildable providers.
>
> Missing or unbuildable dependency chain was: ['core-image-minimal',
> 'u-boot-zynq-uenv', 'virtual/boot-bin', 'virtual/xilinx-platform-init']
>
>
>
> I read about a similar error in 2018 on the mailing list but I can’t do the
> solution because the files I must change do not exist.
>
>
>
> Also, the files in the first error message don´t exist.
>
>
>
> In my …/recipes-bsp/u-boot/ folder isn´t u-boot_2020.07.bb and
> ‘virtual/xilinx-platform-init’ I can´t found on the system.
>
> In the u-boot/ folder there is just a ‘u-boot-xlnx_2020.2.bb’.
>
>
>
> When I´m searching for ‘xiilinx-platform-init’ I will find one in the
> poky/meta-xilinx/meta-xilinx-bsp/classes/ folder with the full name
> ‘xilinx-platform-init.bbclass’
>
> Same in the /home/avt/source/meta-xilinx/meta-xilinx-bsp/ folder.
>
>
>
> These files define:
>
> PLATFORM_INIT_DIR = “usr/src/xilinx-platform-init“
>
> in the ../src/ folder, there isn´t the data too.
>
>
>
> I didn´t start looking for a solution for the second error message, maybe it
> will be done by solving the first error.
>
>
>
> How can I solve the problem?
>
>
>
> Best regards
>
> Michael Kleber
>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#4895):
https://lists.yoctoproject.org/g/meta-xilinx/message/4895
Mute This Topic: https://lists.yoctoproject.org/mt/82771182/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-