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.

DSS, Linux and Docker containers

Hi all,

I'm working on getting the debugger to run (scripted) in a Docker container. Initial testing is with a controlCARD and the XDS100 debugger via USB. Here is what I've done so far:

  1. Made the /dev/ttyUSB0 device visible in the container and given it world read/write access
  2. Run the install script with following results:
root@f5e1e6f3e363:/# /opt/ti/ccsv6/install_scripts/install_drivers.sh
TI XDS100 installation completed successfully.  Some versions of Linux
require a reboot in order for the driver to function properly.  For other
versions restarting udev is sufficient.  Restarting udev now ... 
 * udev does not support containers, not started
 * udev does not support containers, not started
bh usb560 installation completed successfully.  Some versions of Linux
require a reboot in order for the driver to function properly.  For other
versions restarting udev is sufficient.  Restarting udev now ... 
 * udev does not support containers, not started
root@f5e1e6f3e363:/#

(Seems not too encouraging.)

  1. Run the ... diagnostic command
root@f5e1e6f3e363:/# /opt/ti/ccsv6/ccs_base/common/uscif/xds100serial
Scanning for XDS100 emulators...

Error #1 occurred while scanning for XDS100 emulators.

root@f5e1e6f3e363:/# 

Indicates a problem but not much more.

Is there any hope to get this running inside a Docker container? The environment is a fairly stripped down Ubuntu 14.04 LTS. My concern is that the Docker container does not provide sufficient USB support for this to work. Are there any possible alternatives? Is there a way to get more feedback on what is not working?

Are there other alternatives? I see that the XDS560 comes in an Ethernet variant. If that can be made to work over a network it should also work in a Docker container since networking is well supported in that environment. Eventually we will need to use a JTAG debugger anyway when we have our custom H/W.

Thanks!

  • Hi,

    Please apologize for the delay. I am not very knowledgeable about docker and have been searching around on the internet to try and find out about the integration of udev rules in a container environment, but so far I couldn't find anything conclusive.

    Therefore I am trying to create a docker container so I could reproduce this issue, although this may take a few days. 

    Regarding the use of Ethernet JTAG debug probes (XDS560v2, XDS220), these tend to be very agnostic with regards to the environment they are running and therefore your chances of success are higher. These debug probes require a CCS license - if you don't have one, it can be obtained at a great discount here.

    Regards,

    Rafael

  • Hi Rafael,

    I appreciate any help you can provide. We are fully licensed for CCS6. I have a license on my desktop and we have also installed a license file on our Linux build server so it seems that I'm using two licenses. Hopefully there will not be an issue with licensing the tools within a Docker container. So far there seems not to be as I can build and start the debugger. It seems to be complaining about not finding the device vs. checking the license.

    I am presently trying to get the folks who spend money to buy the XDS560 w/Ethernet. It's a bit more than I care to spend on my pwn. ;)

    thanks,

    hank

  • Hank,

    I am still working on this - I was out on Friday and I will resume work this week. A few comments:

    >>So far there seems not to be as I can build and start the debugger. It seems to be complaining about not finding the device vs. checking the license.
    So are you able to start the CCS debugger but unable to "talk" to the JTAG debugger or you are past that? The link below helps identify where the issue is exactly happening:
    processors.wiki.ti.com/.../Debugging_JTAG_Connectivity_Problems

    >> I am presently trying to get the folks who spend money to buy the XDS560 w/Ethernet. It's a bit more than I care to spend on my pwn. ;)
    A lower cost alternative is the XDS220:
    www.spectrumdigital.com/.../

    Regards,
    Rafael