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/PROCESSOR-SDK-AM335X: HSR/PRP support

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: AM3352, AM3359,

Tool/software: Linux

Hi,

We currently have application running on the AM3352 Sitara series running a Linux Host and need to add the PRP functionality and looking at various options to implement the same. This is for substation automation industry.

I went through the training videos on : HSR and PRP Redundancy on RT Linux . There was a mention in Redundancy and Linux section in that the TI designs on PRP and HSR are currently working on TI-RTOS and TI will be working on updating those to Linux in the near future. Do you have a timeline for when this will be available , and also if this support will be available for AM3359 ?

I also did go through the training videos for PRP TI Design using PRU-ICSS. I wanted to know if TI has done any evaluation/comparison of PRP's LRE being implemented in PRU-ICSS as compared to LRE as part of the network stack in Linux. Any recommendation on which one is better wrt latency in processing of packets?

I am trying to make a decision on whether to update the processor to AM3359 so we have the option to implement the TI PRP in the PRU-ICSS or to go ahead and add the LRE network stack in the Linux kernel to our existing design. We currently use mainline Linux and will have to update it to RT-Linux for better deterministic latency.  

Thanks,

Prema

  • Part Number: PROCESSOR-SDK-AM335X

    Tool/software: Linux

    Hi,

    I am looking at adding PRP protocol to one of our existing devices and was looking at in the PRU-ICSS HSR PRP package for AM3359 processor.

    But the host on the ARM Cortex A8 is running Linux.

    Is the PRU-ICSS HSR PRP package supported on the Processor SDK for RT-Linux on AM3359? If not is there a way to modify or port the drivers from AM57x processors for the same?

    Thanks,

    Prema

  • Prema,

    We are currently working on this. We plan to enable it on the AM335x-ICE board. We are targeting this development for the Processor SDK for Linux targeted to be released around October of this year. These plans can change.

    It is possible to do it yourself, but there needs to be alignment between the Linux drivers and the PRU F/W, so it can get pretty involved.

    RT Linux is recommended and that is what we will validate. It should provide the lowest average latencies.

    You will also see the best latency when using the LRE in the PRU. Although, depending on your needs, both may be acceptable. You could try the kernel today as the HSR/PRP kernel work was upstreamed a while back I believe. If it meets your needs, you could avoid switching devices.

    I hope this addresses your questions. Thanks for the post.

  • Thank you Ron.

    There were some other HW limitations with the AM335x series wrt pin out combinations we can use, so we are looking at the next series up the AM57xx series.

    Wanted to confirm  the PRU-ICSS package for PRP currently does support Linux host on all AM57xx series ?

    Thanks for your help.

  • Yes, the LInux support should cover the whole family for AM57xx.

    Theoretically, any of the AM3, AM4, and AM5 devices should be able to implement this functionality and things like you've called our for pin muxing or other H/W limitations could be the deciding factor on what fits best for a given application. This is one of the strengths of the Sitara platform.
  • The PRU-ICSS HSR PRP package release notes , under system requirements mentions 1.0.4 release uses the PROCESSOR-SDK-RTOS 04_03_00_05. Sorry if I am asking the same question again, but wanted to make sure I am not missing anything here, the intention is to use the PRP LRE in the PRU-ICSS core with the host application on the A15 running Linux host.
    The PRU-ICSS HSR PRP package does contain APIs to interface with Linux host for AM57xx series right ?
    Can you please guide me to documents/training/examples if any on how to integrate the PRP in PRU-ICSS FW to an application host running Linux.

    Thanks again for your help
  • Prema,

    I'm sorry for the confusion. We offer PRP on both Linux and RTOS. Here is the Linux documentation and I hope it will make things clear.

    software-dl.ti.com/.../Industrial_Protocols_HSR_PRP.html
  • Thank you very much. Now it is clear, how the architecture is for Linux and what is offloaded to the PRU-ICSS.