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.

DRA72XEVM: build-core-sdk.sh hangs on ti-ccsv6-native-6.1.3.00034-r0 do_unpack

Part Number: DRA72XEVM

I have a DRA7xx infotainment board and am trying to build the yocto filesystem ( ./build-core-sdk.sh dra7xx-evm ) as per instructions in 

processors.wiki.ti.com/.../Processor_SDK_Linux_Automotive_Software_Developers_Guide

Each attempt hangs indefinitely at:

Currently 1 running tasks (7120 of 7294):
0: ti-ccsv6-native-6.1.3.00034-r0 do_unpack (pid 12171)

Although I have manually installed CCSv6 and CCSv7, this doesn't seem to help me as the build-core-sdk.sh wants to install 6.1.3 anyway. Apparently there is a toolchain bundled with CCS, however I have also already downloaded and installed gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf, so I don't need that either.

What I need to do is compile/link a QT application I have written. I order to do that I need to supply qtcreator with a toolchain (which I  already have, linaro), a target-specific qmake (which I am hoping the build-core-sdk produces), and a sysroot (which I assume is the primary output from the build-core-sdk).

So, is there any way to disable the CCS recipe so the build-core-sdk can proceed? I am working on a Dell Precision 3510 running ubuntu 16.04. 

Also, is there any other gotchas that I should know about?

Thanks in advance,

John Alfredo

  • update: I have noticed that if I invoke "sudo ./ccs_setup_6.1.3.00034.bin" the license agreement GUI pops up in approx 4 seconds. If I invoke the installer w/o sudo the license agreement never appears. The CCS6.1.3.00034_linux.tar.gz was downloaded as my user, and all files are owned by me.
  • Hi John,

    do you have CCS6.1.3.00034_linux.tar.gz copied to tisdk/downloads directory and also created "tisdk/downloads/CCS6.1.3.00034_linux.tar.gz.done" file as described here:
    processors.wiki.ti.com/.../Processor_SDK_Linux_Automotive_Software_Developers_Guide

    Regards,
    Yordan
  • Hi Yordan,

    Yes, I have both the gz file and touched the done file in tisdk/downloads and in yocto-layers/downloads

    jalfredo@jalfredo-Precision-3510:/opt/TI$ ll tisdk/downloads/CC*
    -rw-rw-r-- 1 jalfredo jalfredo 769787155 Apr 25 13:39 tisdk/downloads/CCS6.1.3.00034_linux.tar.gz
    -rw-rw-r-- 1 jalfredo jalfredo 0 Apr 24 16:03 tisdk/downloads/CCS6.1.3.00034_linux.tar.gz.done

    The ./build-core-sdk.sh dra7xx-evm appears to run properly, executing tasks until only the CCS task remains but never completes.

    Currently 1 running tasks (7120 of 7294):
    0: ti-ccsv6-native-6.1.3.00034-r0 do_unpack (pid 12171)

    I manually unzipped the tar.gz into my ~/Downsloads and found that I can

    sudo ./ccs_setup_6.1.3.00034.bin

    and the license agreement GUI pops up, but if I try to invoke it as normal user it just hangs--no license agreement GUI. I tried to run build-core-skd.sh as root but it complained, saying bitbake should not be run as root.

    I see no missing runtime dependencies from ccs_setup_6.1.3.00034.bin

    jalfredo@jalfredo-Precision-3510:~/Downloads/CCS6.1.3.00034_linux$ ldd ./ccs_setup_6.1.3.00034.bin
    linux-gate.so.1 => (0xf7763000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf76c4000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf76bf000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7508000)
    /lib/ld-linux.so.2 (0xf773c000)

    Also, I see that a directory is created in /tmp/ccs_b29428b7-3f5d-4a29-44fb-1122751677b0/ and a bitrock_installer.log shows what looks like a bundled tcl interpreter being run from from a script. If I manually run the tclsh.sh it also hangs. If I manually sudo run the tclsh.sh the license agreement GUI pops up.

    Is the license agreement GUI supposed to popup during the build-core-sdk? How should the build-core-sdk proceed after it gets to the "ti-ccsv6-native-6.1.3.00034-r0 do_unpack"?

    Thanks for your help,

    John Alfredo

  • Update

    I started the build-core-sdk.sh again and after progressing to

    Currently 1 running tasks (1154 of 7422):
    0: ti-ccsv6-native-6.1.3.00034-r0 do_unpack (pid 26021)

    I attached strace to the ccs_setup_6.1.3.00034.bin process

    jalfredo 26021 26013 0 11:39 ? 00:00:00 python /opt/TI/ti-sdk-linux-automotive/yocto-layers/sources/bitbake/bin/b
    jalfredo 26025 26021 0 11:39 ? 00:00:05 ./CCS6.1.3.00034_linux/ccs_setup_6.1.3.00034.bin --mode unattended --pref

    sudo strace -p 26025

    and what I am seeing is continual select and read
    _newselect(0, NULL, NULL, NULL, {858993459200000, 858993459200000}) = 0 (Timeout)
    _newselect(0, 0x95554e4, 0x9555564, 0x95555e4, {0, 86035012740}) = 0 (Timeout)
    read(35, 0xadb8fc0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    _newselect(0, NULL, NULL, NULL, {858993459200000, 858993459200000}) = 0 (Timeout)
    _newselect(0, 0x95554e4, 0x9555564, 0x95555e4, {0, 86035012740}) = 0 (Timeout)
    read(35, 0xadb8fc0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    _newselect(0, NULL, NULL, NULL, {854698491904000, 854698491904000}) = 0 (Timeout)
    _newselect(0, 0x95554e4, 0x9555564, 0x95555e4, {0, 86035012740}) = 0 (Timeout)
    read(35, 0xadb8fc0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    _newselect(0, NULL, NULL, NULL, {854698491904000, 854698491904000}) = 0 (Timeout)
    _newselect(0, 0x95554e4, 0x9555564, 0x95555e4, {0, 86035012740}) = 0 (Timeout)
    read(35, 0xadb8fc0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    _newselect(0, NULL, NULL, NULL, {858993459200000, 858993459200000}) = 0 (Timeout)
    _newselect(0, 0x95554e4, 0x9555564, 0x95555e4, {0, 86035012740}) = 0 (Timeout)
    read(35, 0xadb8fc0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    _newselect(0, NULL, NULL, NULL, {858993459200000, 858993459200000}) = 0 (Timeout)
    _newselect(0, 0x95554e4, 0x9555564, 0x95555e4, {0, 86035012740}) = 0 (Timeout)
    read(35, 0xadb8fc0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
    _newselect(0, NULL, NULL, NULL, {858993459200000, 858993459200000}) = 0 (Timeout)

    So it looks like it is trying to get input from somewhere, but never getting it. Is there someway to fix this?

    Thanks in advance,
    John Alfredo
  • Hi John,

    I have forwarded the question to Yocto expert for help.

    Regards,
    Yordan
  • Hi Yordan,

    OK, however the problem appears to be with ccs_setup_6.1.3.00034.bin (Code Composer Studio from TI) hanging during build-core-sdk.sh. What I found was that ccs_setup_6.1.3.00034.bin hangs if run as a normal user, but appears to run properly if run as root via "sudo", however I can't run the build as root.

    I don't know who is responsible for Code Composer Studio, however it is a Texas Instruments package, so I wanted to mention it.

    Thanks for your help,

    John Alfredo

  • Hi John,

    We recently removed the dependency of the CCS with the SDK builds.
    Here are the links to the patches - note however that this is on morty and you can try to cherry-pick and check if it works fine for krogoth (Processor SDK Linux Automotive 3.02 is based on krogoth).

    1. git.yoctoproject.org/.../
    2. git.yoctoproject.org/.../
    3. git.yoctoproject.org/.../

    This approach might be a Solution #1 that I can think of, but we would still need to find out why this happens on your machine.

    Could you please try this and provide feedback?

    Regards
    Karthik