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.

SK-AM62B-P1: first time building yocto error - oe_runmake failed

Part Number: SK-AM62B-P1
Other Parts Discussed in Thread: SK-AM62

first time building the yocto project for my board. i am running ubuntu 22.04. i am following the steps from:

https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_00_00_03/exports_AM62SIP/docs/linux/Overview_Building_the_SDK.html

i issue the commands:

./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-09.00.00-config.txt
cd build
. conf/setenv

MACHINE=am62xx_evm bitbake tisdk-core-bundle

and i am running into this error:

ERROR: mc:k3r5:gcc-cross-arm-11.3.0-r0 do_compile: oe_runmake failed
ERROR: mc:k3r5:gcc-cross-arm-11.3.0-r0 do_compile: ExecutionError('/home/michaeljacobson/ti-yocto-sdk/build/arago-tmp-default-glibc/work/x86_64-linux/gcc-cross-arm/11.3.0-r0/temp/run.do_compile.1421258', 1, None, None)
ERROR: Logfile of failure stored in: /home/michaeljacobson/ti-yocto-sdk/build/arago-tmp-default-glibc/work/x86_64-linux/gcc-cross-arm/11.3.0-r0/temp/log.do_compile.1421258

i am not an expert in yocto and after installing all the pre-required software and following the steps i was hoping this would just work. i am not really sure what to do about it. attached is the full log

  • and if you are wondering if i installed the dependencies:

    $ sudo apt-get -f -y install git build-essential diffstat texinfo gawk chrpath socat doxygen dos2unix python3 bison flex libssl-dev u-boot-tools mono-devel mono-complete curl python3-distutils repo pseudo python3-sphinx g++-multilib libc6-dev-i386 jq git-lfs pigz zstd liblz4-tool cpio file zstd lz4
    [sudo] password for michaeljacobson:
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    bison is already the newest version (2:3.8.2+dfsg-1build1).
    build-essential is already the newest version (12.9ubuntu3).
    cpio is already the newest version (2.13+dfsg-7).
    diffstat is already the newest version (1.64-1build2).
    flex is already the newest version (2.6.4-8build2).
    g++-multilib is already the newest version (4:11.2.0-1ubuntu1).
    jq is already the newest version (1.6-2.1ubuntu3).
    lz4 is already the newest version (1.9.3-2build2).
    python3-sphinx is already the newest version (4.3.2-1).
    socat is already the newest version (1.7.4.1-3ubuntu4).
    zstd is already the newest version (1.4.8+dfsg-3build1).
    chrpath is already the newest version (0.16-2).
    dos2unix is already the newest version (7.4.2-2).
    doxygen is already the newest version (1.9.1-2ubuntu2).
    liblz4-tool is already the newest version (1.9.3-2build2).
    mono-complete is already the newest version (6.8.0.105+dfsg-3.2).
    mono-devel is already the newest version (6.8.0.105+dfsg-3.2).
    pigz is already the newest version (2.6-1).
    pseudo is already the newest version (1.9.0+git20211111+300d7570720b-2).
    texinfo is already the newest version (6.8-4build1).
    repo is already the newest version (2.17.3-3).
    curl is already the newest version (7.81.0-1ubuntu1.14).
    file is already the newest version (1:5.41-3ubuntu0.1).
    gawk is already the newest version (1:5.1.0-1ubuntu0.1).
    git is already the newest version (1:2.34.1-1ubuntu1.10).
    libc6-dev-i386 is already the newest version (2.35-0ubuntu3.4).
    libssl-dev is already the newest version (3.0.2-0ubuntu1.12).
    python3 is already the newest version (3.10.6-1~22.04).
    python3-distutils is already the newest version (3.10.8-1~22.04).
    u-boot-tools is already the newest version (2022.01+dfsg-2ubuntu2.4).
    git-lfs is already the newest version (3.0.2-1ubuntu0.2).
    The following package was automatically installed and is no longer required:
    nvidia-firmware-535-server-535.104.12
    Use 'sudo apt autoremove' to remove it.
    0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.

  • i suppose i should also note i get a LOT of "Deferring" messages. this is a fraction of what i get at the very start of bitbake:

    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/meta-ti/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/meta-ti/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/meta-ti/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/meta-ti/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/gettext/gettext-minimal-native_0.21.bb:do_deploy_source_date_epoch after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/gettext/gettext-minimal-native_0.21.bb:do_deploy_source_date_epoch
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/gettext/gettext-minimal-native_0.21.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/gettext/gettext-minimal-native_0.21.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/gettext/gettext-minimal-native_0.21.bb:do_populate_sysroot after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/gettext/gettext-minimal-native_0.21.bb:do_populate_sysroot
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/systemd/systemd-systemctl-native.bb:do_deploy_source_date_epoch after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/systemd/systemd-systemctl-native.bb:do_deploy_source_date_epoch
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/systemd/systemd-systemctl-native.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/systemd/systemd-systemctl-native.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/systemd/systemd-systemctl-native.bb:do_populate_sysroot after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-core/systemd/systemd-systemctl-native.bb:do_populate_sysroot
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-runtime_11.3.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-runtime_11.3.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-source_11.3.bb:do_deploy_source_date_epoch after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/gcc/gcc-source_11.3.bb:do_deploy_source_date_epoch
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/gcc/libgcc-initial_11.3.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/gcc/libgcc-initial_11.3.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/gcc/libgcc_11.3.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/gcc/libgcc_11.3.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb:do_deploy_source_date_epoch after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb:do_deploy_source_date_epoch
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb:do_populate_sysroot after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb:do_populate_sysroot
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/m4/m4-native_1.4.19.bb:do_deploy_source_date_epoch after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/m4/m4-native_1.4.19.bb:do_deploy_source_date_epoch
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/m4/m4-native_1.4.19.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/m4/m4-native_1.4.19.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/m4/m4-native_1.4.19.bb:do_populate_sysroot after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/m4/m4-native_1.4.19.bb:do_populate_sysroot
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_deploy_source_date_epoch after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_deploy_source_date_epoch
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_deploy_source_date_epoch after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_deploy_source_date_epoch
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_populate_sysroot after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_populate_sysroot
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_deploy_source_date_epoch after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_deploy_source_date_epoch
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot
    NOTE: Deferring mc:k3r5:/home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_5.16.bb:do_populate_lic after /home/michaeljacobson/ti-yocto-sdk/sources/oe-core/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_5.16.bb:do_populate_lic
    NOTE: Deferring mc:k3r5:virtual:native:/home/michaeljacobson/ti-yocto-sdk/sources/meta-edgeai/recipes-devtools/python/python3-cython_0.29.30.bb:do_deploy_source_date_epoch after virtual:native:/home/michaeljacobson/ti-yocto-sdk/sources/meta-edgeai/recipes-devtools/python/python3-cython_0.29.30.bb:do_deploy_source_date_epoch

  • yet more information that might help which leads to a question:

    when i do -k in my bitbake command it starts building and then the terminal window i am building in will crash. i never get to see what causes it. is there a log i can look in to know what caused this fatal crash?

  • Hello,

    I recently spoke with Dean and he mentioned that you are trying to play video on the SK-AM62 EVM. My first question is what you are trying to build from Yocto?

    Regards,
    Krunal

  • regardless of why, i am still having this issue

    the history:

    we are trying to put together a demo for our exec team showing video running on the hardware platform we want to use, using videos we want to use to show them how nice this next product could be. 

    my first thought was so try to load Qt using Boot2Qt and start learning from an example product. the boot2Qt image that loads into the SD card does not boot. not even a U-Boot message

    so i tried using the default image form the SDK and just deploy the program on the board and run it using your SDK, and it is missing Qt libraries

    ok, so i am going to try to build the yocto image of the SDK and see if i can add the Qt libraries in a local config or recipe on one of the layers. nope, can't build the yocto image

  • Hi,

    Let's break the problem into smaller steps.

    Issue 1: Showcasing the demo

    Solution 1: Instead of Yocto and Boot2Qt, could you please use the ti default image? Here is step by step guide for playing video stream:

    Step 1a: Download and flash the latest image from here: https://dr-download.ti.com/software-development/software-development-kit-sdk/MD-PvdSyIiioq/09.00.00.03/tisdk-default-image-am62xx-evm.wic.xz 

    Step 1b: Plug HDMI cable to the SK EVM and insert the SD card

    Step 1c: Upon boot, you should see the TI Apps Launcher and type the following command to stop the demo: systemctl stop ti-apps-launcher and systemctl disable ti-apps-launcher

    Step 1d: Reboot

    Step 1e: Upon boot, you should just observe the grey (weston) screen. Now you can launch video play using following methods:

    Method 1: Gstreamer -> gst-launch-1.0 multifilesrc location=/usr/share/ti/video/TearOfSteel-Short-1280x540.h264 loop=true ! decodebin ! videoconvert ! v
    ideo/x-raw, format=NV12 ! waylandsink

    Method 2: Qt/QML -> Create QML file like following

    import QtQuick 2.15
    import QtQuick.Window 2.15
    import QtMultimedia 5.15
     
     
    Rectangle {
        color: "black"
        width: parent.width
        height: parent.height
     
     
        Video {
            anchors.fill: parent
            visible: true
            source: "gst-pipeline: multifilesrc location=/usr/share/ti/video/TearOfSteel-Short-1280x540.h264 loop=true ! decodebin ! videoconvert ! video/x-raw, format=NV
            autoPlay: true                                                                                               
        }                 
    }    
    

    Next launch using command: qmlscene <file_name>.qml

    Issue 2: Boot2Qt does not work. I recently had a call with Qt company and they did not account for the following: https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_00_00_03/exports/docs/linux/Foundational_Components_Migration_Guide.html?highlight=hsfs. The original stuff is using gp variant but newer boards has HSFS. They need to update their images.

    Issue 3: With regards to Yocto, did you select no for the following command "sudo dpkg-reconfigure dash"

    Regards,
    Krunal

  • MACHINE=am62xx_evm bitbake tisdk-core-bundle

    Note that the MACHINE needs to be set to am62xx-evm (there's a dash, not an underscore).

    Regards, Andreas

  • yeah it was a misprint, when i build iti use the dash

  • when i issue the command gst-launch i get invalid command so it's not installed it would seem. of course, this is when i close the project by hitting the x with a mouse.

    is that method for using Qt different than opening Qt, picking a demo, deploying it to my machine and running it? because last time i tried to do that Qt Multimedia library was not installed on the default image and i could not play video.

    yes i used dash and i answered no. i followed the steps outlined in the wiki

  • my bad i was using gst-launch not gst-launch-1.0, i was able to play a video (but no audio)

    is audio supposed to work?

  • Hello,

    Did you try to play that file back on your PC and see if it includes Audio? I believe it's just a video file and no audio contents. If you have a file with audio as well, you need to do the following:

    gst-launch-1.0 multifilesrc location=<file_name.mp4> loop=true ! qtdemux name=demux demux. ! queue ! avdec_aac ! audioconvert ! audiore
    sample ! alsasink demux. ! queue ! h264parse ! avdec_h264 ! videoconvert ! waylandsink

    Regards,
    Krunal

  • yes, the whole point of the video i am playing is that it has audio too

    when i run that command i get:

    WARNING: erroneous pipeline: no element "audiore"

    is it supposed to be "audioresample"?

  • yes, the whole point of the video i am playing is that it has audio too

    when i run that command i get:

    WARNING: erroneous pipeline: no element "audiore"

    is it supposed to be "audioresample"?

    it is, audio works now. it's quiet but it works

  • Yes, it's audioresample. For audio, you can set volume using amixer. For example, if you run amixer controls, you can review all the controllable settings. On EVM, the following command will set max volume "amixer cset numid=15 127".

    Regards,
    Krunal

  • super

    so how do i build the yocto without errors?