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: Building tisdk-edgeai-image doesn't finish

Expert 7150 points
Part Number: PROCESSOR-SDK-AM62A

Hello Experts,

I'm building the tisdk-edgeai-image for PSDK Linux for AM62Ax (08_06_00_45). I follow https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM62AX/08_06_00_45/exports/docs/linux/Overview_Building_the_SDK.html

I executed "MACHINE=am62axx-evm bitbake -k tisdk-edgeai-image" command. But the following doesn't finish more than 12 hours.
0: qtbase-5.14.2+gitAUTOINC+3a6d8df521-r0.arago17 do_compile

I tried a few times but it is always same. Can you please give me how to finish the compile? Or should I wait more?

Best regards,
Ken

  • Hi Ken,

    I'm just kicked off a test build of the tisdk-edgeai-image image to confirm if I can re-create any issues.

    Also from talking to some of my colleagues they said such errors were observed in the past (in different scenarios) when the build machine was running out of RAM (or swap space), which can happen if too many parallel operations are requested for what the system can handle.

    1. You should check the size of the system swap memory, see below command (you can also use 'htop' to check it). On my system for example a swapfile is used (no partition) and the size is 2GB. Usually 2GB is a very small size and I'd not recommend running such a small swapfile size, but then my system also has 64GB of RAM which is plenty and swap is essentially never used. On systems with 16GB or 32GB RAM the swapfile size is often set to the same size of the RAM, e.g., to 16GB for systems with 16GB RAM, and 32GB for systems with 32GB RAM). This should be enough for most normal use cases.

      $ cat /proc/swaps
      Filename                                Type            Size            Used            Priority
      /swapfile                               file            2097148         229888          -2


      To increase the size of the swap area, see here:
      https://help.ubuntu.com/community/SwapFaq
      https://linux.how2shout.com/how-to-increase-swap-space-in-ubuntu-22-04-lts-jammy/


    2. Then, you can try reducing the number of parallel tasks (BB_NUMBER_THREADS) and parallel threads per task (PARALLEL_MAKE) by activating/updating the respective settings in your conf/local.conf file. Try setting BB_NUMBER_THREADS to 1, and PARALLEL_MAKE to 4 to see if this helps.

      BB_NUMBER_THREADS = "1"
      PARALLEL_MAKE = "-j 4"


    Regards, Andreas

  • Also, my clean test build based on configs/processor-sdk/processor-sdk-08.06.00-config.txt using MACHINE=am62axx-evm bitbake -k tisdk-edgeai-image just finished had no issues going through the entire build process.

    Regards, Andreas