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.

DM3730 EVM ethernet problem

Other Parts Discussed in Thread: DM3730

Hi,

    I'm using DM3730 evaluation module with SD card built with mksdboot.sh in DVSDK 4.03.00.06.

However, the ethernet (eth0) is not working when linux is booted.

I have checked the boot log which shows "Sending discover ..." from udhcp multiple times and cannot get IP from my router.

The router works perfectly with my laptop. However, the DM3730 EVM cannot get IP from it even with static IP configuration.

Any idea? Thanks.

  • Hi Hsiao,

    Could you execute ifconfig -a command before configuring network on your board?

    Could you write how you configure your network interface step by step? This will be useful for me to reproduce and analyze the issue.

    BR

    Tsvetolin Shulev

  • Hi Shulev,

    I can use ifconfig -a right after the system is booted. Here's the message.

    >>-----------------------------------------------------------------<<
    root@dm37x-evm:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 00:50:C2:7E:96:A5
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:1770 (1.7 KiB)
              Interrupt:80

    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    usb0      Link encap:Ethernet  HWaddr 1E:35:1F:2C:C1:45
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    >>-----------------------------------------------------------------<<

    And then, I tried to use udhcpc and reset eth0 to get dynamic IP from my router

    root@dm37x-evm:~# udhcpc eth0
    udhcpc (v1.13.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    Sending discover... <it keeps going and gets no IP from router>

    root@dm37x-evm:~# ifdown eth0
    root@dm37x-evm:~# ifup eth0
    [  568.661285] net eth0: SMSC911x/921x identified at 0xd0884000, IRQ: 336
    eth0      no wireless extensions.

    udhcpc (v1.13.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background

    >>-----------------------------------------------------------------<<

    I have also tried to configure the IP statically ..

    root@dm37x-evm:~# ifconfig eth0 192.168.2.99 netmask 255.255.255.0
    root@dm37x-evm:~# route add default gw 192.168.2.1

    None of above method works for me .. only the green LED keeps blinking while getting nothing from my router (TP-Link WR841ND).

    I have also checked the log of my router, it showed nothing.

    Any idea why @@? Thanks.

  • Hi Hsiao,

    I test the DHCP on my board dm3730 evm with DVSDK and it is working properly. The board gets an IP address via DHCP. My configuration scenario is different then your one. There are my steps:

    1) Open /etc/network/interfaces file and serch for the line:

    ......

    iface eth0 inet dhcp

    ......

    If it doesn't present add it.

    2) Then execute:

    root@dm37x-evm:~#ifup eth0
    net eth9: SMSC911x/921x identified at 0xd0860000, IRQ: 336
    udhcpc (v1.13.2) started
    Sending discover...
    Sending discover...
    Sending select for 192.168.1.10...
    Lease of 192.168.1.10 obtained, lease time 600
    adding dns 192.168.1.1
    adding dns 192.168.1.2

    At this moment we have an IP address obtained via DHCP.

    If you didn't succeed the get an IP address after this steps you could debug the problem by installing Wireshark analyzing program on your PC. Install dhcp3-server on the PC if it is not installed and configure it. There is a short tutorial:

    http://www.ubuntugeek.com/how-to-install-and-configure-dhcp-server-in-ubuntu-server.html

    Start the server. Connect the board to the PC by crossed cable. Start the Wireshark and execute on the boar:

    ifdown eth0 and ifup eth0

    You could observe the communication of DHCP packets between the board and the PC and you could analyze the problem.

    BR

    Tsvetolin Shulev