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.

RTOS/AM5728: EMAC ports sharing

Part Number: AM5728

Tool/software: TI-RTOS

We are using Linux on ARM Cortex A15 and TI RTOS on C66x. Both Operating systems are communicating using IPC and it is working fine.

Our System needs a TCP/IP Communication from TI RTOS on C66x and from A15 Linux Operating System and we would like to ask the experts whether or not both Operating Systems could share the two ports of the GMAC unit?

Looking forward to your feedback.

  • Hi,

    The cpsw driver for Linux is not written to share access between Linux and the RTOS OS. Writing a packet interface for the IPC may be an option.

    The other suggestion might be to use the PRU ethernet interface as the network interface. You will have to change Linux from loading the PRU eth firmware to the DSP. This might be possible but the question to answer for you would be a data rate dependency and the cost of the additional hardware for the additional PHY and connector support.

    Best Regards,
    Schuyler
  • Hi,

    Here are 2 links to review on the running the RTOS on the C66x with a network stack and using the PRU eth ports.

    processors.wiki.ti.com/.../Processor_SDK_RTOS_ICSS-EMAC(DRIVER,FIRMWARE)

    Details of how the network stack builds on top of the ICSS EMAC interface is shown here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_NDK

    This is not a use case that TI currently supports, you will have to research if this proposal will work for your product requirements.

    Best Regards,
    Schuyler
  • Hello Schuyler,

    many thanks for your support. 

    we plan to go for the following Variant: 

    A15 with Linux Host will use ICSS EMAC and C66x with Ti RTOS will use the CPSW Switch for ethernet communication. 

    We plan to do the following steps to run A15 Linux host and TI RTOS on C66x with ethernet connection: 

    1- disable CPSW drivers in Linux

    2- build TI RTOS application with NDK Stack using CPSW 

    3- boot Linux and C66x with RTOS from remoteproc 

    4- Run C66x ethernet communication using CPSW 

    5- Enable Ethernet Communication on Linux using ICSS

    Hope this makes sense. 

    Regards,

    Wajdi

  • Hi Wajdi,

    So I guess it looks like you want the high speed ports on the C66x and the low speeds ports on the A15, that is a solution I have not seen before. I have to add the caveat here that TI has not tried this configuration to my knowledge. Since TI has not tried it doesn't mean it won't work it just means we may not be able to provide support with questions.

    Best Regards,
    Schuyler
  • Hi Schuyler,

    many thanks for your support.

    we can actually consider both solutions. We will go for the easiest was to get ethernet access from the DSP. if you tell us that accesssing slow ethernet from DSP has been tested so we will go for this possibility. 

    Was slow ethernet connection tested on beaglebone X15 evm? 

    In addition I have seen that Slow ethernet on Linux host was already tested by TI: 

    http://processors.wiki.ti.com/index.php/PRU-ICSS_Ethernet

    Best Regards,

    Wajdi