Trenz Electronic GmbH Support Forum

Trenz Electronic Products => UltraScale => Topic started by: martin on October 17, 2017, 07:52:57 AM

Title: TE0820: UBOOT_MACHINE for Yocto Project
Post by: martin on October 17, 2017, 07:52:57 AM
Currently I try to set up the TE0820 board with Yocto.
In the first step I used the predefined configurationof the ZCU102 Board (UBOOT_MACHINE = "xilinx_zynqmp_zcu102_revB_defconfig").
But now I want to switch to a own TE0820 configuration.

If I do that the u-boot-xlnx recipe give me weirded errors like "arch/arm/dts/zynqmp-ep108.dtb' failed"

Have you a predefined default configuration?

Thanks,
Martin
Title: Re: TE0820: UBOOT_MACHINE for Yocto Project
Post by: martin on October 17, 2017, 05:51:26 PM
The reason for the dtb failed is fixed. It was because the subfolder arch/arm/dts was a file instead of a folder.
The reason for that was the line in the u-boot-xlnx_%.bbappend file

wrong:

WORK_SHAREDIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-source/arch/arm64/boot/dts/${MACHINE}"
DTB_SHAREDIR = "${WORK_SHAREDIR}/${DEVICE_TREE}"

do_configure_prepend() {
    ...
    install -Dm 0644 ${DTB_SHAREDIR} ${DTB_BUILDFOLDER}
    ...


correct:

WORK_SHAREDIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-source/arch/arm64/boot/dts/${MACHINE}"
DTB_SHAREDIR = "${WORK_SHAREDIR}/${DEVICE_TREE}"

do_configure_prepend() {
    ...
    install -Dm 0644 ${DTB_SHAREDIR} ${DTB_BUILDFOLDER}/${DEVICE_TREE}
    ...


Anyway, it would be nice to get a predefined default configuration as the "xilinx_zynqmp_zcu102_revB_defconfig" for the ZCU102 evaluation board.
Title: Re: TE0820: UBOOT_MACHINE for Yocto Project
Post by: JH on October 18, 2017, 09:26:54 AM
Hi,

we use only petalinux. Template project with all settings is included into the reference project:
See subfolder /os/petalinux and:

17.2 update will be published in the next days.

br
John