This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: UDP communication error when using AM3358 Dual Ethernet

Part Number: AM3358
Other Parts Discussed in Thread: AM3352, TPS65910

How to reproduce
I am using two AM3358 AR8035 chips.
$ udhcpc -ieth0
$ udhcpc -ieth1
Eth0 IP: 192.168.100.29
Eth1 IP: 192.168.0.14

On a linux pc
$ iperf -c 192.168.100.29 -u -i 1 -t 10000 -b 1000M
On board
after $ifconfig eth0 down
After confirming that packet is not transmitted in Linux PC
<Linux PC>
[3] 92.0-93.0 sec 3.92 MBytes 32.9 Mbits/sec
[3] 93.0-94.0 sec 0.00 Bytes 0.00 bits/sec
[3] 94.0-95.0 sec 0.00 Bytes 0.00 bits/sec
[3] 95.0-96.0 sec 57.5 MBytes 483 Mbits/sec
[3] 96.0-97.0 sec 97.0 MBytes 813 Mbits/sec

$udhcpc -ieth0 or ifconfig eth0 192.168.100.29 up
Even though it is linked, it does not receive data.
The workaround is
$ ifconfig eth1 down; ifconfig eth0 down
$ ifconfig eth0 192.168.100.29 up
If you do, you can communicate again.

When testing ping or iperf -c 192.168.100.29 -i 1 -t 1000 (TCP transmission) on a Linux PC
No problem occurs.

The cause seems to be that the internal CPSW is broken when data comes in through UDP during the Ethernet initialization process.
I'm looking for a solution.

<log>

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.19-gdb0b54cdad (icanjji@crztech-S2600WFD) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #24 PREEMPT Thu Aug 13 21:48:22 KST 2020
[ 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] Machine model: TI AM335x EVM-SK
[ 0.000000] cma: Reserved 24 MiB at 0x9e800000
[ 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=64591733-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: 482988K/524288K available (7739K kernel code, 372K rwdata, 2732K rodata, 292K init, 278K bss, 16724K reserved, 24576K 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 - 0xc0a42084 (10473 kB)
[ 0.000000] .init : 0xc0a43000 - 0xc0a8c000 ( 292 kB)
[ 0.000000] .data : 0xc0a8c000 - 0xc0ae93d0 ( 373 kB)
[ 0.000000] .bss : 0xc0ae93d0 - 0xc0b2ec28 ( 279 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 24000000 Hz
[ 0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000031] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000040] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000190] clocksource_probe: no matching clocksources found
[ 0.000347] Console: colour dummy device 80x30
[ 0.000370] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000375] This ensures that you still see kernel messages. Please
[ 0.000379] update your kernel commandline.
[ 0.000395] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[ 0.089242] pid_max: default: 32768 minimum: 301
[ 0.089355] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089365] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089970] Initializing cgroup subsys io
[ 0.089998] Initializing cgroup subsys memory
[ 0.090032] Initializing cgroup subsys devices
[ 0.090045] Initializing cgroup subsys freezer
[ 0.090058] Initializing cgroup subsys perf_event
[ 0.090068] Initializing cgroup subsys pids
[ 0.090093] CPU: Testing write buffer coherency: ok
[ 0.090454] Setting up static identity map for 0x80008200 - 0x80008258
[ 0.092249] devtmpfs: initialized
[ 0.103306] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.116055] omap_hwmod: debugss: _wait_target_disable failed
[ 0.170673] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.172620] pinctrl core: initialized pinctrl subsystem
[ 0.173737] NET: Registered protocol family 16
[ 0.175588] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.199235] cpuidle: using governor ladder
[ 0.229223] cpuidle: using governor menu
[ 0.233118] OMAP GPIO hardware version 0.1
[ 0.240141] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe
[ 0.242519] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.286472] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.289785] SCSI subsystem initialized
[ 0.290082] usbcore: registered new interface driver usbfs
[ 0.290147] usbcore: registered new interface driver hub
[ 0.290251] usbcore: registered new device driver usb
[ 0.290789] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.290837] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
[ 0.290947] media: Linux media interface: v0.10
[ 0.290999] Linux video capture interface: v2.00
[ 0.291041] pps_core: LinuxPPS API ver. 1 registered
[ 0.291048] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.291071] PTP clock support registered
[ 0.291115] EDAC MC: Ver: 3.0.0
[ 0.292142] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.292445] Advanced Linux Sound Architecture Driver Initialized.
[ 0.294090] clocksource: Switched to clocksource timer1
[ 0.303392] NET: Registered protocol family 2
[ 0.304153] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.304199] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.304236] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.304302] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.304318] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.304460] NET: Registered protocol family 1
[ 0.304817] RPC: Registered named UNIX socket transport module.
[ 0.304832] RPC: Registered udp transport module.
[ 0.304838] RPC: Registered tcp transport module.
[ 0.304843] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.305744] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.307468] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.314746] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.315588] NFS: Registering the id_resolver key type
[ 0.315649] Key type id_resolver registered
[ 0.315656] Key type id_legacy registered
[ 0.315723] ntfs: driver 2.1.32 [Flags: R/W DEBUG].
[ 0.316226] fuse init (API version 7.23)
[ 0.328636] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.328670] io scheduler noop registered
[ 0.328683] io scheduler deadline registered
[ 0.328720] io scheduler cfq registered (default)
[ 0.329962] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.332661] backlight supply power not found, using dummy regulator
[ 0.385141] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.388727] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[ 1.039891] console [ttyS0] enabled
[ 1.045006] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.051785] [drm] Initialized drm 1.1.0 20060810
[ 1.057414] [CRZ] drivers/gpu/drm/tilcdc/tilcdc_panel.c (359) panel_probe:
[ 1.065387] [CRZ] drivers/gpu/drm/tilcdc/tilcdc_panel.c (390) panel_probe: panel_mod->enable_gpio = 0x (null)
[ 1.076417] [CRZ] drivers/gpu/drm/tilcdc/tilcdc_panel.c (411) panel_probe:
[ 1.084307] [CRZ] drivers/gpu/drm/tilcdc/tilcdc_panel.c (419) panel_probe:
[ 1.092167] [CRZ] drivers/gpu/drm/tilcdc/tilcdc_panel.c (427) panel_probe:
[ 1.101185] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.107933] [drm] No driver support for vblank timestamp query.
[ 1.114026] [CRZ] drivers/gpu/drm/tilcdc/tilcdc_panel.c (172) panel_connector_get_modes:
[ 1.133417] Console: switching to colour frame buffer device 100x30
[ 1.143638] tilcdc 4830e000.lcdc: fb0: frame buffer device
[ 1.174110] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[ 1.186198] loop: module loaded
[ 1.189650] st: Version 20101219, fixed bufsize 32768, s/g segs 256
[ 1.196149] osst :I: Tape driver with OnStream support version 0.99.4
[ 1.196149] osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $
[ 1.209615] SCSI Media Changer driver v0.25
[ 1.215644] libphy: Fixed MDIO Bus: probed
[ 1.235224] [CRZ] drivers/net/ethernet/ti/davinci_mdio.c (172) davinci_mdio_reset:
[ 1.284119] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.290247] libphy: 4a101000.mdio: probed
[ 1.295041] [CRZ] drivers/net/phy/at803x.c (202) at803x_probe:
[ 1.302589] [CRZ] drivers/net/phy/at803x.c (202) at803x_probe:
[ 1.309569] [CRZ] drivers/net/ethernet/ti/davinci_mdio.c (491) davinci_mdio_probe: phy[0]: device 4a101000.mdio:00, driver Atheros 8035 ethernet
[ 1.323513] [CRZ] drivers/net/ethernet/ti/davinci_mdio.c (491) davinci_mdio_probe: phy[1]: device 4a101000.mdio:01, driver Atheros 8035 ethernet
[ 1.338031] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (200) cpsw_phy_sel_probe:
[ 1.346840] cpsw 4a100000.ethernet: Detected MACID = 04:a3:16:bb:ad:65
[ 1.354317] cpsw 4a100000.ethernet: cpsw: Detected MACID = 04:a3:16:bb:ad:67
[ 1.362122] usbcore: registered new interface driver cdc_ether
[ 1.368153] usbcore: registered new interface driver cdc_eem
[ 1.373918] usbcore: registered new interface driver smsc75xx
[ 1.379798] usbcore: registered new interface driver smsc95xx
[ 1.385644] usbcore: registered new interface driver cdc_subset
[ 1.391689] usbcore: registered new interface driver cdc_ncm
[ 1.397992] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.404601] ehci-pci: EHCI PCI platform driver
[ 1.409137] ehci-platform: EHCI generic platform driver
[ 1.414607] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.419960] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.426231] ohci-pci: OHCI PCI platform driver
[ 1.430783] ohci-platform: OHCI generic platform driver
[ 1.436464] usbcore: registered new interface driver uas
[ 1.441875] usbcore: registered new interface driver usb-storage
[ 1.448072] usbcore: registered new interface driver usbserial
[ 1.453971] usbcore: registered new interface driver cp210x
[ 1.459629] usbserial: USB Serial support registered for cp210x
[ 1.465655] usbcore: registered new interface driver ftdi_sio
[ 1.471459] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.480740] 47401300.usb-phy supply vcc not found, using dummy regulator
[ 1.516305] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 1.522100] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[ 1.530251] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.537149] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.544419] usb usb1: Product: MUSB HDRC host driver
[ 1.549422] usb usb1: Manufacturer: Linux 4.4.19-gdb0b54cdad musb-hcd
[ 1.555901] usb usb1: SerialNumber: musb-hdrc.0.auto
[ 1.561600] hub 1-0:1.0: USB hub found
[ 1.565497] hub 1-0:1.0: 1 port detected
[ 1.595445] 47401b00.usb-phy supply vcc not found, using dummy regulator
[ 1.626196] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.632059] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[ 1.640153] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.647015] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.654279] usb usb2: Product: MUSB HDRC host driver
[ 1.659264] usb usb2: Manufacturer: Linux 4.4.19-gdb0b54cdad musb-hcd
[ 1.665879] usb usb2: SerialNumber: musb-hdrc.1.auto
[ 1.671548] hub 2-0:1.0: USB hub found
[ 1.675417] hub 2-0:1.0: 1 port detected
[ 1.711188] using random self ethernet address
[ 1.715944] using random host ethernet address
[ 1.721012] usb0: HOST MAC 22:0f:a2:f0:62:9c
[ 1.725422] usb0: MAC 6a:53:08:ad:dc:09
[ 1.729310] using random self ethernet address
[ 1.733812] using random host ethernet address
[ 1.738432] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 1.745140] g_ether gadget: g_ether ready
[ 1.749697] mousedev: PS/2 mouse device common for all mice
[ 1.755951] i2c /dev entries driver
[ 1.760483] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.768100] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.806788] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.813115] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 1.838705] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 1.852790] [CRZ] sound/soc/generic/simple-card.c (577) asoc_simple_card_probe:
[ 1.862365] [CRZ] sound/soc/davinci/davinci-mcasp.c (1978) davinci_mcasp_probe:
[ 1.871315] [CRZ] sound/soc/davinci/davinci-mcasp.c (724) davinci_mcasp_set_ch_constraints:
[ 1.880911] [CRZ] sound/soc/davinci/davinci-mcasp.c (700) davinci_mcasp_ch_constraint:
[ 1.889868] [CRZ] sound/soc/davinci/davinci-mcasp.c (700) davinci_mcasp_ch_constraint:
[ 1.898848] [CRZ] sound/soc/davinci/davinci-mcasp.c (1626) mcasp_reparent_fck:
[ 1.907126] [CRZ] sound/soc/davinci/davinci-mcasp.c (1790) davinci_mcasp_get_dma_type:
[ 1.917568] NET: Registered protocol family 10
[ 1.923499] sit: IPv6 over IPv4 tunneling driver
[ 1.929116] NET: Registered protocol family 17
[ 1.934032] Key type dns_resolver registered
[ 1.938471] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.946844] omap_voltage_late_init: Voltage driver support not added
[ 1.956590] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.961938] mmc0: new high speed SDHC card at address aaaa
[ 1.967896] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.974736] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 1.981126] [CRZ] drivers/mtd/nand/nand_base.c (3880) nand_get_flash_type: id_data[0]=0xec
[ 1.990557] mmcblk0: p1 p2
[ 1.993767] [CRZ] drivers/mtd/nand/nand_base.c (3880) nand_get_flash_type: id_data[1]=0xda
[ 2.003477] [CRZ] drivers/mtd/nand/nand_base.c (3880) nand_get_flash_type: id_data[2]=0x10
[ 2.012717] [CRZ] drivers/mtd/nand/nand_base.c (3880) nand_get_flash_type: id_data[3]=0x95
[ 2.021988] [CRZ] drivers/mtd/nand/nand_base.c (3880) nand_get_flash_type: id_data[4]=0x46
[ 2.031271] [CRZ] drivers/mtd/nand/nand_base.c (3880) nand_get_flash_type: id_data[5]=0xc6
[ 2.040457] [CRZ] drivers/mtd/nand/nand_base.c (3880) nand_get_flash_type: id_data[6]=0xec
[ 2.049653] [CRZ] drivers/mtd/nand/nand_base.c (3880) nand_get_flash_type: id_data[7]=0xda
[ 2.059441] nand: Could not find valid JEDEC parameter page; aborting
[ 2.065943] [CRZ] drivers/mtd/nand/nand_base.c (3688) nand_decode_ext_id: mtd->writesize=2048,extid=0x95
[ 2.076348] [CRZ] drivers/mtd/nand/nand_base.c (3692) nand_decode_ext_id: 2 mtd->writesize=2048,extid=0x25, (extid & 0x01)=0x1
[ 2.088702] usb 2-1: new high-speed USB device number 2 using musb-hdrc
[ 2.095366] [CRZ] drivers/mtd/nand/nand_base.c (3734) nand_decode_ext_id: mtd->oobsize=64
[ 2.104560] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[ 2.110996] nand: Samsung NAND 256MiB 3,3V 8-bit
[ 2.115682] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 2.123320] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[ 2.128757] 10 ofpart partitions found on MTD device 8000000.nand
[ 2.134956] Creating 10 MTD partitions on "8000000.nand":
[ 2.140386] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 2.146790] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 2.153721] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 2.160714] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 2.167771] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 2.174940] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 2.181770] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 2.188657] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 2.196193] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 2.205835] 0x000000a00000-0x00000fc80000 : "NAND.file-system"
[ 2.245224] usb 2-1: New USB device found, idVendor=05e3, idProduct=0608
[ 2.264092] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.271274] usb 2-1: Product: USB2.0 Hub
[ 2.281951] hub 2-1:1.0: USB hub found
[ 2.294363] hub 2-1:1.0: 4 ports detected
[ 2.354258] tps65910 0-002d: No interrupt support, no core IRQ
[ 2.360871] tps65910 0-002d: Error in configuring external control EN1
[ 2.367497] tps65910 0-002d: Failed to initialise ext control config
[ 2.374204] vrtc: failed to enable
[ 2.377722] tps65910 0-002d: failed to register tps65910-pmic regulator
[ 2.384430] tps65910-pmic: probe of tps65910-pmic failed with error -121
[ 2.391937] [CRZ] drivers/rtc/rtc-pcf85263.c (519) pcf85263_probe:
[ 2.399415] rtc-pcf85263 0-0051: Oscillator stop detected, date/time is not reliable.
[ 2.407380] [CRZ] drivers/rtc/rtc-pcf85263.c (374) pcf85263_check_osc_stopped: ret=1, regval=0x80
[ 2.417401] [CRZ] drivers/rtc/rtc-pcf85263.c (445) pcf85263_init_hw: regval=0x93
[ 2.426190] [CRZ] drivers/rtc/rtc-pcf85263.c (466) pcf85263_init_hw:
[ 2.434127] rtc-pcf85263 0-0051: Oscillator stop detected, date/time is not reliable.
[ 2.442327] rtc-pcf85263 0-0051: rtc core: registered rtc-pcf85263 as rtc0
[ 2.449349] rtc-pcf85263 0-0051: PCF85263 RTC (irqpin=None irq=0)
[ 2.457893] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 2.464768] [CRZ] sound/soc/codecs/wm8960.c (1552) wm8960_i2c_probe:
[ 2.484160] wm8960 1-001a: Failed to issue reset
[ 2.488892] wm8960: probe of 1-001a failed with error -121
[ 2.494502] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
[ 2.500565] [CRZ] sound/soc/generic/simple-card.c (577) asoc_simple_card_probe:
[ 2.510475] input: gpio_buttons@0 as /devices/platform/gpio_buttons@0/input/input0
[ 2.518856] [CRZ] sound/soc/generic/simple-card.c (577) asoc_simple_card_probe:
[ 2.527668] rtc-pcf85263 0-0051: Oscillator stop detected, date/time is not reliable.
[ 2.535956] rtc-pcf85263 0-0051: hctosys: unable to read the hardware clock
[ 2.546283] vbat: disabling
[ 2.549202] lis3_reg: disabling
[ 2.552460] ALSA device list:
[ 2.555496] No soundcards found.
[ 2.745325] EXT4-fs (mmcblk0p2): recovery complete
[ 2.752301] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.760536] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.772394] devtmpfs: mounted
[ 2.775737] Freeing unused kernel memory: 292K (c0a43000 - c0a8c000)
[ 2.782279] This architecture does not have kernel memory protection.
[ 2.981917] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Populating /dev using udev: [ 3.158934] udevd[131]: starting version 3.2.1
[ 3.166649] random: udevd: uninitialized urandom read (16 bytes read, 28 bits of entropy available)
[ 3.179899] random: udevd: uninitialized urandom read (16 bytes read, 28 bits of entropy available)
[ 3.189677] random: udevd: uninitialized urandom read (16 bytes read, 28 bits of entropy available)
[ 3.236979] udevd[132]: starting eudev-3.2.1


done
Initializing random number generator... [ 5.125987] random: dd: uninitialized urandom read (512 bytes read, 52 bits of entropy available)
done.
Starting system message bus: [ 5.191558] random: dbus-uuidgen: uninitialized urandom read (12 bytes read, 53 bits of entropy available)
[ 5.201565] random: dbus-uuidgen: uninitialized urandom read (8 bytes read, 53 bits of entropy available)
[ 5.247242] random: dbus-daemon: uninitialized urandom read (12 bytes read, 54 bits of entropy available)
[ 5.276158] random: dbus-daemon: uninitialized urandom read (12 bytes read, 54 bits of entropy available)
done
Starting rpcbind: OK
Starting network: OK
Starting Network Interface Plugging Daemon:.
[ 5.602457] random: ssh-keygen: uninitialized urandom read (32 bytes read, 59 bits of entropy available)
Starting sshd: [ 5.661166] random: sshd: uninitialized urandom read (32 bytes read, 60 bits of entropy available)
OK
Starting NFS statd: OK
Starting NFS services: exportfs: can't open /run/nfs/xtab for reading
FAIL
Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
FAIL
Starting NFS mountd: OK
Starting tinyhttpd: done

Welcome to Buildroot
mangoboard login: root
# udhcpc -ieth0
udhcpc: started, v1.26.2
[ 11.399920] net eth0: initializing cpsw version 1.12 (0)
[ 11.405385] net eth0: initialized cpsw ale version 1.4
[ 11.410547] net eth0: ALE Table size 1024
[ 11.417635] [CRZ] drivers/net/phy/phy_device.c (1162) genphy_soft_reset:
[ 11.425446] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x0, val=0x8400
[ 11.435824] [CRZ] drivers/net/phy/phy_device.c (570) phy_poll_reset:
[ 11.514099] [CRZ] drivers/net/phy/at803x.c (222) at803x_config_init:
[ 11.521684] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x1d, val=0x5
[ 11.531697] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x1e, val=0x100
[ 11.541769] [CRZ] drivers/net/phy/at803x.c (186) at803x_resume:
[ 11.548985] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x0, val=0x0
[ 11.558745] net eth0: phy found : id is : 0x4dd072
[ 11.563618] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (54) cpsw_gmii_sel_am3352:
[ 11.572596] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (57) cpsw_gmii_sel_am3352: priv->gmmi_sel =0xb2
[ 11.583018] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (99) cpsw_gmii_sel_am3352: reg=0xb2== or != reg-old=0xb2
[ 11.599850] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc: sending discover
udh [ 12.554567] [CRZ] drivers/net/phy/phy_device.c (869) genphy_config_advert: adb=0x200
[ 12.563235] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x9, val=0x200
[ 12.573862] [CRZ] drivers/net/phy/phy_device.c (911) genphy_restart_aneg:
[ 12.581724] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x0, val=0x1600
[ 12.604106] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x0, val=0x1200
^H^H^H^H^H


[ 14.615096] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 14.623213] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udhcpc: sending discover
udhcpc: sending select for 192.168.100.29
udhcpc: lease of 192.168.100.29 obtained, lease time 7200
deleting routers
adding dns 168.126.63.1
adding dns 168.126.63.2
# ud
-sh: ud: not found
#
#
# udhcpc -ieth1
udhcpc: started, v1.26.2
[ 19.728680] net eth1: initializing cpsw version 1.12 (0)
[ 19.737332] [CRZ] drivers/net/phy/phy_device.c (1162) genphy_soft_reset:
[ 19.745162] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x1, regnum=0x0, val=0x8400
[ 19.755571] [CRZ] drivers/net/phy/phy_device.c (570) phy_poll_reset:
[ 19.834104] [CRZ] drivers/net/phy/at803x.c (222) at803x_config_init:
[ 19.841691] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x1, regnum=0x1d, val=0x5
[ 19.851703] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x1, regnum=0x1e, val=0x100
[ 19.861710] [CRZ] drivers/net/phy/at803x.c (186) at803x_resume:
[ 19.868927] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x1, regnum=0x0, val=0x0
[ 19.878688] net eth1: phy found : id is : 0x4dd072
[ 19.883560] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (54) cpsw_gmii_sel_am3352:
[ 19.892505] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (57) cpsw_gmii_sel_am3352: priv->gmmi_sel =0xb2
[ 19.902926] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (99) cpsw_gmii_sel_am3352: reg=0x3a== or != reg-old=0xb2
[ 19.918491] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
udhcpc: sending discover
[ 20.874289] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x1, regnum=0x4, val=0x11e1
[ 20.884538] [CRZ] drivers/net/phy/phy_device.c (869) genphy_config_advert: adb=0x200
[ 20.893208] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x1, regnum=0x9, val=0x200
[ 20.903850] [CRZ] drivers/net/phy/phy_device.c (911) genphy_restart_aneg:
[ 20.911744] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x1, regnum=0x0, val=0x1600
[ 20.934105] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x1, regnum=0x0, val=0x1200
udhcpc: sending discover
udhcpc: sending discover
[ 32.945094] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
[ 32.953230] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
udhcpc: sending discover
udhcpc: sending select for 192.168.0.14
udhcpc: lease of 192.168.0.14 obtained, lease time 7200
deleting routers
adding dns 164.124.101.2
adding dns 168.126.63.2
# ifco[ 51.349359] random: nonblocking pool is initialized
nfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.29 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::6a3:16ff:febb:ad65 prefixlen 64 scopeid 0x20<link>
ether 04:a3:16:bb:ad:65 txqueuelen 1000 (Ethernet)
RX packets 8 bytes 1540 (1.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 1332 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 172

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.14 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::6a3:16ff:febb:ad67 prefixlen 64 scopeid 0x20<link>
ether 04:a3:16:bb:ad:67 txqueuelen 1000 (Ethernet)
RX packets 2 bytes 1180 (1.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 1332 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 2 bytes 140 (140.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 140 (140.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

# ifconfig eth0 down
[ 73.809454] [CRZ] drivers/net/phy/at803x.c (150) at803x_get_wol:
[ 73.817145] [CRZ] drivers/net/phy/at803x.c (163) at803x_suspend:
[ 73.825525] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x0, val=0x1c00
# udhcpc -ieth0
udhcpc: started, v1.26.2
[ 126.353669] net eth0: initializing cpsw version 1.12 (0)
[ 126.359231] [CRZ] drivers/net/phy/phy_device.c (1162) genphy_soft_reset:
[ 126.367749] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x0, val=0x8400
[ 126.377941] [CRZ] drivers/net/phy/phy_device.c (570) phy_poll_reset:
[ 126.464097] [CRZ] drivers/net/phy/at803x.c (222) at803x_config_init:
[ 126.471665] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x1d, val=0x5
[ 126.481743] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x1e, val=0x100
[ 126.491751] [CRZ] drivers/net/phy/at803x.c (186) at803x_resume:
[ 126.498968] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x0, val=0x0
[ 126.508728] net eth0: phy found : id is : 0x4dd072
[ 126.513621] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (54) cpsw_gmii_sel_am3352:
[ 126.522555] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (57) cpsw_gmii_sel_am3352: priv->gmmi_sel =0x3a
[ 126.532998] [CRZ] drivers/net/ethernet/ti/cpsw-phy-sel.c (99) cpsw_gmii_sel_am3352: reg=0x3a== or != reg-old=0x3a
[ 126.547082] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc: sending discover
[ 127.504545] [CRZ] drivers/net/phy/phy_device.c (869) genphy_config_advert: adb=0x200
[ 127.513236] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x9, val=0x200
[ 127.523967] [CRZ] drivers/net/phy/phy_device.c (911) genphy_restart_aneg:
[ 127.531853] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x0, val=0x1600
[ 127.554103] [CRZ] drivers/net/phy/mdio_bus.c (467) mdiobus_write: addr=0x0, regnum=0x0, val=0x1200
[ 129.555072] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 129.563167] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udhcpc: sending discover
udhcpc: sending discover
^C
# ifconfig eth0 192.168.100.29 up
# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.29 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::6a3:16ff:febb:ad65 prefixlen 64 scopeid 0x20<link>
ether 04:a3:16:bb:ad:65 txqueuelen 1000 (Ethernet)
RX packets 77384 bytes 116989696 (111.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 37 bytes 11634 (11.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 172

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.14 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::6a3:16ff:febb:ad67 prefixlen 64 scopeid 0x20<link>
ether 04:a3:16:bb:ad:67 txqueuelen 1000 (Ethernet)
RX packets 2 bytes 1180 (1.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 1332 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 2 bytes 140 (140.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 140 (140.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

#
# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.29 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::6a3:16ff:febb:ad65 prefixlen 64 scopeid 0x20<link>
ether 04:a3:16:bb:ad:65 txqueuelen 1000 (Ethernet)
RX packets 77384 bytes 116989696 (111.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 37 bytes 11634 (11.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 172

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.14 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::6a3:16ff:febb:ad67 prefixlen 64 scopeid 0x20<link>
ether 04:a3:16:bb:ad:67 txqueuelen 1000 (Ethernet)
RX packets 2 bytes 1180 (1.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 1332 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 2 bytes 140 (140.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 140 (140.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

# ping 192.168.100.1
PING 192.168.100.1 (192.168.100.1): 56 data bytes
^C
--- 192.168.100.1 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
# ping 192.168.100.8
PING 192.168.100.8 (192.168.100.8): 56 data bytes
^C
--- 192.168.100.8 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss

  • Hi,

    Is a custom board being used here? If so is this the initial debug stage of the board?

    Here is a link to a web page that describes some data requests for us to be able to help you. Please attach the results to this post, do not cut and paste as this makes it the post harder to read. You have already provided some of the data. I would still like to see ethtool for both ports and ethool -S eth0. 

    Could you please describe your test setup?

    One thing to note here is that a four year old kernel is in use here. This kernel is beyond the support window. Is it possible to move to a later TI SDK? Also please note that TI does not use buildroot and is not able to support it. 

    Best Regards,

    Schuyler