This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM437X: am437x-hs tisdk-rootfs-image target build issue

Part Number: PROCESSOR-SDK-AM437X

Hi,

We are working on th am437x-hs and trying to build tisdk-rootfs-image but there are some build errors as below:

ERROR: Nothing RPROVIDES 'uim' (but /home/veysel/veysel_workspace/trial/tisdk/sources/meta-arago/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb RDEPENDS on or otherwise requires it)
uim was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES)
NOTE: Runtime target 'uim' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['uim']
NOTE: Runtime target 'packagegroup-arago-tisdk-connectivity' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-arago-tisdk-connectivity', 'uim']
ERROR: Required build target 'tisdk-rootfs-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['tisdk-rootfs-image', 'packagegroup-arago-tisdk-connectivity', 'uim']

Summary: There were 4 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

We are using processor-sdk-06.03.00.106-config.txt  as layer configuration. We are able to build arago-base-tisdk-image but we can not build tisdk-rootfs-image.

Can you please help ?

Thanks in advance,

Veysel

  • Hi Veysel,

    let me set this up and see if I can re-create the issue. I haven't recently done a Yocto build on v6.x so it'll take a bit of time for the initial setup/run. Will report back here soon.

    Regards, Andreas

  • I'm have the build almost working (so not seeing your problem yet, there's some other issue I see related to my setup) but I wanted to provide a clue already anyways.

    It seems to be there is some confusion between the 'uim' (Open Source user input library) and the 'uim-sysfs' (TI Bluetooth SW) packages. It wasn't immediately clear to me why the connectivity package seems to require package 'uim', if anything it should require 'uim-sysfs'. I also see there were several changes around this in the Git history.

    As a quick test, can you try adding the 'uim-sysfs' package to the BT_TI definition inside meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb and see if that makes a difference?

    BT_TI = "\
        uim-sysfs \
        bt-enable \
        bt-fw \
    "

    Also just to confirm the obvious, did you try setting up a clean build from scratch?

    Regards, Andreas

  • Hi Andreas,

    I just removed "uim" from packagegroup-arago-tisdk-connectivity.bb and problem resolved, however there is another compilation failure occured, related with x11 as below:

    In file included from /home/veysel/veysel_workspace/trial/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/qtwebkit/5.11.3+gitAUTOINC+beaeeb9988-r0.arago6/recipe-sysroot/usr/include/EGL/egl.h:39,
    | from /home/veysel/veysel_workspace/trial/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/qtwebkit/5.11.3+gitAUTOINC+beaeeb9988-r0.arago6/git/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp:36:
    | /home/veysel/veysel_workspace/trial/tisdk/build/arago-tmp-external-arm-toolchain/work/armv7at2hf-neon-linux-gnueabi/qtwebkit/5.11.3+gitAUTOINC+beaeeb9988-r0.arago6/recipe-sysroot/usr/include/EGL/eglplatform.h:124:10: fatal error: X11/Xlib.h: No such file or directory
    | #include <X11/Xlib.h>
    | ^~~~~~~~~~~~
    | compilation terminated.

    Since we are not going to use sgx, I added below line to the build/conf/loca.conf file as mentioned in "Building the SDK -> Common variations" documentation in TI website:

    MACHINE_FEATURES_remove="sgx"

    Can you please help me to resolve this error ? 

    One extra question: We are going to use secure boot and curently I use MACHINE=am437x-evm. Do we need to use am437x-hs-evm as MACHINE parameter in order to build with secure boot option ?

    Thanks in advance,

    Veysel 

  • I just removed "uim" from packagegroup-arago-tisdk-connectivity.bb and problem resolved,

    It seems like something is incorrect with your setup. I setup everything from scratch here using ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-06.03.00.106-config.txt and my ./meta-arago/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity.bb recipe does NOT contain "uim". So it looks like somehow you setup an old version or things got mixed up. Please try to setup from scratch. This could well be related to all the issues you are seeing.

    We are going to use secure boot and curently I use MACHINE=am437x-evm. Do we need to use am437x-hs-evm as MACHINE parameter in order to build with secure boot option ?

    For AM437x HS you need to be building using MACHINE=am437x-hs-evm.

    Regards, Andreas

  • Hi Andreas,

    Thanks for the feedback, since we have some unexpected differences after running oe-layer-setup.sh, I am going to do all the process from scratch to align with you.

    However, arago-project.org is not accessible, I am getting unable to access while running "git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk"

    fatal: unable to connect to arago-project.org:
    arago-project.org[0: 184.73.161.183]: errno=Connection timed out

    Is there any problem related with arago-project.org, do you able to reach and do a proper clone ?

    Thanks,

    Veysel

  • Veysel,

    However, arago-project.org is not accessible, I am getting unable to access while running "git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk"

    fatal: unable to connect to arago-project.org:
    arago-project.org[0: 184.73.161.183]: errno=Connection timed out

    Is there any problem related with arago-project.org, do you able to reach and do a proper clone ?

    The use of this server has been discontinued for the oe-layersetup project. If you look at later SDK documentation like software-dl.ti.com/.../Overview_Building_the_SDK.html the git clone operation is now pointed to 

    so you need to use that new URL.

    Note that when 'resurrecting' an older config file like for v06.03 you will likely need to update other URLs part of the config file and some recipes as well. For example, the top level config file entry for 'meta-arago' layer should now point to 'meta-arago,git://git.yoctoproject.org/meta-arago' instead of 'meta-arago,git://arago-project.org/git/meta-arago.git'.

    Regards, Andreas

  • Hi Andreas,

    Thanks for your quick feedbacks.

    I successfully cloned the oe-layer project over git.ti.com, and did some modifications in processor-sdk-06.03.00.106-config.txt to replace arago-project URLs with git.ti as below:

    meta-processor-sdk,git://git.ti.com/processor-sdk/meta-processor-sdk.git

    meta-arago,git://git.ti.com/arago-project/meta-arago.git

    additionally, some of the recipes got the fetch index failure and I also updated the bb files of them from https://git.yoctoproject.org/

    recipes-connectivity/mobile-broadband-provider

    recipes-support/lz4

    recipes-support/iso-codes

    Build is now ongoing. I'll let you know once it finishes. But can you please confirm modifications that I've mentioned above ?

    Thanks in advance,

    Veysel

  • Hi Andreas,

    Unfortunately, build stopped with another error as below:

    ERROR: Logfile of failure stored in: /home/veysel/veysel_workspace/tisdk/build/arago-tmp-external-arm-toolchain/work/am437x_hs_evm-linux-gnueabi/linux-ti-staging/4.19.94+gitAUTOINC+be5389fd85-r3a.arago5.tisdk1.1/temp/log.do_assemble_fitimage.19908
    Log data follows:
    | DEBUG: Executing shell function do_assemble_fitimage
    | none
    | /home/veysel/veysel_workspace/tisdk/build/arago-tmp-external-arm-toolchain/work/am437x_hs_evm-linux-gnueabi/linux-ti-staging/4.19.94+gitAUTOINC+be5389fd85-r3a.arago5.tisdk1.1/temp/run.do_assemble_fitimage.19908: line 464: /am4x/scripts/secure-binary-image.sh: No such file or directory
    | WARNING: /home/veysel/veysel_workspace/tisdk/build/arago-tmp-external-arm-toolchain/work/am437x_hs_evm-linux-gnueabi/linux-ti-staging/4.19.94+gitAUTOINC+be5389fd85-r3a.arago5.tisdk1.1/temp/run.do_assemble_fitimage.19908:1 exit 127 from '${TI_SECURE_DEV_PKG_CAT}/am4x/scripts/secure-binary-image.sh $1 $2'
    | ERROR: Function failed: do_assemble_fitimage (log file is located at /home/veysel/veysel_workspace/tisdk/build/arago-tmp-external-arm-toolchain/work/am437x_hs_evm-linux-gnueabi/linux-ti-staging/4.19.94+gitAUTOINC+be5389fd85-r3a.arago5.tisdk1.1/temp/log.do_assemble_fitimage.19908)

    Looks like there is no file called secure-binary-image.sh. Can you please advice ?

    Thanks in advance,

    Veysel

  • meta-processor-sdk,git://git.ti.com/processor-sdk/meta-processor-sdk.git

    meta-arago,git://git.ti.com/arago-project/meta-arago.git

    additionally, some of the recipes got the fetch index failure and I also updated the bb files of them from https://git.yoctoproject.org/

    recipes-connectivity/mobile-broadband-provider

    recipes-support/lz4

    recipes-support/iso-codes

    Great, thanks for working through those issues and figuring them out.

    Regards, Andreas

  • Hi Veysel,

    your problems are likely because you have not correctly setup the secure device development package for AM437x HS development. There's a Processor SDK SECDEV Build and Install Guide document available for download from the secure SW server that contains the below step:

    $ export TI_SECURE_DEV_PKG=/home/xxxxx/test_area/proc-sdk-secdev

    This package is also what contains the script that you seem to be missing. Can you please double-check you followed the instruction in that Processor SDK SECDEV Build and Install Guide document.

    Thanks, Andreas

  • Hi Andreas,

    I followed the procedure from "Processor SDK SECDEV Build and Install Guide":

    Exported related environment variables, installed required Linaro GCC and successfully ran the "secure-binary-image.sh". As a result ppa_am43xx.bin created and I put it under pre-built-binaries directory. Then build of tisdk-rootfs-image completed successfully.

    Thanks for all your support, now I will move to flashing images into our custom board.

    Thanks in advance,

    Veysel