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.

Linux/AM3352: Ethernet issue with DP83867

Part Number: AM3352


Tool/software: Linux

Dear Champs,

2 x DP83867 were used with AM3352 in my customer board, and they found below 2 issues.

- TX packet transfer - when connected with PC, ping was OK, but no data transferred using Telnet or else.

                                   it seemed over long data packets(1024 bytes) can not be transferred.

- Eth0 down together even when user link down only eth1. e.g. When user link down eth1 using ifconfig eth1 down, eth0 also link down together. 

Customer is using RGMII I/F and only 10/100 mode.

Could you please check below their dts file and provide guide what should be checked in this case?

am335x.zip

Thanks and Best Regards,

SI.

  • Hi,

    Sung-IL said:
       it seemed over long data packets(1024 bytes) can not be transferred.

    Jumbo frames are not supported on Sitara devices.

    Sung-IL said:
    When user link down eth1 using ifconfig eth1 down, eth0 also link down together.

    What is the clock source of the PHY's?

    Please post the Linux version. Also follow this checklist and post the results: processors.wiki.ti.com/.../5x_CPSW

  • Sorry. SW is Linux PSDK 4.01 and the PHY's clock source is 25Mhz.

    And, for tx issue, what I mean telnet of PC can not get any data from AM3352 custom board. I believe this is not jumbo frame issue.

    Thanks and Best Regards,
    SI.
  • Sung-IL said:
    Sorry. SW is Linux PSDK 4.01 and the PHY's clock source is 25Mhz.

    What is the clock source? Are the PHY's clocked separately or from the same source?

    Please complete the CPSW checklist and post the results. This is mandatory before the thread is escalated to the Ethernet experts.

  • What is difference between the same source clock and separated clock?

  • I am asking whether the two PHY's are clocked from the same source or from separate sources?
  • I am debugging same issue.
    The two PHY's clcocked are from the sepate clock.
  • Ok, that's clear then. Please complete the CPSW checklist (link given above) and post the results. This is mandatory before the thread is escalated to the Ethernet experts.
  • I attached their answers for questions in the wiki as below.

    cpsw.docx

    their log is as below.

    cpsw_int.zip

    Please let me know if you need more information to escalate this issue to Ethernet Experts.

    Thanks and Best Regards,

    SI.

  • Hi SI,
    Thanks for posting the checklist items. Here are a few questions I have:

    How the ports getting there IP addresses? Both eth0 and eth1 are on the same subnet that can be addressed later. Does eth1 have a link partner and if so the link not being detected needs to be investigated.

    Looking at the emac DTS nodes the phy modes are different:

    &cpsw_emac0 {
    phy_id = <&davinci_mdio>, <0x0>;
    phy-mode = "rgmii-id";
    dual_emac_res_vlan = <1>;
    };

    &cpsw_emac1 {
    phy_id = <&davinci_mdio>, <0xD>;
    phy-mode = "rgmii-d"; ------- Why is this not like the phy mode for cpsw_emac0 which is "rgmii-id"?
    dual_emac_res_vlan = <2>;
    };

    Try not bringing up eth1 at all and performing the ping test. Please attach a copy of the wireshark capture, also please start the capture before initiated the ping command. I would to see the ARP request process.


    Best Regards,
    Schuyler
  • Hi Schuyler,

    Thanks for your immediate response.

    the below is wireshark capture, and they set the packet size as 128bytes(success) and then set it as 256bytes(fail - no response).

    1667.wireshark.zip

    Pc : dump_icmp_eth0_single.pcapng

    AIM : aim_pkt_dump_pc_icmp_eth0_single.pkt

    For your questions, 

    IP assigned in ifconfig. and eth0/eth1 is different subnet each other. netmask is 255.255.255.128(not 255.255.255.0).

    They modified DTS file as below.

    -      cpsw_emac0 à phy_mode : “rgmii-id”;

    -      cpsw_emac1 à phy_mode : “rgmii-id”;

    Here is more information for tx transfer fail.

    1. TX transfer fail

       - Not over 1024 bytes packets

      - transfer fail was occurred mostly at over 250 bytes packet.(not jumbo frame issue)

      - with over 250bytes packet, all of telnet, ping, tftp were failed.

      - with under 200 bytes packet, there is no issue using telnet.

      - ping failed with 'ping -s 250'.

    Thanks and Best Regards,

    SI.

  • TX packet transfer - when connected with PC, ping was OK, but no data transferred using Telnet or else.

    it seemed over long data packets(1024 bytes) can not be transferred.

    This issue is solved. Sitara clcok setting changed 24Mhz to 25Mhz. Hardware setting is 25Mhz.

    Below issue is still not solved.
    Could you guide to solve it.
    I found several issues at e2e but I did not find solution to solve this issue.

    - Eth0 down together even when user link down only eth1. e.g. When user link down eth1 using ifconfig eth1 down, eth0 also link down together.
    Customer is using RGMII I/F and only 10/100 mode.
  • Hi Schuyler,

    As Philip said, 'TX packet transfer' issue was resolved by changing wrong clock setting in u-boot, and now we need to focus why eth1 will be down together when eth0 is down.
    Could you please provide a guide where they should check to solve this issue? Do you need more information to look into this issue?


    Thanks and Best Regards,
    SI.
  • Hi SI,

    Is the kernel configuration much different than the one provided with the TI SDK? If it is a quick check might be to use the default TI SDK kernel config.

    Please ask the customer to perform these commands starting with the both ports up:
    ifconfig -a
    ethtool eth0
    ethtool eth1
    ethtool -S eth0
    Then take the port down and repeat the above steps. Please attach the results along with a copy of console log.

    Also please perform these commands and attach the results:

    ls /proc/device-tree/ocp/ethernet\@4a100000

    hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100200/phy_id
    hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100300/phy_id

    I also want to make sure that I understand the sequence the customer is seeing:
    With both eth0 and eth1 up, performing ifconfig eth0 down takes down eth1.

    Is there any messages indicating that eth1 is going down? If no messages, how is eth1 going down detected?

    Best Regards,
    Schuyler
  • Hi Schuyler,

    Thanks for your response and suggestion.
    Is there any possibility that this issue caused by u-boot configuration?


    We will check kernel configuration again as you recommended and will post the test result soon.


    Thanks and Best Regards,
    SI.
  • Hi SI,
    I don't think U-Boot would be causing the issue since U-Boot only has the ability to use one ethernet interface at a time. That is a good question to ask, I think we need to review pin mux is correct for both desired interfaces and make sure there are not any issues there.
    Best Regards,
    Schuyler
  • Hi Schuyler,

    Could you please check below attached log for your request?

    Log.zip

    Thanks and Best Regards,

    SI.

    Is the kernel configuration much different than the one provided with the TI SDK? If it is a quick check might be to use the default TI SDK kernel config.

    Please ask the customer to perform these commands starting with the both ports up:
    ifconfig -a 
    ethtool eth0
    ethtool eth1
    ethtool -S eth0
    Then take the port down and repeat the above steps. Please attach the results along with a copy of console log.

    Also please perform these commands and attach the results:

    ls /proc/device-tree/ocp/ethernet\@4a100000

    hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100200/phy_id
    hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100300/phy_id

    I also want to make sure that I understand the sequence the customer is seeing:
    With both eth0 and eth1 up, performing ifconfig eth0 down takes down eth1. 

    Is there any messages indicating that eth1 is going down? If no messages, how is eth1 going down detected?

  • HI SI,

    Thanks for the requested data. Looking the link down states and the ethtool results for both ports the Link detected is showing no connection. Without a link detection the cpsw driver will not be able to obtain an ip address for the interface. If the interface was commanded to be with ifconfig eth0 up and the link is not being detected then the issue might be independent of the SW. For example, this could indicate an issue with the PHY not being reset correctly or it is not reading it's strapping correctly. Was the attached boot log for the link down state? When were the ethtool captures done? Just after the board finished booting?

    Best Regards,
    Schuyler

    root@am335x-evm:~# ethtool eth0

    Link detected: no <- - - - The PHY is not connected to a link partner.


    eth1 Link encap:Ethernet HWaddr 98:5D:AD:48:B5:D3
    BROADCAST MULTICAST MTU:1500 Metric:1

    root@am335x-evm:~# ethtool eth1

    Link detected: no <- - - - The PHY is not connected to a link partner.
  • Hi Schuyler,

    They captured logs as below.

    1. Booting (Booting-log.txt)

    2. ifconfig –a (Normal/ifconfig –a.txt)

    3. ethtool eth0 (Normal/ethtool eth0.txt)

    4. ethtool eth1 (Normal/ethtool eth1.txt)

    5. ethtool –S eth0 (Normal/ethtool –S eth0.txt)

    6. ethtool –S eth1 (Normal/ethtool –S eth1.txt)

    7. ls /proc/device-tree/ocp/ethernet\@4a100000 (Normal/hexdump -C procdevice-treeocpethernet@4a100000slave@4a100200phy_id.txt)

    8. ls /proc/device-tree/ocp/ethernet\@4a100000 (Normal/hexdump -C procdevice-treeocpethernet@4a100000slave@4a100300phy_id.txt)

    9. ifconfig eth1 down ‘kernel log : cpsw 4a100000.ethernet eth0: Link is Down’ (Link-Down/ifconfig -a.txt)

    10. ifconfig –a (Link-Down/ifconfig –a.txt)

    11. ethtool eth0 (Link-Down/ethtool eth0.txt)

    12. ethtool eth1 (Link-Down/ethtool eth1.txt)

    13. ethtool –S eth0 (Link-Down/ethtool –S eth0.txt)

    14. ethtool –S eth1 (Link-Down/ethtool –S eth1.txt)

    15. ls /proc/device-tree/ocp/ethernet\@4a100000 (Link-Down/hexdump -C procdevice-treeocpethernet@4a100000slave@4a100200phy_id.txt)

    16. ls /proc/device-tree/ocp/ethernet\@4a100000 (Link-Down/hexdump -C procdevice-treeocpethernet@4a100000slave@4a100300phy_id.txt)

    It seemed there is no issue and links were detected well and each ethernet ports get ip address successfully from different DHCP server during 1 ~ 8.(under '/Normal' directory).

    e.g. it seemed there was no issue while booting and all ethernet ports are working well before trying to make 'eth1' down by using ifconfig.

    From 9(9th log), you can find 'kernel log:cpsw 4a100000.ethernet eth0: Link is Down’ message although only eth1 was down.

    10 ~ 16 logs, all logs are after 'Link-Down' occurred.

    Sorry for your confusion.

    one strange thing is there was no issue when only 'eth0' was down. e.g. when only 'eth0' was down by 'ifconfig eth0 down', eth1 is still connected as expected. It seemed this is related with the sequence of ports. e.g. because eth1 was initialized before eth0.

    In below 290th line captured from Booting-log.txt, what is the meaning of 'net eth0: initialized cpsw ale version 1.4'? is this related with this issue?

    Do you still think there was an issue in Link connection?

    Thanks and Best Regards,

    SI.

  • Hi SI,

    Thanks for the clarification on the order of how the data was captured. That helped clear some questions I had. Your last point I agree that it seems odd that eth1 is initializing first. It could be related, it is almost like the PHY addressing is swapped between the interfaces.

    What happens when eth0 is taken down while eth1 is up? Also try unplugging eth0 while the link is up and then the same eth1. Please attach the console log after each step as well the results of ethool for each interface.

    I reviewed the pin mux again and it is just like what is being used for the TI EVM-SK board.

    Currently I am looking at how the PHY addressing is done, the customer is using hex addressing in the DTS file, could they try decimal addressing?
    Example would be this:

    dp83867_0: ethernet-phy@0 {
    reg = <0>;

    };
    dp83867_1: ethernet-phy@13 {
    reg = <13>;

    };

    Best Regards,
    Schuyler
  • Hi Schuyler,

    There is still an issue after changing decimal addressing in dts. I attached dts file and please check it if our modification is right.(zip file - pls unzip.)

    am335x-decimal.zip

    And, I also attached log showing our test after booting.

    in 611th line, you can find there is no issue with 'ifconfig eth0 down'.

    in 664th line, you can find 2 ethernet ports were down with 'ifconfig eth1 down', and 2 ethernet ports were not worked after 'cpsw 4a100000.ethernet eth0: Link is Down' message printed.

    U-Boot SPL 2017.01-00360-gc6c77f9-dirty (Dec 27 2017 - 09:56:15)
    Trying to boot from MMC1
    ** First descriptor is NOT a primary desc on 1:1 **
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2017.01-00360-gc6c77f9-dirty (Dec 27 2017 - 09:56:15 +0900)
    
    CPU  : AM335X-GP rev 2.1
    I2C:   ready
    DRAM:  512 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    ** First descriptor is NOT a primary desc on 1:1 **
    Net:   cpsw, usb_ether
    Press SPACE to abort autoboot in 2 seconds
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    3585008 bytes read in 303 ms (11.3 MiB/s)
    35464 bytes read in 23 ms (1.5 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff4000, end 8ffffa87 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.9.41-ge3a80a1c5c (root@yjkim-Ubuntu16) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #185 PREEMPT Wed Dec 27 11:17:32 KST 2017
    [    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 AIM
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x9d000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=7a7f930d-02 rw rootfstype=ext4 rootwait
    [    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: 457992K/524288K available (7168K kernel code, 273K rwdata, 2344K rodata, 1024K init, 280K bss, 17144K 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 - 0xc0800000   (8160 kB)
    [    0.000000]       .init : 0xc0b00000 - 0xc0c00000   (1024 kB)
    [    0.000000]       .data : 0xc0c00000 - 0xc0c44710   ( 274 kB)
    [    0.000000]        .bss : 0xc0c44710 - 0xc0c8a974   ( 281 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
    [    0.000014] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000031] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000040] OMAP clocksource: timer1 at 25000000 Hz
    [    0.000168] clocksource_probe: no matching clocksources found
    [    0.000321] Console: colour dummy device 80x30
    [    0.000344] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000350] This ensures that you still see kernel messages. Please
    [    0.000354] update your kernel commandline.
    [    0.000375] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089269] pid_max: default: 32768 minimum: 301
    [    0.089387] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089397] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090106] CPU: Testing write buffer coherency: ok
    [    0.090441] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.091182] EFI services will not be available.
    [    0.092339] devtmpfs: initialized
    [    0.101512] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.101845] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.101870] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.105148] pinctrl core: initialized pinctrl subsystem
    [    0.106287] NET: Registered protocol family 16
    [    0.107932] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.120361] omap_hwmod: debugss: _wait_target_disable failed
    [    0.199262] cpuidle: using governor ladder
    [    0.229249] cpuidle: using governor menu
    [    0.234457] OMAP GPIO hardware version 0.1
    [    0.247084] No ATAGs?
    [    0.247108] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.286405] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.289145] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.289410] media: Linux media interface: v0.10
    [    0.289463] Linux video capture interface: v2.00
    [    0.289500] pps_core: LinuxPPS API ver. 1 registered
    [    0.289506] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.289527] PTP clock support registered
    [    0.289569] EDAC MC: Ver: 3.0.0
    [    0.290527] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.290812] Advanced Linux Sound Architecture Driver Initialized.
    [    0.291909] clocksource: Switched to clocksource timer1
    [    0.300891] NET: Registered protocol family 2
    [    0.301596] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.301639] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.301677] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.301741] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.301757] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.301879] NET: Registered protocol family 1
    [    0.302325] RPC: Registered named UNIX socket transport module.
    [    0.302336] RPC: Registered udp transport module.
    [    0.302342] RPC: Registered tcp transport module.
    [    0.302347] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.303154] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.305225] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    0.311800] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.312828] NFS: Registering the id_resolver key type
    [    0.312869] Key type id_resolver registered
    [    0.312875] Key type id_legacy registered
    [    0.312915] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.314568] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [    0.314585] io scheduler noop registered
    [    0.314591] io scheduler deadline registered
    [    0.314718] io scheduler cfq registered (default)
    [    0.315869] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.369539] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.372962] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [    0.953839] console [ttyS0] enabled
    [    0.958364] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
    [    0.968774] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    0.975614] [drm] Initialized
    [    0.990630] brd: module loaded
    [    0.999417] loop: module loaded
    [    1.004416] libphy: Fixed MDIO Bus: probed
    [    1.081987] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.088126] libphy: 4a101000.mdio: probed
    [    1.093605] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver TI DP83867
    [    1.102006] davinci_mdio 4a101000.mdio: phy[13]: device 4a101000.mdio:0d, driver TI DP83867
    [    1.111048] cpsw 4a100000.ethernet: Detected MACID = 98:5d:ad:48:b5:d1
    [    1.117814] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.126133] cpsw 4a100000.ethernet: cpsw: Detected MACID = 98:5d:ad:48:b5:d3
    [    1.134608] mousedev: PS/2 mouse device common for all mice
    [    1.140536] i2c /dev entries driver
    [    1.145712] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.153418] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.272415] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.283889] NET: Registered protocol family 10
    [    1.289752] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.296706] NET: Registered protocol family 17
    [    1.301473] Key type dns_resolver registered
    [    1.306118] omap_voltage_late_init: Voltage driver support not added
    [    1.323292] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.334428] mmc0: new high speed SDHC card at address aaaa
    [    1.340559] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
    [    1.346875]  mmcblk0: p1 p2
    [    1.355271] random: fast init done
    [    1.362850] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.368829] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
    [    1.375703] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.383495] hctosys: unable to open rtc device (rtc0)
    [    1.389141] ALSA device list:
    [    1.392373] mmc1: new high speed MMC card at address 0001
    [    1.398280]   No soundcards found.
    [    1.402226] mmcblk1: mmc1:0001 W52516 14.6 GiB
    [    1.407032] mmcblk1boot0: mmc1:0001 W52516 partition 1 4.00 MiB
    [    1.413624] mmcblk1boot1: mmc1:0001 W52516 partition 2 4.00 MiB
    [    1.452046] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
    [    1.462943] EXT4-fs (mmcblk0p2): recovery complete
    [    1.469328] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.477580] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    1.486397] devtmpfs: mounted
    [    1.490851] Freeing unused kernel memory: 1024K (c0b00000 - c0c00000)
    [    1.752373] systemd[1]: System time before build time, advancing clock.
    [    1.825084] systemd[1]: systemd 230 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
    [    1.844034] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2017.06!
    
    [    1.883421] systemd[1]: Set hostname to <am335x-evm>.
    [    2.378031] systemd[1]: Listening on Syslog Socket.
    [  OK  ] Listening on Syslog Socket.
    [    2.416143] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    2.452497] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    2.492178] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    2.522244] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    2.576155] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    2.620423] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Listening on Journal Socket.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Listening on Journal Socket (/dev/log).
    [  OK  ] Created slice System Slice.
             Starting Journal Service...
             Mounting Temporary Directory...
             Starting Load Kernel Modules...
             Mounting Debug File System...
             Mounting POSIX Message Queue File System...
    [  OK  ] Reached target Slices.
    [    3.183663] cryptodev: loading out-of-tree module taints kernel.
    [    3.190654] cryptodev: disagrees about version of symbol crypto_alloc_aead
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    3.229718] cryptodev: Unknown symbol crypto_alloc_aead (err -22)
    [    3.255980] cryptodev: disagrees about version of symbol crypto_aead_setauthsize
    [    3.255990] cryptodev: Unknown symbol crypto_aead_setauthsize (err -22)
    [    3.256057] cryptodev: disagrees about version of symbol crypto_aead_setkey
    [    3.256061] cryptodev: Unknown symbol crypto_aead_setkey (err -22)
    [    3.256205] cryptodev: disagrees about version of symbol crypto_alloc_skcipher
    [    3.256209] cryptodev: Unknown symbol crypto_alloc_skcipher (err -22)
             Starting Setup Virtual Console...
    [  OK  ] Created slice system-getty.slice.
             Starting Create list of required st... nodes for the current kernel...
             Starting Remount Root and Kernel File Systems...
    [  OK  ] Mounted Debug File System.
    [    3.478535] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory.
    [  OK  ] Started Journal Service.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [  OK  ] Started Setup Virtual Console.
    [  OK  ] Started Create list of required sta...ce nodes for the current kernel.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting udev Coldplug all Devices...
             Starting Create Static Device Nodes in /dev...
             Mounting Configuration File System...
             Starting Apply Kernel Variables...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Mounted Configuration File System.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Started Apply Kernel Variables.
    [    4.155815] systemd-journald[89]: Received request to flush runtime journal from PID 1
             Starting udev Kernel Device Manager...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /var/volatile...
             Mounting /media/ram...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Flush Journal to Persistent Storage.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [    5.550377] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [  OK  ] Found device /dev/ttyS0.
    [    5.602939] ti_am3359-tscadc 44e0d000.tscadc: Need atleast one channel.
    [  OK  ] Started udev Coldplug all Devices.
    [    5.714531] ti_am3359-tscadc: probe of 44e0d000.tscadc failed with error -22
    [  OK  ] Reached target System Initialization.
    [    5.824826] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started System Logging Service.
             Starting telnetd.service...
    [  OK  ] Started Kernel Logging Service.
    [  OK  ] Started D-Bus System Message Bus.
    [    6.484863] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    6.570065] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    6.604633] PM: Cannot get wkup_m3_ipc handle
    [    6.713438] remoteproc remoteproc0: wkup_m3 is available
    [    6.716695] PM: Cannot get wkup_m3_ipc handle
    [    6.716763] remoteproc remoteproc0: powering up wkup_m3
    [    6.740828] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 224344
    [    6.741096] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [    6.741124] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
             Starting Login Service...
             Starting Network Service...
    [    7.288473] PM: bootloader does not support rtc-only!
    [    7.293917] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    7.322105] omap-aes 53500000.aes: will run requests pump with realtime priority
             Starting Print notice about GPLv3 packages...
    [  OK  ] Started telnetd.service.
    [  OK  ] Found device /dev/ttyS3.
    [  OK  ] Started Network Service.
    [    8.355177] net eth1: initializing cpsw version 1.12 (0)
    [    8.422161] net eth0: initialized cpsw ale version 1.4
    [    8.427341] net eth0: ALE Table size 1024
    [  OK  ] Started Login Service.
    [  OK  ] Reached target Network.
             Starting Network Name Resolution...
             Starting Permit User Sessions...
             Starting thttpd.service...
    [    8.885359] TI DP83867 4a101000.mdio:0d: attached PHY driver [TI DP83867] (mii_bus:phy_addr=4a101000.mdio:0d, irq=-1)
    [  OK  ] Started Permit User Sessions.
    [    9.276145] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [    9.456355] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    9.546288] net eth0: initializing cpsw version 1.12 (0)
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Started thttpd.service.
    [    9.721888] TI DP83867 4a101000.mdio:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=4a101000.mdio:00, irq=-1)
    [    9.927389] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   10.243079] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
    [   10.251185] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Starting rng-tools.service...
    [  OK  ] Started Getty on tty1.
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [   10.869514] random: crng init done
    [  OK  ] Started rng-tools.service.
    [  OK  ] Started Synchronize System and HW clocks.
             Starting Hostname Service...
             Starting thermal-zone-init.service...
    [  OK  ] Started thermal-zone-init.service.
    [  OK  ] Started Hostname Service.
    [   12.003247] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   12.011349] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            binutils
            cifs-utils
            dosfstools
            libreadline6
            m4
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [  OK  ] Started Print notice about GPLv3 packages.
    [   12.971450] 47401300.usb-phy supply vcc not found, using dummy regulator
    [   13.018615] usbcore: registered new interface driver usbfs
    [   13.018683] usbcore: registered new interface driver hub
    [   13.066592] usbcore: registered new device driver usb
    [   13.196592] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [   13.253551] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [   13.333381] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [   13.345016] hub 1-0:1.0: USB hub found
    [   13.372301] hub 1-0:1.0: 1 port detected
    [   13.403468] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [   13.426203] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
    [   13.459196] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [   13.459228] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    [   13.497301] hub 2-0:1.0: USB hub found
    [   13.497345] hub 2-0:1.0: 1 port detected
    [   13.651733] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
    [   13.761298] remoteproc remoteproc1: 4a334000.pru0 is available
    [   13.795863] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a334000 probed successfully
    [   13.832250] remoteproc remoteproc2: 4a338000.pru1 is available
    [   13.838205] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a338000 probed successfully
    [   14.107298] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c
    [  OK  ] Reached target Multi-User System.
             Starting Update UTMP about System Runlevel Changes...
    [  OK  ] Started Update UTMP about System Runlevel Changes.
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org am335x-evm ttyS0
    
    Arago 2017.06 am335x-evm ttyS0
    
    am335x-evm login: root
    root@am335x-evm:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D1
              inet addr:192.168.0.51  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::9a5d:adff:fe48:b5d1%763860/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1180 (1.1 KiB)  TX bytes:2902 (2.8 KiB)
              Interrupt:173
    
    eth1      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D3
              inet addr:10.42.0.81  Bcast:10.42.0.255  Mask:255.255.255.0
              inet6 addr: fe80::9a5d:adff:fe48:b5d3%763860/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:10 errors:0 dropped:0 overruns:0 frame:0
              TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1966 (1.9 KiB)  TX bytes:3084 (3.0 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1%763860/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:332 errors:0 dropped:0 overruns:0 frame:0
              TX packets:332 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:25376 (24.7 KiB)  TX bytes:25376 (24.7 KiB)
    
    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:1
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    root@am335x-evm:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                                 100baseT/Half 100baseT/Full
            Link partner advertised pause frame use: Symmetric
            Link partner advertised auto-negotiation: Yes
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: external
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: yes
    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: No
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                                 100baseT/Half 100baseT/Full
            Link partner advertised pause frame use: Symmetric
            Link partner advertised auto-negotiation: Yes
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 13
            Transceiver: external
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: yes
    root@am335x-evm:~# ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 56
         Broadcast Rx Frames: 26
         Multicast Rx Frames: 27
         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: 9279
         Good Tx Frames: 61
         Broadcast Tx Frames: 4
         Multicast Tx Frames: 56
         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: 6840
         Rx + Tx 64 Octet Frames: 14
         Rx + Tx 65-127 Octet Frames: 61
         Rx + Tx 128-255 Octet Frames: 34
         Rx + Tx 256-511 Octet Frames: 6
         Rx + Tx 512-1023 Octet Frames: 2
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 16119
         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: 160
         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: 26
         Rx DMA chan 0: good_dequeue: 33
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 61
         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: 5
         Tx DMA chan 0: empty_dequeue: 61
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 61
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ethtool -S eth1
    NIC statistics:
         Good Rx Frames: 58
         Broadcast Rx Frames: 26
         Multicast Rx Frames: 29
         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: 9627
         Good Tx Frames: 61
         Broadcast Tx Frames: 4
         Multicast Tx Frames: 56
         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: 6840
         Rx + Tx 64 Octet Frames: 14
         Rx + Tx 65-127 Octet Frames: 61
         Rx + Tx 128-255 Octet Frames: 36
         Rx + Tx 256-511 Octet Frames: 6
         Rx + Tx 512-1023 Octet Frames: 2
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 16467
         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: 160
         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: 26
         Rx DMA chan 0: good_dequeue: 33
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 61
         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: 5
         Tx DMA chan 0: empty_dequeue: 61
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 61
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ls /proc/device-tree/ocp/ethernet\@4a100000
    #address-cells         ale_entries            clocks                 cpsw-phy-sel@44e10650  dual_emac              mac_control            pinctrl-0              ranges                 slave@4a100300         syscon
    #size-cells            bd_ram_size            compatible             cpts_clock_mult        interrupt-parent       mdio@4a101000          pinctrl-1              reg                    slaves                 ti,hwmods
    active_slave           clock-names            cpdma_channels         cpts_clock_shift       interrupts             name                   pinctrl-names          slave@4a100200         status
    root@am335x-evm:~# hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100200/phy_id
    00000000  00 00 00 49 00 00 00 00                           |...I....|
    00000008
    root@am335x-evm:~# hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100300/phy_id
    00000000  00 00 00 49 00 00 00 0d                           |...I....|
    00000008
    root@am335x-evm:~# ifconfig eth0 down
    root@am335x-evm:~# ifconfig eth1 down
    root@am335x-evm:~# ifconfig eth1 up
    [  534.419354] net eth1: initializing cpsw version 1.12 (0)
    [  534.424882] net eth0: initialized cpsw ale version 1.4
    [  534.430069] net eth0: ALE Table size 1024
    [  534.465519] TI DP83867 4a101000.mdio:0d: attached PHY driver [TI DP83867] (mii_bus:phy_addr=4a101000.mdio:0d, irq=-1)
    [  534.504532] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [  536.563329] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
    [  536.571556] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
    root@am335x-evm:~# ifconfig eth0 up
    [  551.204643] net eth0: initializing cpsw version 1.12 (0)
    [  551.231031] TI DP83867 4a101000.mdio:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=4a101000.mdio:00, irq=-1)
    [  551.271497] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  553.363326] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [  553.371561] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    root@am335x-evm:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D1
              inet addr:192.168.0.51  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::9a5d:adff:fe48:b5d1%763860/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1830 (1.7 KiB)  TX bytes:5822 (5.6 KiB)
              Interrupt:173
    
    eth1      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D3
              inet addr:10.42.0.81  Bcast:10.42.0.255  Mask:255.255.255.0
              inet6 addr: fe80::9a5d:adff:fe48:b5d3%763860/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:204 errors:0 dropped:0 overruns:0 frame:0
              TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:31291 (30.5 KiB)  TX bytes:6064 (5.9 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1%763860/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:3224 errors:0 dropped:0 overruns:0 frame:0
              TX packets:3224 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:245312 (239.5 KiB)  TX bytes:245312 (239.5 KiB)
    
    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:1
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    
    root@am335x-evm:~# ifconfig eth1 down
    [  632.403182] cpsw 4a100000.ethernet eth0: Link is Down
    root@am335x-evm:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D1
              inet6 addr: fe80::9a5d:adff:fe48:b5d1%763860/64 Scope:Link
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1830 (1.7 KiB)  TX bytes:6188 (6.0 KiB)
              Interrupt:173
    
    eth1      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D3
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:226 errors:0 dropped:0 overruns:0 frame:0
              TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:34681 (33.8 KiB)  TX bytes:6308 (6.1 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1%763860/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:3704 errors:0 dropped:0 overruns:0 frame:0
              TX packets:3704 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:281792 (275.1 KiB)  TX bytes:281792 (275.1 KiB)
    
    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:1
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    root@am335x-evm:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Link partner advertised link modes:  10baseT/Full
                                                 100baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: external
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: no
    root@am335x-evm:~# ethtool eth1
    Settings for eth1:
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: no
    root@am335x-evm:~# ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 66
         Broadcast Rx Frames: 40
         Multicast Rx Frames: 24
         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: 10960
         Good Tx Frames: 47
         Broadcast Tx Frames: 2
         Multicast Tx Frames: 44
         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: 5112
         Rx + Tx 64 Octet Frames: 8
         Rx + Tx 65-127 Octet Frames: 61
         Rx + Tx 128-255 Octet Frames: 37
         Rx + Tx 256-511 Octet Frames: 6
         Rx + Tx 512-1023 Octet Frames: 1
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 16072
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 2
         Rx DMA chan 0: tail_enqueue: 484
         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: 166
         Rx DMA chan 0: good_dequeue: 231
         Rx DMA chan 0: requeue: 1
         Rx DMA chan 0: teardown_dequeue: 127
         Tx DMA chan 0: head_enqueue: 116
         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: 10
         Tx DMA chan 0: empty_dequeue: 117
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 116
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ethtool -S eth1
    NIC statistics:
         Good Rx Frames: 66
         Broadcast Rx Frames: 40
         Multicast Rx Frames: 24
         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: 10960
         Good Tx Frames: 47
         Broadcast Tx Frames: 2
         Multicast Tx Frames: 44
         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: 5112
         Rx + Tx 64 Octet Frames: 8
         Rx + Tx 65-127 Octet Frames: 61
         Rx + Tx 128-255 Octet Frames: 37
         Rx + Tx 256-511 Octet Frames: 6
         Rx + Tx 512-1023 Octet Frames: 1
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 16072
         Rx Start of Frame Overruns: 0
         Rx Middle of Frame Overruns: 0
         Rx DMA Overruns: 0
         Rx DMA chan 0: head_enqueue: 2
         Rx DMA chan 0: tail_enqueue: 484
         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: 166
         Rx DMA chan 0: good_dequeue: 231
         Rx DMA chan 0: requeue: 1
         Rx DMA chan 0: teardown_dequeue: 127
         Tx DMA chan 0: head_enqueue: 116
         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: 10
         Tx DMA chan 0: empty_dequeue: 117
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 116
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ls /proc/device-tree/ocp/ethernet\@4a100000
    #address-cells         ale_entries            clocks                 cpsw-phy-sel@44e10650  dual_emac              mac_control            pinctrl-0              ranges                 slave@4a100300         syscon
    #size-cells            bd_ram_size            compatible             cpts_clock_mult        interrupt-parent       mdio@4a101000          pinctrl-1              reg                    slaves                 ti,hwmods
    active_slave           clock-names            cpdma_channels         cpts_clock_shift       interrupts             name                   pinctrl-names          slave@4a100200         status
    root@am335x-evm:~# hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100200/phy_id
    00000000  00 00 00 49 00 00 00 00                           |...I....|
    00000008
    root@am335x-evm:~# hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100300/phy_id
    00000000  00 00 00 49 00 00 00 0d                           |...I....|
    00000008
    root@am335x-evm:~#

    Thanks and Best Regards,

    SI.

  • Hi SI,

    Thanks for the console log and the outputs of the ethtool command. Did the customer happen to try the cable test? If not please try unplugging the cable attached to eth1 and then do the ethtool for both ports again. I would like to see if both PHYs are affected on a cable disconnect.

    Were there any changes made to the am33xx.dtsi file? Was a kernel configuration change made to the kernel to include the TI PHY driver? From the kernel sign on line it looks like the kernel was re-built, is this the case?

    Best Regards,
    Schuyler
  • Hi Schuyler,

    Thanks for your immediate response.

    I attached log when cable was disconnected in eth1, and they removed cable from the 'eth1' after 'ifconfig -a' printed.

    You can find ‘[   48.483182] cpsw 4a100000.ethernet eth1: Link is Down’  msg describing cable disconnection at eth1 in the 421th line.

    U-Boot SPL 2017.01-00360-gc6c77f9-dirty (Dec 27 2017 - 09:56:15)
    Trying to boot from MMC1
    ** First descriptor is NOT a primary desc on 1:1 **
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2017.01-00360-gc6c77f9-dirty (Dec 27 2017 - 09:56:15 +0900)
    
    CPU  : AM335X-GP rev 2.1
    I2C:   ready
    DRAM:  512 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    ** First descriptor is NOT a primary desc on 1:1 **
    Net:   cpsw, usb_ether
    Press SPACE to abort autoboot in 2 seconds
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    3585008 bytes read in 302 ms (11.3 MiB/s)
    35464 bytes read in 19 ms (1.8 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff4000, end 8ffffa87 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.9.41-ge3a80a1c5c (root@yjkim-Ubuntu16) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #185 PREEMPT Wed Dec 27 11:17:32 KST 2017
    [    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 AIM
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x9d000000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=7a7f930d-02 rw rootfstype=ext4 rootwait
    [    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: 457992K/524288K available (7168K kernel code, 273K rwdata, 2344K rodata, 1024K init, 280K bss, 17144K 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 - 0xc0800000   (8160 kB)
    [    0.000000]       .init : 0xc0b00000 - 0xc0c00000   (1024 kB)
    [    0.000000]       .data : 0xc0c00000 - 0xc0c44710   ( 274 kB)
    [    0.000000]        .bss : 0xc0c44710 - 0xc0c8a974   ( 281 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
    [    0.000015] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000032] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000041] OMAP clocksource: timer1 at 25000000 Hz
    [    0.000172] clocksource_probe: no matching clocksources found
    [    0.000322] Console: colour dummy device 80x30
    [    0.000345] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000351] This ensures that you still see kernel messages. Please
    [    0.000355] update your kernel commandline.
    [    0.000376] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089275] pid_max: default: 32768 minimum: 301
    [    0.089398] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089408] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090116] CPU: Testing write buffer coherency: ok
    [    0.090456] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.091199] EFI services will not be available.
    [    0.092348] devtmpfs: initialized
    [    0.101517] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.101848] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.101874] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.105148] pinctrl core: initialized pinctrl subsystem
    [    0.106289] NET: Registered protocol family 16
    [    0.107932] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.120350] omap_hwmod: debugss: _wait_target_disable failed
    [    0.199267] cpuidle: using governor ladder
    [    0.229257] cpuidle: using governor menu
    [    0.234467] OMAP GPIO hardware version 0.1
    [    0.247103] No ATAGs?
    [    0.247129] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.286409] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.289144] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.289406] media: Linux media interface: v0.10
    [    0.289458] Linux video capture interface: v2.00
    [    0.289494] pps_core: LinuxPPS API ver. 1 registered
    [    0.289501] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.289521] PTP clock support registered
    [    0.289563] EDAC MC: Ver: 3.0.0
    [    0.290517] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.290808] Advanced Linux Sound Architecture Driver Initialized.
    [    0.291910] clocksource: Switched to clocksource timer1
    [    0.300865] NET: Registered protocol family 2
    [    0.301571] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.301616] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.301653] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.301718] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.301733] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.301854] NET: Registered protocol family 1
    [    0.302284] RPC: Registered named UNIX socket transport module.
    [    0.302295] RPC: Registered udp transport module.
    [    0.302301] RPC: Registered tcp transport module.
    [    0.302307] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.303118] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.305195] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    0.311772] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.312798] NFS: Registering the id_resolver key type
    [    0.312838] Key type id_resolver registered
    [    0.312844] Key type id_legacy registered
    [    0.312886] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.314564] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
    [    0.314581] io scheduler noop registered
    [    0.314587] io scheduler deadline registered
    [    0.314716] io scheduler cfq registered (default)
    [    0.315876] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.369606] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.373021] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [    0.953918] console [ttyS0] enabled
    [    0.958445] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
    [    0.968849] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    0.975695] [drm] Initialized
    [    0.990699] brd: module loaded
    [    0.999477] loop: module loaded
    [    1.004474] libphy: Fixed MDIO Bus: probed
    [    1.081989] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.088129] libphy: 4a101000.mdio: probed
    [    1.093580] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver TI DP83867
    [    1.101893] davinci_mdio 4a101000.mdio: phy[13]: device 4a101000.mdio:0d, driver TI DP83867
    [    1.111027] cpsw 4a100000.ethernet: Detected MACID = 98:5d:ad:48:b5:d1
    [    1.117804] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.126121] cpsw 4a100000.ethernet: cpsw: Detected MACID = 98:5d:ad:48:b5:d3
    [    1.134592] mousedev: PS/2 mouse device common for all mice
    [    1.140520] i2c /dev entries driver
    [    1.145702] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.153419] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.272419] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.283920] NET: Registered protocol family 10
    [    1.289788] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.296729] NET: Registered protocol family 17
    [    1.301505] Key type dns_resolver registered
    [    1.306148] omap_voltage_late_init: Voltage driver support not added
    [    1.323009] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.334467] mmc0: new high speed SDHC card at address aaaa
    [    1.340590] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
    [    1.346744]  mmcblk0: p1 p2
    [    1.355265] random: fast init done
    [    1.362845] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.368835] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
    [    1.375711] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.383487] hctosys: unable to open rtc device (rtc0)
    [    1.389134] ALSA device list:
    [    1.392366] mmc1: new high speed MMC card at address 0001
    [    1.398276]   No soundcards found.
    [    1.402231] mmcblk1: mmc1:0001 W52516 14.6 GiB
    [    1.407037] mmcblk1boot0: mmc1:0001 W52516 partition 1 4.00 MiB
    [    1.413634] mmcblk1boot1: mmc1:0001 W52516 partition 2 4.00 MiB
    [    1.732376] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
    [    1.743904] EXT4-fs (mmcblk0p2): recovery complete
    [    1.750396] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.758741] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    1.772978] devtmpfs: mounted
    [    1.780903] Freeing unused kernel memory: 1024K (c0b00000 - c0c00000)
    [    2.036557] systemd[1]: System time before build time, advancing clock.
    [    2.113931] systemd[1]: systemd 230 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
    [    2.132873] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2017.06!
    
    [    2.173396] systemd[1]: Set hostname to <am335x-evm>.
    [    2.662348] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    2.702513] systemd[1]: Listening on Syslog Socket.
    [  OK  ] Listening on Syslog Socket.
    [    2.732190] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    2.762151] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    2.792516] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [    2.832394] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    2.872485] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Listening on Process Core Dump Socket.
    [  OK  ] Created slice System Slice.
    [  OK  ] Created slice system-getty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [  OK  ] Listening on Journal Socket.
             Mounting Debug File System...
             Starting Load Kernel Modules...
    [  OK  ] Listening on udev Control Socket.
    [    3.163669] cryptodev: loading out-of-tree module taints kernel.
    [    3.170285] cryptodev: disagrees about version of symbol crypto_alloc_aead
    [    3.182131] cryptodev: Unknown symbol crypto_alloc_aead (err -22)
    [    3.188306] cryptodev: disagrees about version of symbol crypto_aead_setauthsize
             [    3.205088] cryptodev: Unknown symbol crypto_aead_setauthsize (err -22)
    Starting Remount Root and Kernel File Systems...
    [    3.221640] cryptodev: disagrees about version of symbol crypto_aead_setkey
    [    3.269716] cryptodev: Unknown symbol crypto_aead_setkey (err -22)
    [    3.269976] cryptodev: disagrees about version of symbol crypto_alloc_skcipher
    [    3.269982] cryptodev: Unknown symbol crypto_alloc_skcipher (err -22)
    [    3.310340] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
             Starting Create list of required st... nodes for the current kernel...
    [  OK  ] Created slice User and Session Slice.
    [  OK  ] Reached target Slices.
             Mounting Temporary Directory...
    [  OK  ] Listening on Journal Socket (/dev/log).
             Mounting POSIX Message Queue File System...
    [  OK  ] Listening on udev Kernel Socket.
             Starting Journal Service...
             Starting Setup Virtual Console...
    [  OK  ] Mounted Debug File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory.
    [  OK  ] Started Journal Service.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [  OK  ] Started Remount Root and Kernel File Systems.
    [  OK  ] Started Create list of required sta...ce nodes for the current kernel.
    [  OK  ] Started Setup Virtual Console.
             Starting Create Static Device Nodes in /dev...
             Starting udev Coldplug all Devices...
             Mounting Configuration File System...
             Starting Apply Kernel Variables...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Mounted Configuration File System.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Started Apply Kernel Variables.
    [    4.332772] systemd-journald[105]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /var/volatile...
             Mounting /media/ram...
             Starting udev Kernel Device Manager...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Started udev Kernel Device Manager.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Update UTMP about System Boot/Shutdown...
             Starting Network Time Synchronization...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Found device /dev/ttyS0.
    [    5.765304] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    5.854368] ti_am3359-tscadc 44e0d000.tscadc: Need atleast one channel.
    [    5.861051] ti_am3359-tscadc: probe of 44e0d000.tscadc failed with error -22
    [  OK  ] Started udev Coldplug all Devices.
    [    6.008816] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting telnetd.service...
             Starting Print notice about GPLv3 packages...
    [  OK  ] Started D-Bus System Message Bus.
    [    6.592612] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    6.711448] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    6.794150] remoteproc remoteproc0: wkup_m3 is available
    [    6.806362] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    6.812218] omap-aes 53500000.aes: will run requests pump with realtime priority
    [    7.129154] remoteproc remoteproc0: powering up wkup_m3
    [    7.148888] PM: Cannot get wkup_m3_ipc handle
             Starting Network Service...
    [    7.286185] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 224344
    [  OK  ] Started Kernel Logging Service.
    [    7.441282] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [    7.441302] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
             Starting Login Service...
    [  OK  ] Started System Logging Service.
    [  OK  ] Started telnetd.service.
    [  OK  ] Started Network Service.
    [  OK  ] Found device /dev/ttyS3.
    [    8.251605] net eth1: initializing cpsw version 1.12 (0)
    [    8.329795] net eth0: initialized cpsw ale version 1.4
    [    8.461269] net eth0: ALE Table size 1024
    [  OK  ] Started Login Service.
    [  OK  ] Reached target Network.
             Starting Permit User Sessions...
             Starting Network Name Resolution...
    [    8.749487] TI DP83867 4a101000.mdio:0d: attached PHY driver [TI DP83867] (mii_bus:phy_addr=4a101000.mdio:0d, irq=-1)
             Starting thttpd.service...
    [  OK  ] Started Permit User Sessions.
    [    9.101756] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [  OK  ] Started Network Name Resolution.
    [    9.323061] net eth0: initializing cpsw version 1.12 (0)
    [    9.620578] TI DP83867 4a101000.mdio:00: attached PHY driver [TI DP83867] (mii_bus:phy_addr=4a101000.mdio:00, irq=-1)
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Started Getty on tty1.
    [    9.873150] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    9.937386] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started thttpd.service.
    [  OK  ] Started Synchronize System and HW clocks.
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Starting rng-tools.service...
    [   11.043055] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
    [   11.051159] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
    [  OK  ] Started rng-tools.service.
    [   11.294632] random: crng init done
             Starting thermal-zone-init.service...
    [  OK  ] Started thermal-zone-init.service.
             Starting Hostname Service...
    [  OK  ] Started Hostname Service.
    [   11.923084] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   11.931188] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
            binutils
            cifs-utils
            dosfstools
            libreadline6
            m4
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [  OK  ] Started Print notice about GPLv3 packages.
    [   12.985341] PM: bootloader does not support rtc-only!
    [   13.023203] 47401300.usb-phy supply vcc not found, using dummy regulator
    [   13.023738] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [   13.116423] usbcore: registered new interface driver usbfs
    [   13.116496] usbcore: registered new interface driver hub
    [   13.121745] usbcore: registered new device driver usb
    [   13.150469] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [   13.150504] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [   13.240966] hub 1-0:1.0: USB hub found
    [   13.241013] hub 1-0:1.0: 1 port detected
    [   13.297072] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [   13.297107] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    [   13.313761] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [   13.315186] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
    [   13.315699] irq: no irq domain found for /ocp/pruss_soc_bus@4a326000/pruss@4a300000/intc@4a320000 !
    [   13.321104] hub 2-0:1.0: USB hub found
    [   13.321147] hub 2-0:1.0: 1 port detected
    [   13.548041] remoteproc remoteproc1: 4a334000.pru0 is available
    [   13.548130] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a334000 probed successfully
    [   13.571240] remoteproc remoteproc2: 4a338000.pru1 is available
    [   13.571310] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss_soc_bus@4a326000/pruss@4a300000/pru@4a338000 probed successfully
    [   13.931095] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c
    [  OK  ] Reached target Multi-User System.
             Starting Update UTMP about System Runlevel Changes...
    [  OK  ] Started Update UTMP about System Runlevel Changes.
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org am335x-evm ttyS0
    
    Arago 2017.06 am335x-evm ttyS0
    
    am335x-evm login: root
    root@am335x-evm:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D1
              inet addr:192.168.0.51  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::9a5d:adff:fe48:b5d1%763860/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1180 (1.1 KiB)  TX bytes:2902 (2.8 KiB)
              Interrupt:173
    
    eth1      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D3
              inet addr:10.42.0.81  Bcast:10.42.0.255  Mask:255.255.255.0
              inet6 addr: fe80::9a5d:adff:fe48:b5d3%763860/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:16 errors:0 dropped:0 overruns:0 frame:0
              TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:2421 (2.3 KiB)  TX bytes:2962 (2.8 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1%763860/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:332 errors:0 dropped:0 overruns:0 frame:0
              TX packets:332 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:25376 (24.7 KiB)  TX bytes:25376 (24.7 KiB)
    
    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:1
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    root@am335x-evm:~# 
    [   48.483182] cpsw 4a100000.ethernet eth1: Link is Down
    
    root@am335x-evm:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D1
              inet addr:192.168.0.51  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::9a5d:adff:fe48:b5d1%763860/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1180 (1.1 KiB)  TX bytes:3268 (3.1 KiB)
              Interrupt:173
    
    eth1      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D3
              inet6 addr: fe80::9a5d:adff:fe48:b5d3%763860/64 Scope:Link
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:16 errors:0 dropped:0 overruns:0 frame:0
              TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:2421 (2.3 KiB)  TX bytes:3206 (3.1 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1%763860/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:492 errors:0 dropped:0 overruns:0 frame:0
              TX packets:492 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:37536 (36.6 KiB)  TX bytes:37536 (36.6 KiB)
    
    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:1
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    root@am335x-evm:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                                 100baseT/Half 100baseT/Full
            Link partner advertised pause frame use: Symmetric
            Link partner advertised auto-negotiation: Yes
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: external
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: yes
    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: No
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Speed: 10Mb/s
            Duplex: Half
            Port: MII
            PHYAD: 13
            Transceiver: external
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: no
    root@am335x-evm:~# ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 50
         Broadcast Rx Frames: 13
         Multicast Rx Frames: 34
         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: 8313
         Good Tx Frames: 61
         Broadcast Tx Frames: 4
         Multicast Tx Frames: 56
         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: 6840
         Rx + Tx 64 Octet Frames: 14
         Rx + Tx 65-127 Octet Frames: 62
         Rx + Tx 128-255 Octet Frames: 25
         Rx + Tx 256-511 Octet Frames: 8
         Rx + Tx 512-1023 Octet Frames: 2
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 15153
         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: 147
         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: 15
         Rx DMA chan 0: good_dequeue: 20
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 61
         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: 5
         Tx DMA chan 0: empty_dequeue: 61
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 61
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ethtool -S eth1
    NIC statistics:
         Good Rx Frames: 50
         Broadcast Rx Frames: 13
         Multicast Rx Frames: 34
         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: 8313
         Good Tx Frames: 61
         Broadcast Tx Frames: 4
         Multicast Tx Frames: 56
         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: 6840
         Rx + Tx 64 Octet Frames: 14
         Rx + Tx 65-127 Octet Frames: 62
         Rx + Tx 128-255 Octet Frames: 25
         Rx + Tx 256-511 Octet Frames: 8
         Rx + Tx 512-1023 Octet Frames: 2
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 15153
         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: 147
         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: 15
         Rx DMA chan 0: good_dequeue: 20
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 61
         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: 5
         Tx DMA chan 0: empty_dequeue: 61
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 61
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ls /proc/device-tree/ocp/ethernet\@4a100000
    #address-cells         bd_ram_size            cpdma_channels         dual_emac              mdio@4a101000          pinctrl-names          slave@4a100300         ti,hwmods
    #size-cells            clock-names            cpsw-phy-sel@44e10650  interrupt-parent       name                   ranges                 slaves
    active_slave           clocks                 cpts_clock_mult        interrupts             pinctrl-0              reg                    status
    ale_entries            compatible             cpts_clock_shift       mac_control            pinctrl-1              slave@4a100200         syscon
    root@am335x-evm:~# hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100200/phy_id
    00000000  00 00 00 49 00 00 00 00                           |...I....|
    00000008
    root@am335x-evm:~# hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100300/phy_id
    00000000  00 00 00 49 00 00 00 0d                           |...I....|
    00000008
    root@am335x-evm:~# ifconfig eth1 down
    [  156.482896] cpsw 4a100000.ethernet eth0: Link is Down
    
    root@am335x-evm:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D1
              inet6 addr: fe80::9a5d:adff:fe48:b5d1%763860/64 Scope:Link
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1702 (1.6 KiB)  TX bytes:3390 (3.3 KiB)
              Interrupt:173
    
    eth1      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D3
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:16 errors:0 dropped:0 overruns:0 frame:0
              TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:2421 (2.3 KiB)  TX bytes:3206 (3.1 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1%763860/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:1132 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1132 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:86176 (84.1 KiB)  TX bytes:86176 (84.1 KiB)
    
    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:1
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    root@am335x-evm:~# ifconfig eth1 down
    root@am335x-evm:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D1
              inet6 addr: fe80::9a5d:adff:fe48:b5d1%763860/64 Scope:Link
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1702 (1.6 KiB)  TX bytes:3390 (3.3 KiB)
              Interrupt:173
    
    eth1      Link encap:Ethernet  HWaddr 98:5D:AD:48:B5:D3
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:16 errors:0 dropped:0 overruns:0 frame:0
              TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:2421 (2.3 KiB)  TX bytes:3206 (3.1 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1%763860/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:1212 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1212 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1
              RX bytes:92256 (90.0 KiB)  TX bytes:92256 (90.0 KiB)
    
    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:1
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    root@am335x-evm:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ TP MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Link partner advertised link modes:  10baseT/Full
                                                 100baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Speed: 100Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 0
            Transceiver: external
            Auto-negotiation: on
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: no
    root@am335x-evm:~# ethtool eth1
    Settings for eth1:
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x00000000 (0)
    
            Link detected: no
    root@am335x-evm:~# ethtool -S eth0
    NIC statistics:
         Good Rx Frames: 50
         Broadcast Rx Frames: 13
         Multicast Rx Frames: 34
         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: 8313
         Good Tx Frames: 61
         Broadcast Tx Frames: 4
         Multicast Tx Frames: 56
         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: 6840
         Rx + Tx 64 Octet Frames: 14
         Rx + Tx 65-127 Octet Frames: 62
         Rx + Tx 128-255 Octet Frames: 25
         Rx + Tx 256-511 Octet Frames: 8
         Rx + Tx 512-1023 Octet Frames: 2
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 15153
         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: 147
         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: 15
         Rx DMA chan 0: good_dequeue: 20
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 61
         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: 5
         Tx DMA chan 0: empty_dequeue: 61
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 61
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ethtool -S eth1
    NIC statistics:
         Good Rx Frames: 50
         Broadcast Rx Frames: 13
         Multicast Rx Frames: 34
         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: 8313
         Good Tx Frames: 61
         Broadcast Tx Frames: 4
         Multicast Tx Frames: 56
         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: 6840
         Rx + Tx 64 Octet Frames: 14
         Rx + Tx 65-127 Octet Frames: 62
         Rx + Tx 128-255 Octet Frames: 25
         Rx + Tx 256-511 Octet Frames: 8
         Rx + Tx 512-1023 Octet Frames: 2
         Rx + Tx 1024-Up Octet Frames: 0
         Net Octets: 15153
         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: 147
         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: 15
         Rx DMA chan 0: good_dequeue: 20
         Rx DMA chan 0: requeue: 0
         Rx DMA chan 0: teardown_dequeue: 0
         Tx DMA chan 0: head_enqueue: 61
         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: 5
         Tx DMA chan 0: empty_dequeue: 61
         Tx DMA chan 0: busy_dequeue: 0
         Tx DMA chan 0: good_dequeue: 61
         Tx DMA chan 0: requeue: 0
         Tx DMA chan 0: teardown_dequeue: 0
    root@am335x-evm:~# ls /proc/device-tree/ocp/ethernet\@4a100000
    #address-cells         bd_ram_size            cpdma_channels         dual_emac              mdio@4a101000          pinctrl-names          slave@4a100300         ti,hwmods
    #size-cells            clock-names            cpsw-phy-sel@44e10650  interrupt-parent       name                   ranges                 slaves
    active_slave           clocks                 cpts_clock_mult        interrupts             pinctrl-0              reg                    status
    ale_entries            compatible             cpts_clock_shift       mac_control            pinctrl-1              slave@4a100200         syscon
    root@am335x-evm:~# hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100200/phy_id
    00000000  00 00 00 49 00 00 00 00                           |...I....|
    00000008
    root@am335x-evm:~# hexdump -C /proc/device-tree/ocp/ethernet\@4a100000/slave\@4a100300/phy_id
    00000000  00 00 00 49 00 00 00 0d                           |...I....|
    00000008
    root@am335x-evm:~#

    there was no change in am33xx.dts, and I attached it in below.(pls unzip)

    3513.am33xx.zip

    For kernel rebuilt, yes. they rebuilt kernel to add dp83867 driver with below config file.

    config.zip

    Thanks and Best Regards,

    SI.

  • Hi SI,

    If I understand correctly the eth0 connection remained active after the cable was unplugged on eth1.

    The next thing I want to try is to remove the TI PHY driver from the kernel configuration. I will try this test tomorrow on a TI AM335x-EVMSK as a test to see if a defult PHY will function and let you know.

    Best Regards,
    Schuyler
  • Hi SI,

    I configured out of the kernel the Atheros driver on the AM335x-EVMSK board and the network came up. Could you please ask the customer to compile out the TI PHYs in the kernel configuration? This is not a solution but a test to perhaps isolate if this issue is coming from the PHY driver. A default PHY should be used automatically. The customer should see a driver unknown message but the links should still come up.

    Best Regards,
    Schuyler
  • Hi Schuyler,

    customer modified dts file as attached and used pre-built zImage to test as you recommended,

    but failed to come up links with below log. It seemed PHYs were detected well, but failed to come up Links.

    The dts file they used is am335x.dts.1.zip

    The log is as below.

    [    1.004451] libphy: Fixed MDIO Bus: probed

    [    1.081952] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6

    [    1.088091] davinci_mdio 4a101000.mdio: detected phy mask ffffdffe

    [    1.095698] libphy: 4a101000.mdio: probed

    [    1.099740] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver TI DP83867

    [    1.108129] davinci_mdio 4a101000.mdio: phy[13]: device 4a101000.mdio:0d, driver TI DP83867

    [    1.117213] cpsw 4a100000.ethernet: Detected MACID = 98:5d:ad:48:a0:f2

    [    1.124074] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)

    [    1.132385] cpsw 4a100000.ethernet: cpsw: Detected MACID = 98:5d:ad:48:a0:f4

    BTW, Could you please check their modification in their DP83867 driver file? dp83867.zip

    And, more observations for this issue are as below.

    * when eth1 down using ethtools, eth0 was also down. this is a problem, as you understand.

      at this issue occurred, they found power consumption also reduced in eth0, and almost registers set to 0x1140.

    * when eth1 down, they found there are so many packet transfers observed through oscilloscope, and it seemed all registers were scanned by increasing register address.  

    Thanks and Best Regards,

    SI.

  • Hi SI,

    What I was suggesting was to remove the PHY drivers from the kernel configuration. Commenting out the PHY nodes only stops the PHY configurataion from being programmed to the PHY, this could explain why the customer did not get any links up.

    I tried the test of removing the PHY driver from the kernel config and I was not able to get both links to get ip addresses using the def PHY driver. eth0 was able but not eth1. As I said this was an isolation experiment to isolate if perhaps the PHY driver might be an having an issue.

    At this point the PHY driver or perhaps the PHY itself may not be in a good state in that it has latched a mode not intended.

    Best Regards,
    Schuyler
  • Hi SI,
    I am going to close the thread so that future follow-on readers will have the info that was discovered. Based on your email earlier today the issue turned out to be the voltage sources for the two phys were tied together and this was causing the issue.

    Best Regards,
    Schuyler
  • Hi Schuyler,

    Yes. this issue was resolved. As I explained in my previous mail, This issue was caused by HW issue, and my customer found 1.8V VTT was connected to both Ethernet PHY1 and PHY2 and this issue was resolved after disconnect it.
    Thanks again for your great support on this issue!


    Thanks and Best Regards,
    SI.