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-AM62A: arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu not found when building QNX SDK 10.0

Part Number: PROCESSOR-SDK-AM62A
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

I am getting an error when running 'make sdk':

~/am62a-10.0_qnx/psdk_qnx_auto_j7/sdk_builder$ make sdk -j5
ERROR: /home/user/ti/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu not found !!!

Is this toolchain something we are expected to install manually, or is there a step I am missing?

I followed the instructions in the Getting Started section from the QNX SDK to run psdk_qnx_setup_qnx800_am62a.sh and setup_psdk_additions_am62a.sh

But I do not see them install this toolchain.

Best regards,

Vincent

  • Hi Vincent,

    These arm-gnu toolchains can be installed by running the following script:

    cd $WORKAREA
    ./sdk_builder/scripts/setup_psdk_rtos.sh --skip_linux

    Please make sure to use the --skip_linux option above.

    Seems we missed updating this script usage is the PSDK docs, we will correct it.

    In case you see error related to sysconfig missing, you can download it from https://www.ti.com/tool/download/SYSCONFIG/1.20.0.3587

    Regards,

    Shiva

  • Thanks Shiva, running the script does allow me to move further.

    Now when I run make qnx_fs_install_sd, I get the following errors regarding files not found:

            cp -r /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/vision_apps/apps/basic_demos/app_linux_fs_files/*.txt /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/psdkqa/qnxfs//vision_apps
            cp: cannot stat '/home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/vision_apps/apps/basic_demos/app_linux_fs_files/*.txt': No such file or directory
            make: [makerules/makefile_qnx.mak:58: qnx_fs_install] Error 1 (ignored)
    
            Install EdgeAI Utils, Kernels and Tiovx Apps to EDGEAI_INSTALL_PATH
            if [ -d /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/edgeai/QNX ]; then \
    	        mkdir -p /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/psdkqa/qnxfs//edgeai; \
    	        cp -rL /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/targetfs//opt/edgeai-test-data /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/psdkqa/qnxfs//edgeai; \
    	        cp -rL /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/targetfs//opt/imaging /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/psdkqa/qnxfs//edgeai; \
    	        cp -rL /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/edgeai/QNX/usr/bin /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/psdkqa/qnxfs//edgeai; \
    	        cp -rL /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/edgeai/QNX/usr/lib/* /home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/psdkqa/qnxfs//tilib; \
            else \
    	        echo edgeai not built yet, skipping install; \
            fi;
            cp: cannot stat '/home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/targetfs//opt/edgeai-test-data': No such file or directory
            cp: cannot stat '/home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/targetfs//opt/imaging': No such file or directory
            cp: cannot stat '/home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/edgeai/QNX/usr/bin': No such file or directory
            make[1]: Leaving directory '/home/vincent/am62a-10.0_qnx/psdk_qnx_auto_j7/sdk_builder'

    Is this expected or is there another step I am missing? Also, when I run ./run_app_tidl.sh, the app runs for the most part, but I do see non-fatal errors such as the following:

    During startup:
        36.158431 s: ISS: Init ... Done !!!
        36.291410 s:  VX_ZONE_ERROR:[tivx_utils_bmp_read:867] Failed to open file </ti_fs/vision_apps/test_data/tivx/tidl_models/ti_logo.bmp>.
        36.292754 s:  VX_ZONE_ERROR:[vxSetReferenceName:970] Invalid reference
    network file: /ti_fs/vision_apps/test_data/tivx/tidl_models/tidl_net_mobilenet_v1.bin
    config  file: /ti_fs/vision_apps/test_data/tivx/tidl_models/tidl_io_mobilenet_v1_1.bin
    
    
    During termination:
        97.601102 s:  VX_ZONE_ERROR:[ownReleaseReferenceInt:594] Invalid reference
        97.604505 s: APP: OpenVX Target kernel deinit ... !!!
        97.604603 s: APP: OpenVX Target kernel deinit ... Done !!!
        97.604659 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:120] De-Initialization Done for HOST !!!
        97.620169 s:  VX_ZONE_ERROR:[ownPosixObjectDeInit:302] Deiniting mutex at index: 10 failed
        97.620238 s:  VX_ZONE_INIT:[tivxDeInitLocal:206] De-Initialization Done !!!
        97.620294 s: APP ISS: Deinit ... Done !!!
    APP: Deinit ... !!!
        97.620854 s: REMOTE_SERVICE: Deinit ... !!!
        97.620962 s: REMOTE_SERVICE: Deinit ... Done !!!
    IPC: Deinit ... !!!
    IPC: Deinit ... Done !!!
    APP: Deinit ... Done !!!
    libkhronos: dlopen() err Library cannot be found, path: '/ti_fs/usr/lib/graphics/am62a/screen-sw.so'
    libkhronos: dlopen() err Library cannot be found, path: 'screen-sw.so'
    libkhronos: Ensure directory containing graphics libraries is appended to LD_LIBRARY_PATH envar.
    

    I did update psdkqa/qnx/bsp/images/am62a-evm-ti.build according to https://www.qnx.com/developers/articles/rel_7127_1.html to enable screen.

    Best regards,

    Vincent

  • Hi Shiva,

    Any thoughts regarding these errors? The dlopen() errors are strange because the file screen-sw.so is not located in '/ti_fs/usr/lib/graphics/am62a', yet even if I manually add the file to that directory the errors still show up. I just want to confirm whether these errors (along with the build errors regarding directories not found) are expected.

    Thanks,

    Vincent

  • Hi Vincent,

    Now when I run make qnx_fs_install_sd, I get the following errors regarding files not found:

    You can ignore these errors, these are expected. It's looking for some linux specific files which are not needed for QNX, we will cleanup this part in the next PSDK release.

    You can also ignore the errors related to :

        36.291410 s:  VX_ZONE_ERROR:[tivx_utils_bmp_read:867] Failed to open file </ti_fs/vision_apps/test_data/tivx/tidl_models/ti_logo.bmp>.
        36.292754 s:  VX_ZONE_ERROR:[vxSetReferenceName:970] Invalid reference

    However the dlopen errors are not expected.

    Have you downloaded the AM62A screen package from QNX software center ?

    Once the screen libraries and package is properly set in your workspace, the dlopen errors should not appear. With these errors you might not be able to use display with HDMI. These need to be fixed.

    Regards,

    Shiva

  • Hi Shiva,

    Thank you for your advice. I did install the screen package from the QNX software center:

    I have also appended the lines from the BSP Integration section in their release notes to psdkqa/qnx/bsp/images/am62a-evm-ti.build: https://www.qnx.com/developers/articles/rel_7127_1.html. I then reflashed the SD card:

    cd sdk_builder/
    make sdk -j5
    make qnx_fs_create_sd
    make qnx_fs_install_sd

    Is there anything else I need to do to install the screen package?

    Best regards,

    Vincent

  • Hi Vincent,

    Can we close this thread ? I hope the Screen Utility package you had mentioned in another E2E solved this issue.

    Regards,

    Shiva