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.

Linux/TMDXIDK5728: root debugging

Part Number: TMDXIDK5728

Tool/software: Linux

Hi,

I was able to complete the IPC example via Linux SD card method. If I want a better understanding of what's happening in the code, how do I debug it or step through it, similar to how I would in CCS? How do I know what the code is actually doing?

Is there an index, glossary, or some examples of Linux root commands to use? Using "help" is not sufficient.

Thank you,

Alec

  • Hi, Alec,

    Please take a look at the section of System Integration in RTOS How-to guide, especially 10.2.4.3 for IPC Debugging Tools.
    software-dl.ti.com/.../index_how_to_guides.html

    Rex
  • Hi Rex,

    I'm still having some issues getting started with debugging techniques in the board root. Going through the Linux Getting Started Guide goes off on a tangent for other boards and boot methods that aren't relevant to the AM5728. Many of the steps provided are skipped when using the out-of-the-box SD card. A lot of the links in "What Would You Like to do Next?" are broken. 

    Finally, in section 3.3.4 there are some debugging techniques discussed for the root kernel system. This should be easier for new users to find and access. Additionally, I think Texas Instruments should provide a better development introduction for new Linux or RTOS users; that is in a concise location. A lot of the resources available are scattered across many different platforms (Training videos, SDK Documentation, etc) and require a central access point for users. While the current Getting Started Guide pages are an improvement upon the Wiki, there is still a lot of work to be done for the customer's ease of use. Sometimes even the customer doesn't know what they want to do, but that shouldn't stifle their ability to get started with the board. There are lots of examples available, the TI file system is massive; but I think there needs to be some remedy to translating this information to the end-user.

    10.2.4.3.2.2. Linux and Android - Debugfs

    Another useful place to look for debug info is in the debugfs. Information for each remote processor can be found there, as well as remote core traces, state information, and more.

    This is from the link you provided. How does one go about using debugfs?  

    Thank you,

    Alec

  • Hi, Alec,

    I see where you are coming from and admit that the documentation lacks the top level design overview and cascade it down to ease customer experience. We had started the task to see how we can reorganize the User Guide. We merged to 2 product lines which uses different OSs into one, and they leverage some functions from the other. IPC is one which was originally designed for DSP RTOS. So it's documentation is in RTOS page but applies to ARM Linux. Linux tried to fill the gap by adding examples, and how to guide, etc. It comes a long way and we always try to improve ti and thank you for your suggestions.

    For the debugfs, you can find more inf in 10.2.4.3.3.3.

    Rex
  • Rex Chang said:


    For the debugfs, you can find more inf in 10.2.4.3.3.3.

    Yes this section was helpful for the trace capability, but does not do much for the debugfs command/function. 

    Anyways, thanks for your help Rex. 

    Best regards,

    Alec

  • Hi Rex,
    In the future, if you find someone looking for an introduction to debugfs command, please refer them to this video:
    training.ti.com/debugging-embedded-linux-dynamic-debug
    It has helped me a lot in understanding the capabilities of this command.
    Thank you,
    Alec
  • Alec,

    Thanks for your input.

    Rex