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.

OpenMPI Using Point to Point Ethernet

Hi,

I've been working on K2H evm boards and I got the openMPI demo working. But so far I have to connect the 2 evms through a Ethernet router so that they can get DHCP IP addresses. I'm wondering is there a way that I cannot connect 2 evm boards directly through Ethernet without a router?

Thanks,

Shang

  • You can set up static IP address for each EVM and connect them diretcly via cross-over CAT-5 cable. Then try to ping each other. It should work. We tried this for the two XGE ports via direct connections and static IP.
    Regards, Eric
  • Hi Eric,

    I tried what you suggested but there're some problems here.

    What I did was:

    Connect the 2 evm boards with Ethernet cable to both eth0 ports.

    Set static IP addresses for each of the boards by setenv ipaddr 192.168.0.101 and setenv ipaddr 192.168.0.102 respectively,  setenv boot ubi since they're directly connected and there's no host NFS to boot up with, and then saveenv and boot.

    Try to ping each other with ip addresses, but both of them returned "ping: sendto: network is unreachable"

    And when I look at the Ethernet port the LEDs are orange instead of green as usual.

    Did I miss anything?

    Thanks,
    Shang

  • Actually I could get the point to point connection and static IP work. So I think now my problem comes down to this one:

    How can I use NFS while I try to connect them point to point?

    The reason I want to use NFS is that I want to run mpi programs, which seems to be only available on the NFS. So can I use another Ethernet port to boot/load from NFS and then connect them directly with another port?

    Thanks,
    Shang