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.

AM3358: Dual EMAC issue

Part Number: AM3358

Hi,

The customer connect one 100M (DP83848 (eth0)) network port and one 1000M (DP83867 (eth1))  network port by CPSW. The 100M network port can work normally. The 1000M port can be linked up, but cannot ping successfully. The device tree configuration as follows:

&mac {

pinctrl-names = "default", "sleep";

pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_sleep>;
status = "okay";
dual_emac = <1>;
};

&davinci_mdio {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&davinci_mdio_default>;
pinctrl-1 = <&davinci_mdio_sleep>;
status = "okay";
dp83867_0: ethernet-phy@3 {
reg = <3>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_1_75_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_1_75_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
ti,min-output-impedance;
ti,dp83867-rxctrl-strap-quirk;
};

dp83848_0: ethernet-phy@7 { 
reg = <7>;
};
};

&cpsw_emac0 {
phy_id = <&davinci_mdio>, <7>;
dual_emac_res_vlan = <1>;
phy-mode = "rmii";
};

&cpsw_emac1 {
phy_id = <&davinci_mdio>, <3>;
dual_emac_res_vlan = <2>;
phy-mode = "rgmii-id";
};

内核log如下

Configuring network interfaces...

[ 10.518385] net eth0: initializing cpsw version 1.12 (0)
[ 10.687456] NS DP83848C 10/100 Mbps PHY 4a101000.mdio:07: attached PHY driver [NS DP83848C 10/100 Mbps PHY] (mii_bus:phy_addr=4a101000.mdio:07, irq=POLL)
[ 10.701969] PHY_INTERFACE_MODE_RMII
[ 10.705494] gmii_sel:reg=0xe9
[ 10.718883] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.724805] 8021q: adding VLAN 0 to HW filter on device eth0
[ 10.773229] net eth1: initializing cpsw version 1.12 (0)
[ 10.789765] TI DP83867 4a101000.mdio:03: attached PHY driver [TI DP83867] (mii_bus:phy_addr=4a101000.mdio:03, irq=POLL)
[ 10.801731] AM33XX_GMII_SEL_MODE_RGMII
[ 10.805508] gmii_sel:reg=0xe9
[ 10.813426] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 10.819411] 8021q: adding VLAN 0 to HW filter on device eth1

[ 12.888081] _cpsw_adjust_link:mac_control=0x20
[ 12.892601] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
[ 12.901400] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

The gmii_sel is set to 0xe9 according to the data manual register, 1000M network port will be normal when inserted and removed.

  • Please complete this checklist and post the results here: processors.wiki.ti.com/.../5x_CPSW

  • 1、ti-processor-sdk-linux-am335x-evm-05.00.00.15

    2、root@am335x-evm:~# ./ethtool -S eth1
    NIC statistics:
    Good Rx Frames: 38565
    Broadcast Rx Frames: 9091
    Multicast Rx Frames: 19520
    Pause Rx Frames: 0
    Rx CRC Errors: 0
    Rx Align/Code Errors: 0
    Oversize Rx Frames: 0
    Rx Jabbers: 0
    Undersize (Short) Rx Frames: 0
    Rx Fragments: 0
    Rx Octets: 8405990
    Good Tx Frames: 9970
    Broadcast Tx Frames: 4
    Multicast Tx Frames: 26
    Pause Tx Frames: 0
    Deferred Tx Frames: 0
    Collisions: 0
    Single Collision Tx Frames: 0
    Multiple Collision Tx Frames: 0
    Excessive Collisions: 0
    Late Collisions: 0
    Tx Underrun: 0
    Carrier Sense Errors: 0
    Tx Octets: 680480
    Rx + Tx 64 Octet Frames: 7600
    Rx + Tx 65-127 Octet Frames: 28925
    Rx + Tx 128-255 Octet Frames: 1268
    Rx + Tx 256-511 Octet Frames: 558
    Rx + Tx 512-1023 Octet Frames: 10127
    Rx + Tx 1024-Up Octet Frames: 57
    Net Octets: 9086470
    Rx Start of Frame Overruns: 0
    Rx Middle of Frame Overruns: 0
    Rx DMA Overruns: 0
    Rx DMA chan 0: head_enqueue: 1
    Rx DMA chan 0: tail_enqueue: 19170
    Rx DMA chan 0: pad_enqueue: 0
    Rx DMA chan 0: misqueued: 0
    Rx DMA chan 0: desc_alloc_fail: 0
    Rx DMA chan 0: pad_alloc_fail: 0
    Rx DMA chan 0: runt_receive_buf: 0
    Rx DMA chan 0: runt_transmit_bu: 0
    Rx DMA chan 0: empty_dequeue: 0
    Rx DMA chan 0: busy_dequeue: 18603
    Rx DMA chan 0: good_dequeue: 19043
    Rx DMA chan 0: requeue: 0
    Rx DMA chan 0: teardown_dequeue: 0
    Tx DMA chan 0: head_enqueue: 9970
    Tx DMA chan 0: tail_enqueue: 0
    Tx DMA chan 0: pad_enqueue: 0
    Tx DMA chan 0: misqueued: 0
    Tx DMA chan 0: desc_alloc_fail: 0
    Tx DMA chan 0: pad_alloc_fail: 0
    Tx DMA chan 0: runt_receive_buf: 0
    Tx DMA chan 0: runt_transmit_bu: 9911
    Tx DMA chan 0: empty_dequeue: 9970
    Tx DMA chan 0: busy_dequeue: 0
    Tx DMA chan 0: good_dequeue: 9970
    Tx DMA chan 0: requeue: 0
    Tx DMA chan 0: teardown_dequeue: 0

    root@am335x-evm:~# ./ethtool eth1
    Settings for eth1:
    Supported ports: [ TP MII ]
    Supported link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Supported pause frame use: Symmetric Receive-only
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    1000baseT/Half 1000baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes: 10baseT/Half 10baseT/Full
    100baseT/Half 100baseT/Full
    Link partner advertised pause frame use: Symmetric Receive-only
    Link partner advertised auto-negotiation: Yes
    Link partner advertised FEC modes: Not reported
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 3
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: d
    Wake-on: d
    Current message level: 0x00000000 (0)
    Link detected: yes

    3、root@am335x-evm:~# ifconfig eth1
    eth1 Link encap:Ethernet HWaddr 50:8C:B1:DF:90:FA 
    inet addr:192.168.1.1 Bcast:0.0.0.0 Mask:255.255.255.0
    inet6 addr: fe80::528c:b1ff:fedf:90fa/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000 
    RX bytes:0 (0.0 B) TX bytes:1256 (1.2 KiB)

    root@am335x-evm:~# uname -a
    Linux am335x-evm 4.14.40+ #172 PREEMPT Wed Jul 31 11:40:05 CST 2019 armv7l GNU/Linux

  • Hi,

    Would you please provide the corresponding output for eth0 for comparison? Thank you.

  • Hi,

    Status of eth0 when network cable is not connected:

    ./ethtool eth0
    Settings for eth0:
    Supported ports: [ TP MII ]
    Supported link modes: 10baseT/Half 10baseT/Full 
    100baseT/Half 100baseT/Full 
    Supported pause frame use: Symmetric Receive-only
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes: 10baseT/Half 10baseT/Full 
    100baseT/Half 100baseT/Full 
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Speed: 10Mb/s
    Duplex: Half
    Port: MII
    PHYAD: 7
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: d
    Wake-on: d
    Current message level: 0x00000000 (0) 
    Link detected: no

    ./ethtool -S eth0
    NIC statistics:
    Good Rx Frames: 0
    Broadcast Rx Frames: 0
    Multicast Rx Frames: 0
    Pause Rx Frames: 0
    Rx CRC Errors: 0
    Rx Align/Code Errors: 0
    Oversize Rx Frames: 0
    Rx Jabbers: 0
    Undersize (Short) Rx Frames: 0
    Rx Fragments: 0
    Rx Octets: 0
    Good Tx Frames: 12
    Broadcast Tx Frames: 0
    Multicast Tx Frames: 12
    Pause Tx Frames: 0
    Deferred Tx Frames: 0
    Collisions: 0
    Single Collision Tx Frames: 0
    Multiple Collision Tx Frames: 0
    Excessive Collisions: 0
    Late Collisions: 0
    Tx Underrun: 0
    Carrier Sense Errors: 0
    Tx Octets: 984
    Rx + Tx 64 Octet Frames: 0
    Rx + Tx 65-127 Octet Frames: 12
    Rx + Tx 128-255 Octet Frames: 0
    Rx + Tx 256-511 Octet Frames: 0
    Rx + Tx 512-1023 Octet Frames: 0
    Rx + Tx 1024-Up Octet Frames: 0
    Net Octets: 984
    Rx Start of Frame Overruns: 0
    Rx Middle of Frame Overruns: 0
    Rx DMA Overruns: 0
    Rx DMA chan 0: head_enqueue: 1
    Rx DMA chan 0: tail_enqueue: 127
    Rx DMA chan 0: pad_enqueue: 0
    Rx DMA chan 0: misqueued: 0
    Rx DMA chan 0: desc_alloc_fail: 0
    Rx DMA chan 0: pad_alloc_fail: 0
    Rx DMA chan 0: runt_receive_buf: 0
    Rx DMA chan 0: runt_transmit_bu: 0
    Rx DMA chan 0: empty_dequeue: 0
    Rx DMA chan 0: busy_dequeue: 0
    Rx DMA chan 0: good_dequeue: 0
    Rx DMA chan 0: requeue: 0
    Rx DMA chan 0: teardown_dequeue: 0
    Tx DMA chan 0: head_enqueue: 12
    Tx DMA chan 0: tail_enqueue: 0
    Tx DMA chan 0: pad_enqueue: 0
    Tx DMA chan 0: misqueued: 0
    Tx DMA chan 0: desc_alloc_fail: 0
    Tx DMA chan 0: pad_alloc_fail: 0
    Tx DMA chan 0: runt_receive_buf: 0
    Tx DMA chan 0: runt_transmit_bu: 0
    Tx DMA chan 0: empty_dequeue: 12
    Tx DMA chan 0: busy_dequeue: 0
    Tx DMA chan 0: good_dequeue: 12
    Tx DMA chan 0: requeue: 0
    Tx DMA chan 0: teardown_dequeue: 0

    ifconfig eth0
    eth0 Link encap:Ethernet HWaddr 50:8C:B1:DF:90:F8 
    inet6 addr: fe80::528c:b1ff:fedf:90f8/64 Scope:Link
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:41 errors:0 dropped:4 overruns:0 frame:0
    TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000 
    RX bytes:3195 (3.1 KiB) TX bytes:516 (516.0 B)
    Interrupt:47

  • Hi Nancy,

    Thanks for the additional information. I'm sorry at this point I don't have many ideas as to the cause of the problem.

    Would it be possible to show the link status of eth0 as above, but with the cable connected?

    Have they tried sniffing eth1 to see if the packets are coming out of the device or if there are any errors on the wire?

    Thank you.

  • Hi,

    Thanks for help!

    eth0 cable connected:

    ./ethtool eth0
    Settings for eth0:
    Supported ports: [ TP MII ]
    Supported link modes: 10baseT/Half 10baseT/Full 
    100baseT/Half 100baseT/Full 
    Supported pause frame use: Symmetric Receive-only
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes: 10baseT/Half 10baseT/Full 
    100baseT/Half 100baseT/Full 
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes: 10baseT/Half 10baseT/Full 
    100baseT/Half 100baseT/Full 
    Link partner advertised pause frame use: Symmetric Receive-only
    Link partner advertised auto-negotiation: Yes
    Link partner advertised FEC modes: Not reported
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 7
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: d
    Wake-on: d
    Current message level: 0x00000000 (0)

    Link detected: yes

    ./ethtool -S eth0
    NIC statistics:
    Good Rx Frames: 52241
    Broadcast Rx Frames: 24348
    Multicast Rx Frames: 27287
    Pause Rx Frames: 0
    Rx CRC Errors: 0
    Rx Align/Code Errors: 0
    Oversize Rx Frames: 0
    Rx Jabbers: 0
    Undersize (Short) Rx Frames: 0
    Rx Fragments: 0
    Rx Octets: 6244828
    Good Tx Frames: 504082
    Broadcast Tx Frames: 4
    Multicast Tx Frames: 15
    Pause Tx Frames: 0
    Deferred Tx Frames: 0
    Collisions: 0
    Single Collision Tx Frames: 0
    Multiple Collision Tx Frames: 0
    Excessive Collisions: 0
    Late Collisions: 0
    Tx Underrun: 0
    Carrier Sense Errors: 0
    Tx Octets: 752907262
    Rx + Tx 64 Octet Frames: 20000
    Rx + Tx 65-127 Octet Frames: 20563
    Rx + Tx 128-255 Octet Frames: 8100
    Rx + Tx 256-511 Octet Frames: 3186
    Rx + Tx 512-1023 Octet Frames: 328
    Rx + Tx 1024-Up Octet Frames: 504146
    Net Octets: 759152090
    Rx Start of Frame Overruns: 0
    Rx Middle of Frame Overruns: 0
    Rx DMA Overruns: 0
    Rx DMA chan 0: head_enqueue: 1
    Rx DMA chan 0: tail_enqueue: 24606
    Rx DMA chan 0: pad_enqueue: 0
    Rx DMA chan 0: misqueued: 0
    Rx DMA chan 0: desc_alloc_fail: 0
    Rx DMA chan 0: pad_alloc_fail: 0
    Rx DMA chan 0: runt_receive_buf: 0
    Rx DMA chan 0: runt_transmit_bu: 0
    Rx DMA chan 0: empty_dequeue: 0
    Rx DMA chan 0: busy_dequeue: 22351
    Rx DMA chan 0: good_dequeue: 24479
    Rx DMA chan 0: requeue: 0
    Rx DMA chan 0: teardown_dequeue: 0
    Tx DMA chan 0: head_enqueue: 2020
    Tx DMA chan 0: tail_enqueue: 502062
    Tx DMA chan 0: pad_enqueue: 0
    Tx DMA chan 0: misqueued: 4
    Tx DMA chan 0: desc_alloc_fail: 0
    Tx DMA chan 0: pad_alloc_fail: 0
    Tx DMA chan 0: runt_receive_buf: 0
    Tx DMA chan 0: runt_transmit_bu: 20
    Tx DMA chan 0: empty_dequeue: 2020
    Tx DMA chan 0: busy_dequeue: 251557
    Tx DMA chan 0: good_dequeue: 504082
    Tx DMA chan 0: requeue: 5
    Tx DMA chan 0: teardown_dequeue: 0

    I will ask the customer to sniff eth1 to see packets.

  • Hi,

    The customer used tcpdump to sniff eth1, 50:8c:b1:df:90:fa is the mac address of eth1

    ./tcpdump -v -i eth1
    [ 166.306982] device eth1 entered promiscuous mode
    tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
    06:48:31.649257 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::528c:b1ff:fedf:90fa > ff02::2: [icmp6 sum ok] ICMP6, router solicitation, length 16
    source link-address option (1), length 8 (1): 50:8c:b1:df:90:fa

  • Any update?

  • Hi Nancy,

    I would like to ask to back up a step and do these tests with this condition. First reboot the board and do not connect eth0, please only connect eth1 with a cable. I want to concentrate on eth1 for this test.

    Please perform these commands and attach the results:

    ethtool -S eth1

    ethtool eth1

    ifconfig -a 

    Could you also please attach a block diagram of how the board is intended to be connected to the network. Thank you.

    Best Regards,

    Schuyler

  • Hi,

    The board is directly connected to the network port of PC through the network cable. The IP Settings of the board and PC are set through the network segment.

    Below is the result only connect eth1:

    1、root@am335x-evm:~# ./ethtool -S eth1

        NIC statistics:

        Good Rx Frames: 72754

        Broadcast Rx Frames: 32469

        Multicast Rx Frames: 39904

        Pause Rx Frames: 0

        Rx CRC Errors: 0

        Rx Align/Code Errors: 0

        Oversize Rx Frames: 0

        Rx Jabbers: 0

        Undersize (Short) Rx Frames: 0

        Rx Fragments: 0

        Rx Octets: 8709316

        Good Tx Frames: 62

        Broadcast Tx Frames: 10

        Multicast Tx Frames: 28

        Pause Tx Frames: 0

        Deferred Tx Frames: 0

        Collisions: 0

        Single Collision Tx Frames: 0

        Multiple Collision Tx Frames: 0

        Excessive Collisions: 0

        Late Collisions: 0

        Tx Underrun: 0

        Carrier Sense Errors: 0

        Tx Octets: 7856

        Rx + Tx 64 Octet Frames: 25740

        Rx + Tx 65-127 Octet Frames: 31798

        Rx + Tx 128-255 Octet Frames: 10102

        Rx + Tx 256-511 Octet Frames: 4420

        Rx + Tx 512-1023 Octet Frames: 385

        Rx + Tx 1024-Up Octet Frames: 371

        Net Octets: 8717172

        Rx Start of Frame Overruns: 0

        Rx Middle of Frame Overruns: 0

        Rx DMA Overruns: 0

        Rx DMA chan 0: head_enqueue: 1

        Rx DMA chan 0: tail_enqueue: 32734

        Rx DMA chan 0: pad_enqueue: 0

        Rx DMA chan 0: misqueued: 0

        Rx DMA chan 0: desc_alloc_fail: 0

        Rx DMA chan 0: pad_alloc_fail: 0

        Rx DMA chan 0: runt_receive_buf: 0

        Rx DMA chan 0: runt_transmit_bu: 0

        Rx DMA chan 0: empty_dequeue: 0

        Rx DMA chan 0: busy_dequeue: 30297

        Rx DMA chan 0: good_dequeue: 32607

        Rx DMA chan 0: requeue: 0

        Rx DMA chan 0: teardown_dequeue: 0

        Tx DMA chan 0: head_enqueue: 62

        Tx DMA chan 0: tail_enqueue: 0

        Tx DMA chan 0: pad_enqueue: 0

        Tx DMA chan 0: misqueued: 0

        Tx DMA chan 0: desc_alloc_fail: 0

        Tx DMA chan 0: pad_alloc_fail: 0

        Tx DMA chan 0: runt_receive_buf: 0

        Tx DMA chan 0: runt_transmit_bu: 19

        Tx DMA chan 0: empty_dequeue: 62

        Tx DMA chan 0: busy_dequeue: 0

        Tx DMA chan 0: good_dequeue: 62

        Tx DMA chan 0: requeue: 0

        Tx DMA chan 0: teardown_dequeue: 0

    2、root@am335x-evm:~# ./ethtool  eth1

           Settings for eth1:

           Supported ports: [ TP MII ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supported pause frame use: Symmetric Receive-only

           Supports auto-negotiation: Yes

           Supported FEC modes: Not reported

           Advertised link modes:  10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Advertised FEC modes: Not reported

           Link partner advertised link modes:  10baseT/Half 10baseT/Full

                                                100baseT/Half 100baseT/Full

                                                1000baseT/Full

           Link partner advertised pause frame use: Symmetric Receive-only

           Link partner advertised auto-negotiation: Yes

           Link partner advertised FEC modes: Not reported

           Speed: 1000Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 3

           Transceiver: internal

           Auto-negotiation: on

           Supports Wake-on: d

           Wake-on: d

           Current message level: 0x00000000 (0)

           Link detected: yes

    3、root@am335x-evm:~# ifconfig -a

    eth0      Link encap:Ethernet  HWaddr 50:8C:B1:DF:90:F8  

             inet addr:192.168.233.98  Bcast:192.168.233.255  Mask:255.255.255.0

             inet6 addr: fe80::528c:b1ff:fedf:90f8/64 Scope:Link

             UP BROADCAST MULTICAST  MTU:1500  Metric:1

             RX packets:32607 errors:0 dropped:2688 overruns:0 frame:0

             TX packets:43 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:1000

             RX bytes:2722147 (2.5 MiB)  TX bytes:4510 (4.4 KiB)

             Interrupt:47

    eth1      Link encap:Ethernet  HWaddr 50:8C:B1:DF:90:FA  

             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

             RX packets:0 errors:0 dropped:0 overruns:0 frame:0

             TX packets:19 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:1000

             RX bytes:0 (0.0 B)  TX bytes:3098 (3.0 KiB)

    lo        Link encap:Local Loopback  

             inet addr:127.0.0.1  Mask:255.0.0.0

             inet6 addr: ::1/128 Scope:Host

             UP LOOPBACK RUNNING  MTU:65536  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)

    sit0      Link encap:IPv6-in-IPv4  

             NOARP  MTU:1480  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)

    usb0      Link encap:Ethernet  HWaddr AA:AE:FF:23:19:88  

             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)

  • Hi,

    I want to confirm, that eth0 is not connected with a cable in the above test?  If that is the case why is eth0 getting an IP address? Is this address assigned statically or through an ifconfig command?

    The results in the last post are not expected. I would like to request again with the same conditions from above meaning that a cable is only connected to eth1 after a reboot the same steps except an added one for about eth0 below:

    ethtool -S eth1

    ethtool eth1

    ethtool eth0 

    ifconfig -a 

    I did not expect to see an IP address on eth0 and not one on eth1 with all the traffic that the statistics is capturing. Could the full boot log please be attached? Not cut and pasted, attaching the boot log will keep the post from getting too long to scroll through. I am expecting to see no link detected on eth0 with the results of ethtool eth0.

    Best Regards,

    Schuyler

  • root@am335x-evm:~# ./ethtool -S eth1

    NIC statistics:

        Good Rx Frames: 0

        Broadcast Rx Frames: 0

        Multicast Rx Frames: 0

        Pause Rx Frames: 0

        Rx CRC Errors: 0

        Rx Align/Code Errors: 0

        Oversize Rx Frames: 0

        Rx Jabbers: 0

        Undersize (Short) Rx Frames: 0

        Rx Fragments: 0

        Rx Octets: 0

        Good Tx Frames: 15

        Broadcast Tx Frames: 0

        Multicast Tx Frames: 15

        Pause Tx Frames: 0

        Deferred Tx Frames: 0

        Collisions: 0

        Single Collision Tx Frames: 0

        Multiple Collision Tx Frames: 0

        Excessive Collisions: 0

        Late Collisions: 0

        Tx Underrun: 0

        Carrier Sense Errors: 0

        Tx Octets: 1206

        Rx + Tx 64 Octet Frames: 0

        Rx + Tx 65-127 Octet Frames: 15

        Rx + Tx 128-255 Octet Frames: 0

        Rx + Tx 256-511 Octet Frames: 0

        Rx + Tx 512-1023 Octet Frames: 0

        Rx + Tx 1024-Up Octet Frames: 0

        Net Octets: 1206

        Rx Start of Frame Overruns: 0

        Rx Middle of Frame Overruns: 0

        Rx DMA Overruns: 0

        Rx DMA chan 0: head_enqueue: 1

        Rx DMA chan 0: tail_enqueue: 127

        Rx DMA chan 0: pad_enqueue: 0

        Rx DMA chan 0: misqueued: 0

        Rx DMA chan 0: desc_alloc_fail: 0

        Rx DMA chan 0: pad_alloc_fail: 0

        Rx DMA chan 0: runt_receive_buf: 0

        Rx DMA chan 0: runt_transmit_bu: 0

        Rx DMA chan 0: empty_dequeue: 0

        Rx DMA chan 0: busy_dequeue: 0

        Rx DMA chan 0: good_dequeue: 0

        Rx DMA chan 0: requeue: 0

        Rx DMA chan 0: teardown_dequeue: 0

        Tx DMA chan 0: head_enqueue: 15

        Tx DMA chan 0: tail_enqueue: 0

        Tx DMA chan 0: pad_enqueue: 0

        Tx DMA chan 0: misqueued: 0

        Tx DMA chan 0: desc_alloc_fail: 0

        Tx DMA chan 0: pad_alloc_fail: 0

        Tx DMA chan 0: runt_receive_buf: 0

        Tx DMA chan 0: runt_transmit_bu: 0

        Tx DMA chan 0: empty_dequeue: 15

        Tx DMA chan 0: busy_dequeue: 0

        Tx DMA chan 0: good_dequeue: 15

        Tx DMA chan 0: requeue: 0

        Tx DMA chan 0: teardown_dequeue: 0

    root@am335x-evm:~# ./ethtool eth1

    Settings for eth1:

           Supported ports: [ TP MII ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Supported pause frame use: Symmetric Receive-only

           Supports auto-negotiation: Yes

           Supported FEC modes: Not reported

           Advertised link modes:  10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

                                   1000baseT/Half 1000baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Advertised FEC modes: Not reported

           Link partner advertised link modes:  10baseT/Half 10baseT/Full

                                                100baseT/Half 100baseT/Full

           Link partner advertised pause frame use: Symmetric Receive-only

           Link partner advertised auto-negotiation: Yes

           Link partner advertised FEC modes: Not reported

           Speed: 100Mb/s

           Duplex: Full

           Port: MII

           PHYAD: 3

           Transceiver: internal

           Auto-negotiation: on

           Supports Wake-on: d

           Wake-on: d

           Current message level: 0x00000000 (0)

           Link detected: yes

    root@am335x-evm:~# ./ethtool eth0

    Settings for eth0:

           Supported ports: [ TP MII ]

           Supported link modes:   10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

           Supported pause frame use: Symmetric Receive-only

           Supports auto-negotiation: Yes

           Supported FEC modes: Not reported

           Advertised link modes:  10baseT/Half 10baseT/Full

                                   100baseT/Half 100baseT/Full

           Advertised pause frame use: No

           Advertised auto-negotiation: Yes

           Advertised FEC modes: Not reported

           Speed: 10Mb/s

           Duplex: Half

           Port: MII

           PHYAD: 7

           Transceiver: internal

           Auto-negotiation: on

           Supports Wake-on: d

           Wake-on: d

           Current message level: 0x00000000 (0)

           Link detected: no

    root@am335x-evm:~# ifconfig -a

    eth0      Link encap:Ethernet  HWaddr 50:8C:B1:DF:90:F8  

             UP 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)

             Interrupt:47

    eth1      Link encap:Ethernet  HWaddr 50:8C:B1:DF:90:FA  

             inet addr:192.168.1.1  Bcast:0.0.0.0  Mask:255.255.255.0

             inet6 addr: fe80::528c:b1ff:fedf:90fa/64 Scope:Link

             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

             RX packets:0 errors:0 dropped:0 overruns:0 frame:0

             TX packets:15 errors:0 dropped:0 overruns:0 carrier:0

             collisions:0 txqueuelen:1000

             RX bytes:0 (0.0 B)  TX bytes:1146 (1.1 KiB)

    lo        Link encap:Local Loopback  

             inet addr:127.0.0.1  Mask:255.0.0.0

             inet6 addr: ::1/128 Scope:Host

             UP LOOPBACK RUNNING  MTU:65536  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)

    sit0      Link encap:IPv6-in-IPv4  

             NOARP  MTU:1480  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)

    usb0      Link encap:Ethernet  HWaddr FE:4B:3A:7B:63:8E  

             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)

    kernel log:

    U-Boot SPL 2018.01-00228-g4579b13-dirty (Jan 15 2019 - 16:01:49)
    Trying to boot from NAND
    ** Bad device mmc 0 **
    Using default environment
    
    
    
    U-Boot 2018.01-00228-g4579b13-dirty (Jan 15 2019 - 16:01:49 +0800)
    
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM:  512 MiB
    NAND:  512 MiB
    MMC:   OMAP SD/MMC: 0
    ** Bad device mmc 0 **
    Using default environment
    
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   mdio and mdc and rmii1_rst ret_rgmii2_rst request sucess
    cpsw, usb_ether
    Hit any key to stop autoboot:  0 
    Booting from nand ...
    
    NAND read: device 0 offset 0x80000, size 0x40000
     262144 bytes read: OK
    
    NAND read: device 0 offset 0x200000, size 0x800000
     8388608 bytes read: OK
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff2000, end 8ffff237 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.40+ (luo@luo-virtual-machine) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #195 PREEMPT Mon Aug 19 16:54:13 CST 2019
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM335x EVM
    [    0.000000] Command line is: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x9d000000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 453380K/524288K available (10240K kernel code, 751K rwdata, 3216K rodata, 1024K init, 294K bss, 21756K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0b00000   (11232 kB)
    [    0.000000]       .init : 0xc0f00000 - 0xc1000000   (1024 kB)
    [    0.000000]       .data : 0xc1000000 - 0xc10bbf74   ( 752 kB)
    [    0.000000]        .bss : 0xc10bbf78 - 0xc11057c4   ( 295 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] ftrace: allocating 35005 entries in 103 pages
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000021] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000050] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000065] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000333] timer_probe: no matching timers found
    [    0.000607] Console: colour dummy device 80x30
    [    0.000645] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000655] This ensures that you still see kernel messages. Please
    [    0.000663] update your kernel commandline.
    [    0.000703] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.118645] pid_max: default: 32768 minimum: 301
    [    0.118910] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.118930] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119966] CPU: Testing write buffer coherency: ok
    [    0.120918] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.121121] Hierarchical SRCU implementation.
    [    0.121628] EFI services will not be available.
    [    0.123543] devtmpfs: initialized
    [    0.135784] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1b0 with crng_init=0
    [    0.136469] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.136899] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.136929] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.141885] pinctrl core: initialized pinctrl subsystem
    [    0.142862] DMI not present or invalid.
    [    0.143393] NET: Registered protocol family 16
    [    0.146578] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.166187] omap_hwmod: debugss: _wait_target_disable failed
    [    0.221042] cpuidle: using governor ladder
    [    0.221095] cpuidle: using governor menu
    [    0.227299] OMAP GPIO hardware version 0.1
    [    0.236749] platform 44e3e000.rtc: Cannot lookup hwmod 'rtc'
    [    0.240205] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe
    [    0.242187] platform 44e00f00.prm_dev: Cannot lookup hwmod 'rstype'
    [    0.244684] No ATAGs?
    [    0.244702] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.265779] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.271278] SCSI subsystem initialized
    [    0.271602] usbcore: registered new interface driver usbfs
    [    0.271677] usbcore: registered new interface driver hub
    [    0.271856] usbcore: registered new device driver usb
    [    0.272414] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.272503] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
    [    0.272681] media: Linux media interface: v0.10
    [    0.272740] Linux video capture interface: v2.00
    [    0.272884] pps_core: LinuxPPS API ver. 1 registered
    [    0.272897] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.272943] PTP clock support registered
    [    0.272992] EDAC MC: Ver: 3.0.0
    [    0.273600] dmi: Firmware registration failed.
    [    0.274283] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.274760] Advanced Linux Sound Architecture Driver Initialized.
    [    0.276373] clocksource: Switched to clocksource timer1
    [    0.386582] NET: Registered protocol family 2
    [    0.387599] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.387672] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.387735] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.387867] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.387894] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.388106] NET: Registered protocol family 1
    [    0.388712] RPC: Registered named UNIX socket transport module.
    [    0.388732] RPC: Registered udp transport module.
    [    0.388741] RPC: Registered tcp transport module.
    [    0.388751] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.390083] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.390247] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.392454] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    0.399082] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.400087] NFS: Registering the id_resolver key type
    [    0.400150] Key type id_resolver registered
    [    0.400162] Key type id_legacy registered
    [    0.400225] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.402999] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.403027] io scheduler noop registered
    [    0.403038] io scheduler deadline registered
    [    0.403343] io scheduler cfq registered (default)
    [    0.403357] io scheduler mq-deadline registered
    [    0.403369] io scheduler kyber registered
    [    0.405433] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.410529] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [    0.480188] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.484418] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
    [    1.185587] console [ttyS0] enabled
    [    1.190550] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a 8250
    [    1.200648] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 32, base_baud = 3000000) is a 8250
    [    1.211028] ###pru_uart_init:1
    [    1.215387] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    1.224669] panel panel: found backlight
    [    1.229292] OF: graph: no port node found in /ocp/lcdc@4830e000
    [    1.235522] OF: graph: no port node found in /ocp/lcdc@4830e000
    [    1.242191] OF: graph: no port node found in /ocp/lcdc@4830e000
    [    1.248221] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.254868] [drm] No driver support for vblank timestamp query.
    [    1.308632] Console: switching to colour frame buffer device 100x30
    [    1.330993] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    1.337368] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
    [    1.359956] brd: module loaded
    [    1.372441] loop: module loaded
    [    1.381553] libphy: Fixed MDIO Bus: probed
    [    1.402725] davinci_mdio_probe
    [    1.405954] mdio and mdc and rmii1_rst ret_rgmii2_rst request sucess
    [    1.466520] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.472660] libphy: 4a101000.mdio: probed
    [    1.479054] davinci_mdio 4a101000.mdio: phy[3]: device 4a101000.mdio:03, driver TI DP83867
    [    1.487526] davinci_mdio 4a101000.mdio: phy[7]: device 4a101000.mdio:07, driver NS DP83848C 10/100 Mbps PHY
    [    1.498338] ###cpsw_phy_sel_probe
    [    1.501994] cpsw 4a100000.ethernet: Detected MACID = 50:8c:b1:df:90:f8
    [    1.508978] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.515410] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.520807] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.529208] cpsw 4a100000.ethernet: cpsw: Detected MACID = 50:8c:b1:df:90:fa
    [    1.537692] PPP generic driver version 2.4.2
    [    1.542352] PPP BSD Compression module registered
    [    1.547191] PPP Deflate Compression module registered
    [    1.552273] NET: Registered protocol family 24
    [    1.556934] usbcore: registered new interface driver cdc_ether
    [    1.562866] usbcore: registered new interface driver cdc_eem
    [    1.568646] usbcore: registered new interface driver rndis_host
    [    1.574639] usbcore: registered new interface driver cdc_subset
    [    1.587281] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.593887] ehci-pci: EHCI PCI platform driver
    [    1.616484] ehci-platform: EHCI generic platform driver
    [    1.622064] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.636568] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    1.642826] ohci-pci: OHCI PCI platform driver
    [    1.656474] ohci-platform: OHCI generic platform driver
    [    1.662597] usbcore: registered new interface driver cdc_acm
    [    1.676401] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    1.684510] usbcore: registered new interface driver cdc_wdm
    [    1.690249] davinci_mdio 4a101000.mdio: timed out waiting for idle
    [    1.696643] usbcore: registered new interface driver uas
    [    1.702066] usbcore: registered new interface driver usb-storage
    [    1.708281] usbcore: registered new interface driver usbserial
    [    1.714188] usbcore: registered new interface driver usbserial_generic
    [    1.720818] usbserial: USB Serial support registered for generic
    [    1.726939] usbcore: registered new interface driver option
    [    1.732572] usbserial: USB Serial support registered for GSM modem (1-port)
    [    1.742782] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [    1.757204] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [    1.762955] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [    1.770750] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.777613] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.784872] usb usb1: Product: MUSB HDRC host driver
    [    1.789897] usb usb1: Manufacturer: Linux 4.14.40+ musb-hcd
    [    1.795499] usb usb1: SerialNumber: musb-hdrc.0
    [    1.800836] hub 1-0:1.0: USB hub found
    [    1.804699] hub 1-0:1.0: 1 port detected
    [    1.811431] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    [    1.825714] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    1.831618] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    [    1.839418] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.846247] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.853555] usb usb2: Product: MUSB HDRC host driver
    [    1.858569] usb usb2: Manufacturer: Linux 4.14.40+ musb-hcd
    [    1.864169] usb usb2: SerialNumber: musb-hdrc.1
    [    1.869485] hub 2-0:1.0: USB hub found
    [    1.873315] hub 2-0:1.0: 1 port detected
    [    1.885339] using random self ethernet address
    [    1.890057] using random host ethernet address
    [    1.895272] usb0: HOST MAC ea:d0:cc:06:20:21
    [    1.899827] usb0: MAC fe:4b:3a:7b:63:8e
    [    1.903735] using random self ethernet address
    [    1.908246] using random host ethernet address
    [    1.912828] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
    [    1.919792] g_ether gadget: g_ether ready
    [    1.924771] i2c /dev entries driver
    [    1.929216] IR NEC protocol handler initialized
    [    1.933835] IR RC5(x/sz) protocol handler initialized
    [    1.939009] IR RC6 protocol handler initialized
    [    1.943564] IR JVC protocol handler initialized
    [    1.948155] IR Sony protocol handler initialized
    [    1.952794] IR SANYO protocol handler initialized
    [    1.957538] IR Sharp protocol handler initialized
    [    1.962263] IR MCE Keyboard/mouse protocol handler initialized
    [    1.968148] IR XMP protocol handler initialized
    [    1.973134] am335x_prmdev_probe:res=0x44e00f00
    [    1.977675] am335x_reset_status:am335x_rstc_type=0x1
    [    1.982773] AM335x: Starting after 
    [    1.982782] COLD_RST 
    [    1.986289] reset
    [    1.990803] am335x-prmdev: probe of 44e00f00.prm_dev failed with error 5
    [    2.000448] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    2.009398] cpuidle: enable-method property 'ti,am3352' found operations
    [    2.016883] sdhci: Secure Digital Host Controller Interface driver
    [    2.023101] sdhci: Copyright(c) Pierre Ossman
    [    2.028368] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    2.176870] sdhci-pltfm: SDHCI platform and OF driver helper
    [    2.183760] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.190336] random: fast init done
    [    2.195577] usbcore: registered new interface driver usbhid
    [    2.202430] usbhid: USB HID core driver
    [    2.209342] remoteproc remoteproc0: wkup_m3 is available
    [    2.220008] pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [    2.232222] pru-rproc 4a328000.pru: unable to retrieve firmware-name -22
    [    2.239152] pru-rproc: probe of 4a328000.pru failed with error -22
    [    2.249676] pinctrl-single 44e10800.pinmux: pin PIN67 already requested by 4a100000.ethernet; cannot claim for 4803c000.mcasp
    [    2.261304] pinctrl-single 44e10800.pinmux: pin-67 (4803c000.mcasp) status -22
    [    2.268643] pinctrl-single 44e10800.pinmux: could not request pin 67 (PIN67) from group mcasp1_pins  on device pinctrl-single
    [    2.280072] davinci-mcasp 4803c000.mcasp: Error applying setting, reverse things back
    [    2.288029] davinci-mcasp: probe of 4803c000.mcasp failed with error -22
    [    2.295962] NET: Registered protocol family 10
    [    2.302658] Segment Routing with IPv6
    [    2.306659] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    2.313537] NET: Registered protocol family 17
    [    2.318143] usb 2-1: new high-speed USB device number 2 using musb-hdrc
    [    2.325126] 8021q: 802.1Q VLAN Support v1.8
    [    2.329871] Key type dns_resolver registered
    [    2.334537] omap_voltage_late_init: Voltage driver support not added
    [    2.349106] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    2.354375] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    2.362968] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xdc
    [    2.369583] nand: ESMT NAND 512MiB 3,3V 8-bit
    [    2.373971] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    2.381745] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    2.387303] 10 ofpart partitions found on MTD device omap2-nand.0
    [    2.393431] Creating 10 MTD partitions on "omap2-nand.0":
    [    2.399040] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    2.405653] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    2.412780] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    2.419897] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    2.426948] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    2.434175] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    2.441023] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    2.447951] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    2.455547] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    2.464227] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [    2.566662] tps65910 0-002d: No interrupt support, no core IRQ
    [    2.574064] tps65910 0-002d: Error in configuring external control EN1
    [    2.580731] tps65910 0-002d: Failed to initialise ext control config
    [    2.587280] vrtc: supplied by vbat
    [    2.590937] vrtc: failed to enable
    [    2.594388] tps65910 0-002d: failed to register tps65910-pmic regulator
    [    2.601130] tps65910-pmic: probe of tps65910-pmic failed with error -121
    [    2.608703] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    2.617064] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    2.624197] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    2.630603] ubi0: attaching mtd9
    [    2.796676] usb 2-1: New USB device found, idVendor=0424, idProduct=2514
    [    2.803433] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [    2.812150] hub 2-1:1.0: USB hub found
    [    2.816187] hub 2-1:1.0: 4 ports detected
    [    2.824969] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    3.816532] ubi0: scanning is finished
    [    3.840297] ubi0: attached mtd9 (name "NAND.file-system", size 246 MiB)
    [    3.847086] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [    3.854024] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [    3.860785] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    3.867801] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
    [    3.873933] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    3.881213] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 866547637
    [    3.890330] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 80
    [    3.899727] ubi0: background thread "ubi_bgt0d" started, PID 42
    [    3.907133] input: volume_keys0 as /devices/platform/volume_keys0/input/input0
    [    3.916599] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    3.922250] hctosys: unable to open rtc device (rtc0)
    [    3.928596] lis3_reg: disabling
    [    3.931778] wlan-en-regulator: disabling
    [    3.935766] ALSA device list:
    [    3.938879]   No soundcards found.
    [    3.956437] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 43
    [    4.035066] UBIFS (ubi0:0): recovery needed
    [    4.217630] UBIFS (ubi0:0): recovery completed
    [    4.222659] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    4.230162] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [    4.240153] UBIFS (ubi0:0): FS size: 237826048 bytes (226 MiB, 1873 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [    4.250926] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [    4.256812] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID FBBD42AC-B535-4D27-AE7B-8BDD8CD7A9F5, small LPT model
    [    4.268997] VFS: Mounted root (ubifs filesystem) on device 0:16.
    [    4.276418] devtmpfs: mounted
    [    4.284228] Freeing unused kernel memory: 1024K
    INIT: version 2.88 booting
    Starting udev
    udev: Not using udev cache because of changes detected in the following files:
    udev:     /proc/version /proc/cmdline /proc/devices
    udev:     lib/udev/rules.d/* etc/udev/rules.d/*
    udev: The udev cache will be regenerated. To identify the detected changes,
    udev: compare the cached sysconf at   /etc/udev/cache.data
    udev: against the current sysconf at  /dev/shm/udev.cache
    [    4.955739] udevd[74]: starting version 182
    [    8.899706] [WFOS]:
    [    8.899732] DTS invalie, mb_rev 0
    [    8.923735] [WFOS]:
    [    8.923755] Proc Filesystem Interface for Debug.
    [    9.043224] [WFOS]:
    [    9.043245] Proc Filesystem Interface for Reset Reason init.
    [    9.093457] [WFOS]:
    [    9.093484] WIRELESS module init, device name wifi, devno 0x0f100000.
    [    9.125518] [WFOS]:
    [    9.125546] WDT init, device name hwdt, devno 0x0f000000.
    [    9.278733] random: dd: uninitialized urandom read (512 bytes read)
    Populating dev cache
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Sun Feb 28 00:40:34 UTC 2016
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    /
    INIT: Entering runlevel: 3
    Configuring network interfaces... [   10.483538] net eth0: initializing cpsw version 1.12 (0)
    [   10.656911] NS DP83848C 10/100 Mbps PHY 4a101000.mdio:07: attached PHY driver [NS DP83848C 10/100 Mbps PHY] (mii_bus:phy_addr=4a101000.mdio:07, irq=POLL)
    [   10.671388] ###cpsw_gmii_sel_am3352
    [   10.674910] PHY_INTERFACE_MODE_RMII
    [   10.678444] gmii_sel:reg=0xe9
    [   10.691876] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   10.697926] 8021q: adding VLAN 0 to HW filter on device eth0
    [   10.746884] net eth1: initializing cpsw version 1.12 (0)
    [   10.755277] ###dp83867_config_init
    [   10.761594] ###dp83867_of_init:ti,min-output-impedance
    [   10.766955] ###dp83867_of_init:ti,dp83867-rxctrl-strap-quirk
    [   10.778536] MII_DP83867_PHYCTRL(0x10) is 0x5048
    [   10.783737] DP83867_RGMIICTL(0x0032) is 0xd3
    [   10.788249] DP83867_RGMIIDCTL(0x0086) is 0x64
    [   10.792788] PHYSTS(0x11) is 0x2
    [   10.796102] LEDCR1(0x18) is 0x6150
    [   10.799705] BISCR(0x16) is 0x0
    [   10.802940] STS2(0x17) is 0x40
    [   10.806169] BISCR1(0x71) is 0x2
    [   10.809506] BISCR2(0x72) is 0x0
    [   10.812663] ###dp83867_config_init
    [   10.821758] MII_DP83867_PHYCTRL(0x10) is 0x5048
    [   10.826976] DP83867_RGMIICTL(0x0032) is 0xd3
    [   10.831426] DP83867_RGMIIDCTL(0x0086) is 0x64
    [   10.835968] PHYSTS(0x11) is 0x2
    [   10.839305] LEDCR1(0x18) is 0x6150
    [   10.842881] BISCR(0x16) is 0x0
    [   10.846109] STS2(0x17) is 0x40
    [   10.849356] BISCR1(0x71) is 0x2
    [   10.852679] BISCR2(0x72) is 0x0
    [   10.856190] TI DP83867 4a101000.mdio:03: attached PHY driver [TI DP83867] (mii_bus:phy_addr=4a101000.mdio:03, irq=POLL)
    [   10.868010] ###cpsw_gmii_sel_am3352
    [   10.871521] AM33XX_GMII_SEL_MODE_RGMII
    [   10.875285] gmii_sel:reg=0xe9
    [   10.883203] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [   10.889176] 8021q: adding VLAN 0 to HW filter on device eth1
    ip: RTNETLINK answers: File exists
    done.
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Starting syslogd/klogd: done
    Starting crond: OK
    udhcpc: started, v1.30.1
    udhcpc: sending discover
    [   11.687077] _cpsw_adjust_link:1
    [   11.690278] _cpsw_adjust_link:slave->slave_num=0
    [   11.694919] _cpsw_adjust_link:mac_control2=0x0
    [   11.927393] _cpsw_adjust_link:1
    [   11.930568] _cpsw_adjust_link:slave->slave_num=1
    [   11.935216] _cpsw_adjust_link:mac_control2=0x0
    [   12.967531] _cpsw_adjust_link:1
    [   12.970698] _cpsw_adjust_link:slave->slave_num=1
    [   12.975335] _cpsw_adjust_link:mac_control:1=0x20
    [   12.980519] _cpsw_adjust_link:phy->speed == 100
    [   12.985095] _cpsw_adjust_link:mac_control2=0x8021
    [   12.990203] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
    [   12.998593] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
    udhcpc: sending discover
    udhcpc: sending discover
    udhcpc: no lease, forking to background
    ****************************************************************** 
    ****             ERROR, Self Test Failed!                     **** 
    ****             Applications not found.                      **** 
    ****************************************************************** 
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm /dev/ttyO0
    
    Arago 2016.02 am335x-evm /dev/ttyO0
    
    am335x-evm login: [   84.394824] random: crng init done
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm /dev/ttyO0
    
    Arago 2016.02 am335x-evm /dev/ttyO0
    

  • Hi,

    Thank you for the data. I see a couple of things that need to be verified. Looking at the HW statistics there are not any packets being received on eth1.  This would explain this which is that DHCP address leasing is failing:

    udhcpc: sending discover
    udhcpc: sending discover
    udhcpc: no lease, forking to background

    Is the ip address on eth1 being assigned statically?

    Can you use wireshark to capture any packets that are coming out of eth1?

    Best Regards,

    Schuyler

  • Hi,

    Since we have not heard back I am assuming that you were able to move past the issue and closing the thread for now.

    Best Regards,

    Schuyler