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.

OMAP3 EVM and Gigabit Ethernet

I do have a problem when the board is connected to a GigE switch. I get a connection, but it is not reliable. So the transfer time for 300kB are between 1.2s and 50ms.

I can solve the problem with the following commands:

"ifconfig eth0 down" and "ifconfig eth0 up" - but I can't use this workaround in a nfs-environment.

I checked the function calls (by debug option) while set up smsc while booting kernel and after the "ifconfig eth0 up" - they seems to be the same. Both come up with the message  "eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1"

So the only difference I can see is "ifconfig eth0 down", which issues

eth0: --> smc911x_close
smc911x: --> smc911x_shutdown

I integrated the close call into the open call, but with no better result.

Does someone has a good idea, what is causing this strange thing?

  • Steffens

    Can you provide more details such as

    1) output of "ifconfig eth0" - look for proper MAC address(should be unique), error counters etc : get a dump before and after

    2) PSP release version and OMAP3EVM Revision - i will try and reproduce the issue at my end

    3) Does a cable disconnect/reconnect also result in similar behavior(instead of ifconfig eth0 up/down)?

    Regards

    Sriram

  • Hello,

     MAC address and IP is uniqe in thesystem.

    I use a 2.6.28 kernel, but I did the same experience with the 1.1.6 uboot and 22 kernel from PSP.

    A cable disconnect / connect does NOT change that, only a ifconfig down / up!

     

    I do a image transfer via TCP: look at the long and different times:

    T send image: 1628.4 ms
    T send image: 496.1 ms
    T send image: 200.4 ms
    T send image: 42.2 ms
    T send image: 337.1 ms

    ...
    ifconfig eth0
    eth0      Link encap:Ethernet  HWaddr 00:11:22:33:43:55
              inet addr:192.168.90.202  Bcast:192.168.90.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:110 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1737 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:6998 (6.8 KiB)  TX bytes:2611618 (2.4 MiB)
              Interrupt:181 DMA chan:ff

    # ifconfig eth0 down
    # ifconfig eth0 up
    eth0: link down
    #eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

    # ifconfig eth0
    eth0      Link encap:Ethernet  HWaddr 000:11:22:33:43:55
              inet addr:192.168.90.202  Bcast:192.168.90.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:110 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1737 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:6998 (6.8 KiB)  TX bytes:2611618 (2.4 MiB)
              Interrupt:181 DMA chan:ff

    ....

    T send image: 51.4 ms
    T send image: 53.0 ms
    T send image: 53.1 ms
    T send image: 52.9 ms
    T send image: 53.0 ms
    T send image: 53.0 ms

    [root@SPV ]# ifconfig eth0
    eth0      Link encap:Ethernet  HWaddr 00:11:22:33:43:55
              inet addr:192.168.90.202  Bcast:192.168.90.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2807 errors:0 dropped:0 overruns:0 frame:0
              TX packets:7409 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:171076 (167.0 KiB)  TX bytes:11128906 (10.6 MiB)
              Interrupt:181 DMA chan:ff

    Best regards

    Arno