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.

Changes in HelloWorld (eth) to test 2nd ethernet port?

I have an electronics board populated with a C6678, and two ethernet ports.

The electronics is (for the ethernet part) designed as the 6678 EVM board, so I was trying the HelloWorld network example without modification. This works for one of the ports, and now I want to change the code to test the other port.

I'm using PDK 1.1.2.5 and noticed the in platform_init, which is called from HelloWorld, a call to Init_SGMII(1) is done. Is the portnum argument to the Init_SGMII pointing out the SGMII/SerDes pair so a change to configuring 0 instead of 1 should solve it? (I realise that Init_SGMII treats 0 and 1 a bit different, but I would lika an Init_SGMII that does for 0 what it does for 1, IF I'm an the right track, which I don't know...

 

  • Ok, I guess my firt post showed that I have a long way to go before I actually understand this.

    Desperately needing input, I'll try to ask questions that at least help me avoid looking for solutions in the wrong place.

    It seems that the NDK/networking stuff were a bit more complex than i anticipated, and the HelloWorld example uses libs/code in the PDK I was unaware of.

    Regarding my original question, "What to change to test the second ethernet port", would it be changes in the nimu_eth.c file that fixes that (connected to SGMII 0 instead of SGMII 1 which seems to be the case now)?

    /OH

  • Hi OH,

    You are absolutely correct. The Nimu_eth.c is written to accomodate only port1 and not port0. Check the link below

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/192039/691401.aspx#691401

    Also we have few more post that talks about it. Pleas search the e2e for C6678 using port0.

    Hope this helps.

    Thanks,

    Arun.

  • Hi

    Thanks for the response.

    Looking into the results from the search you proposed, I found this discussion, which proposes a simple solution for my problem

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/226969/801331.aspx#801331

    I still have a lot to learn and figure out regarding this, but I consider my imediate problem, to verify that the hardware is working, solved by being able to run the helloWorld and getting responses from either of my two ethernet ports.