Eth0 Network Issues on Custom Image

Forums Reference, Evaluation, and Development Boards OSD3358-SM-RED Eth0 Network Issues on Custom Image

Viewing 4 reply threads
  • Author
    Posts
    • #10927
      Kenichiro Kuriharakkurihara
      Participant

        Hi,

        We are working on a Yocto build for the OSD3358-SM-RED eval board and wanted
        help bringing up the eth0 network in linux. We are using the following in our
        build.

        * U-Boot: 2019.04 with beaglebone patches and modification to get phy working.
        * linux: mainline 5.4
        * devicetree: am335x_osd3358-sm-red.dtb included with the kernel.

        The eval board is directly connected to the desktop and we are able to ping
        across from U-Boot so we believe that the hardware and the network are ok.
        We compared the am335x_osd3358-sm-red.dts and osd3358-bsm-refdesign.dts,
        We did not notice any difference for the ethernet section.

        In linux, the Atheros 8035 phy probe succeeds and the eth0 comes up but we are
        unable to ping. Wireshark on desktop shows no activity on the network.
        Ethtool shows that eth0 is detecting a link. I have disabled the firewall
        and confirmed that the sytctl configuration is sane. What other things
        should I be looking at?

        Thanks,

        Ken

        Following is a console dump of everything that I discussed above.

        U-Boot SPL 2019.04-00002-g1000dee88e-dirty (Nov 04 2020 – 11:32:57 -0800)
        Trying to boot from MMC1
        Loading Environment from EXT4…
        ** Unable to use mmc 0:1 for loading the env **

        U-Boot 2019.04-00002-g1000dee88e-dirty (Nov 04 2020 – 11:32:57 -0800)

        CPU : AM335X-GP rev 2.1
        I2C: ready
        DRAM: 512 MiB
        No match for driver ‘omap_hsmmc’
        No match for driver ‘omap_hsmmc’
        Some drivers were not found
        Reset Source: Global warm SW reset has occurred.
        Reset Source: Power-on reset has occurred.
        RTC 32KCLK Source: External.
        MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
        Loading Environment from EXT4…
        ** Unable to use mmc 0:1 for loading the env **
        Board: BeagleBone Black
        Model: Octavo Systems OSD3358-SM-RED
        <ethaddr> not set. Validating first E-fuse MAC
        BeagleBone Black:
        Model: Octavo Systems OSD3358-SM-RED:
        BeagleBone Cape EEPROM: no EEPROM at address: 0x54
        BeagleBone Cape EEPROM: no EEPROM at address: 0x55
        BeagleBone Cape EEPROM: no EEPROM at address: 0x56
        BeagleBone Cape EEPROM: no EEPROM at address: 0x57
        Net: eth0: RGMII MODE
        Set cpsw PHY address to 4
        cpsw, usb_ether
        Press SPACE to abort autoboot in 3 seconds
        board_name=[OS00] …
        switch to partitions #0, OK
        mmc0 is current device
        SD/MMC found on device 0
        switch to partitions #0, OK
        mmc0 is current device
        Scanning mmc 0:1…
        gpio: pin 56 (gpio 56) value is 0
        gpio: pin 55 (gpio 55) value is 0
        gpio: pin 54 (gpio 54) value is 0
        gpio: pin 53 (gpio 53) value is 1
        switch to partitions #0, OK
        mmc0 is current device
        gpio: pin 54 (gpio 54) value is 1
        Checking for: /uEnv.txt …
        936 bytes read in 3 ms (304.7 KiB/s)
        gpio: pin 55 (gpio 55) value is 1
        Loaded environment from /uEnv.txt
        Importing environment from mmc …
        Checking if uenvcmd is set …
        gpio: pin 56 (gpio 56) value is 1
        Running uenvcmd …
        57960 bytes read in 59 ms (959 KiB/s)
        Loaded am335x-osd3358-sm-red.dtb
        4632080 bytes read in 349 ms (12.7 MiB/s)
        ## Flattened Device Tree blob at 88000000
        Booting using the fdt blob at 0x88000000
        Loading Device Tree to 8ffee000, end 8ffff267 … OK

        Starting kernel …

        [ 0.000000] Booting Linux on physical CPU 0x0
        [ 0.000000] Linux version 5.4.73-jumpnow (oe-user@oe-host) (gcc version 9.3.0 (GCC)) #1 Thu Oct 29 08:58:11 UTC 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] OF: fdt: Machine model: Octavo Systems OSD3358-SM-RED
        [ 0.000000] Memory policy: Data cache writeback
        [ 0.000000] cma: Reserved 16 MiB at 0x9f000000
        [ 0.000000] CPU: All CPU(s) started in SVC mode.
        [ 0.000000] AM335X ES2.1 (sgx neon)
        [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048
        [ 0.000000] Kernel command line: console=ttyO0,115200n8 consoleblank=0 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
        [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
        [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
        [ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
        [ 0.000000] Memory: 484848K/524288K available (7168K kernel code, 450K rwdata, 2228K rodata, 1024K init, 6509K bss, 23056K reserved, 16384K cma-reserve)
        [ 0.000000] random: get_random_u32 called from __kmem_cache_create+0x20/0x358 with crng_init=0
        [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
        [ 0.000000] Running RCU self tests
        [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
        [ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
        [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
        [ 0.000022] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
        [ 0.000054] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
        [ 0.000110] OMAP clocksource: timer1 at 24000000 Hz
        [ 0.000664] timer_probe: no matching timers found
        [ 0.001153] Console: colour dummy device 80×30
        [ 0.001210] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
        [ 0.001225] … MAX_LOCKDEP_SUBCLASSES: 8
        [ 0.001239] … MAX_LOCK_DEPTH: 48
        [ 0.001253] … MAX_LOCKDEP_KEYS: 8192
        [ 0.001267] … CLASSHASH_SIZE: 4096
        [ 0.001281] … MAX_LOCKDEP_ENTRIES: 32768
        [ 0.001294] … MAX_LOCKDEP_CHAINS: 65536
        [ 0.001307] … CHAINHASH_SIZE: 32768
        [ 0.001321] memory used by lock dependency info: 3997 kB
        [ 0.001335] memory used for stack traces: 2112 kB
        [ 0.001349] per task-struct memory footprint: 1536 bytes
        [ 0.001511] Calibrating delay loop… 996.14 BogoMIPS (lpj=4980736)
        [ 0.078436] pid_max: default: 32768 minimum: 301
        [ 0.078958] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
        [ 0.078983] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
        [ 0.079268] *** VALIDATE tmpfs ***
        [ 0.081477] *** VALIDATE proc ***
        [ 0.081772] CPU: Testing write buffer coherency: ok
        [ 0.081942] CPU0: Spectre v2: using BPIALL workaround
        [ 0.084282] Setting up static identity map for 0x80100000 – 0x80100060
        [ 0.086532] devtmpfs: initialized
        [ 0.120907] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
        [ 0.121607] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
        [ 0.121698] futex hash table entries: 256 (order: 1, 11264 bytes, linear)
        [ 0.123083] pinctrl core: initialized pinctrl subsystem
        [ 0.127323] NET: Registered protocol family 16
        [ 0.133472] DMA: preallocated 256 KiB pool for atomic coherent allocations
        [ 0.193983] l3-aon-clkctrl:0000:0: failed to disable
        [ 0.198771] cpuidle: using governor ladder
        [ 0.198850] cpuidle: using governor menu
        [ 0.235582] No ATAGs?
        [ 0.235594] hw-breakpoint: debug architecture 0x4 unsupported.
        [ 0.342546] edma 49000000.edma: TI EDMA DMA engine driver
        [ 0.349621] usbcore: registered new interface driver usbfs
        [ 0.349834] usbcore: registered new interface driver hub
        [ 0.349973] usbcore: registered new device driver usb
        [ 0.387253] clocksource: Switched to clocksource timer1
        [ 0.509885] VFS: Disk quotas dquot_6.6.0
        [ 0.510012] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
        [ 0.510138] *** VALIDATE ramfs ***
        [ 0.564335] thermal_sys: Registered thermal governor ‘fair_share’
        [ 0.564348] thermal_sys: Registered thermal governor ‘step_wise’
        [ 0.564381] thermal_sys: Registered thermal governor ‘user_space’
        [ 0.565297] NET: Registered protocol family 2
        [ 0.567209] tcp_listen_portaddr_hash hash table entries: 256 (order: 1, 10240 bytes, linear)
        [ 0.567448] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
        [ 0.567707] TCP bind hash table entries: 4096 (order: 5, 147456 bytes, linear)
        [ 0.568261] TCP: Hash tables configured (established 4096 bind 4096)
        [ 0.568668] UDP hash table entries: 256 (order: 2, 20480 bytes, linear)
        [ 0.568797] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes, linear)
        [ 0.569230] NET: Registered protocol family 1
        [ 0.570871] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
        [ 0.580278] Initialise system trusted keyrings
        [ 0.583804] workingset: timestamp_bits=30 max_order=17 bucket_order=0
        [ 0.688439] Key type asymmetric registered
        [ 0.688603] Asymmetric key parser ‘x509’ registered
        [ 0.688764] io scheduler mq-deadline registered
        [ 0.688786] io scheduler kyber registered
        [ 0.704080] OMAP GPIO hardware version 0.1
        [ 0.796103] ti-sysc 4a101200.target-module: OCP softreset timed out
        [ 0.806237] ti-sysc 4a101200.target-module: OCP softreset timed out
        [ 0.815935] pinctrl-single 44e10800.pinmux: 142 pins, size 568
        [ 0.833794] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
        [ 0.841775] omap_uart 44e09000.serial: no wakeirq for uart0
        [ 0.842755] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 29, base_baud = 3000000) is a OMAP UART0
        [ 1.405189] printk: console [ttyO0] enabled
        [ 1.415063] omap_rng 48310000.rng: Random Number Generator ver. 20
        [ 1.423235] random: fast init done
        [ 1.427077] random: crng init done
        [ 1.432773] loop: module loaded
        [ 1.438719] mtdoops: mtd device (mtddev=name/number) must be supplied
        [ 1.447651] libphy: Fixed MDIO Bus: probed
        [ 1.452394] CAN device driver interface
        [ 1.469466] ti-sysc 4a101200.target-module: OCP softreset timed out
        [ 1.537317] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
        [ 1.545512] libphy: 4a101000.mdio: probed
        [ 1.553971] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver Atheros 8035 ethernet
        [ 1.563992] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
        [ 1.570704] cpsw 4a100000.ethernet: ALE Table size 1024
        [ 1.577702] cpsw 4a100000.ethernet: Detected MACID = 50:33:8b:49:a1:c8
        [ 1.587498] usbcore: registered new interface driver asix
        [ 1.593269] usbcore: registered new interface driver ax88179_178a
        [ 1.599790] usbcore: registered new interface driver cdc_ether
        [ 1.606025] usbcore: registered new interface driver smsc95xx
        [ 1.612164] usbcore: registered new interface driver net1080
        [ 1.618207] usbcore: registered new interface driver cdc_subset
        [ 1.624487] usbcore: registered new interface driver zaurus
        [ 1.630477] usbcore: registered new interface driver cdc_ncm
        [ 1.637555] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
        [ 1.644395] ehci-omap: OMAP-EHCI Host Controller driver
        [ 1.650353] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
        [ 1.657043] usbcore: registered new interface driver cdc_wdm
        [ 1.663150] usbcore: registered new interface driver usbtest
        [ 1.673562] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
        [ 1.701422] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
        [ 1.718256] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
        [ 1.724694] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
        [ 1.736034] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
        [ 1.744928] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
        [ 1.752559] usb usb1: Product: MUSB HDRC host driver
        [ 1.757796] usb usb1: Manufacturer: Linux 5.4.73-jumpnow musb-hcd
        [ 1.764174] usb usb1: SerialNumber: musb-hdrc.1
        [ 1.773374] hub 1-0:1.0: USB hub found
        [ 1.778655] hub 1-0:1.0: 1 port detected
        [ 1.793263] mousedev: PS/2 mouse device common for all mice
        [ 1.802049] omap_rtc 44e3e000.rtc: already running
        [ 1.813371] omap_rtc 44e3e000.rtc: registered as rtc0
        [ 1.819714] i2c /dev entries driver
        [ 1.830682] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
        [ 1.840043] cpu cpu0: OPP-v2 not supported, cpufreq-dt will attempt to use legacy tables.
        [ 1.852524] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
        [ 1.861747] omap_hsmmc 48060000.mmc: Got CD GPIO
        [ 1.924903] omap_hsmmc 47810000.mmc: RX DMA channel request failed
        [ 1.940125] ledtrig-cpu: registered to indicate activity on CPUs
        [ 1.949481] usbcore: registered new interface driver usbhid
        [ 1.955330] usbhid: USB HID core driver
        [ 1.961407] oprofile: using arm/armv7
        [ 1.966306] Initializing XFRM netlink socket
        [ 1.971069] NET: Registered protocol family 17
        [ 1.975758] can: controller area network core (rev 20170425 abi 9)
        [ 1.982795] NET: Registered protocol family 29
        [ 1.987522] can: raw protocol (rev 20170425)
        [ 1.992127] can: broadcast manager protocol (rev 20170425 t)
        [ 1.998198] Key type dns_resolver registered
        [ 2.002808] ThumbEE CPU extension supported.
        [ 2.007343] omap_voltage_late_init: Voltage driver support not added
        [ 2.026439] mmc0: host does not support reading read-only switch, assuming write-enable
        [ 2.037506] Loading compiled-in X.509 certificates
        [ 2.097343] mmc0: new high speed SDHC card at address 0007
        [ 2.114054] mmcblk0: mmc0:0007 S04AG 3.71 GiB
        [ 2.128541] mmcblk0: p1 p2
        [ 2.169910] tps65217 0-0024: TPS65217 ID 0xe version 1.2
        [ 2.176897] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
        [ 2.187677] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
        [ 2.204093] mmc1: new high speed MMC card at address 0001
        [ 2.213833] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01T06:27:35 UTC (946708055)
        [ 2.229217] mmcblk1: mmc1:0001 SEM16G 14.7 GiB
        [ 2.234566] mmcblk1boot0: mmc1:0001 SEM16G partition 1 4.00 MiB
        [ 2.241398] mmcblk1boot1: mmc1:0001 SEM16G partition 2 4.00 MiB
        [ 2.250357] mmcblk1rpmb: mmc1:0001 SEM16G partition 3 4.00 MiB, chardev (250:0)
        [ 2.265417] mmcblk1: p1
        [ 2.303025] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
        [ 2.312004] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
        [ 2.330500] devtmpfs: mounted
        [ 2.335630] Freeing unused kernel memory: 1024K
        [ 2.341305] Run /sbin/init as init process
        [ 2.367441] usb 1-1: new high-speed USB device number 2 using musb-hdrc
        INIT: version 2.96 booting
        [ 2.558379] usb 1-1: New USB device found, idVendor=0424, idProduct=2534, bcdDevice= 1.82
        [ 2.567092] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
        [ 2.578646] hub 1-1:1.0: USB hub found
        [ 2.587352] hub 1-1:1.0: 4 ports detected
        Starting udev
        [ 3.269394] udevd[985]: starting version 3.2.9
        [ 3.358711] udevd[986]: starting eudev-3.2.9
        [ 4.273818] tda998x 0-0070: found TDA19988
        [ 4.520821] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops [tda998x])
        [ 4.528366] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
        [ 4.535290] [drm] No driver support for vblank timestamp query.
        [ 4.680869] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
        [ 4.723943] [drm] Cannot find any crtc or sizes
        [ 5.165062] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
        Fri Mar 9 20:42:46 UTC 2018
        INIT: Entering runlevel: 5
        Configuring network interfaces… [ 6.526695] ti-sysc 4a101200.target-module: OCP softreset timed out
        [ 6.536756] cpsw 4a100000.ethernet: initializing cpsw version 1.12 (0)
        [ 6.558131] Atheros 8035 ethernet 4a101000.mdio:04: attached PHY driver [Atheros 8035 ethernet] (mii_bus:phy_addr=4a101000.mdio:04, irq=POLL)
        done.
        Starting OpenBSD Secure Shell server: sshd
        [ 6.994169] NET: Registered protocol family 10
        [ 7.019569] Segment Routing with IPv6
        done.
        Starting ntpd: done
        Starting syslogd/klogd: done
        There is no /dev/mmcblk0p5 partition

        Poky (Yocto Project Reference Distro) 3.1.3 beaglebone ttyO0

        beaglebone login: [ 10.729084] cpsw 4a100000.ethernet eth0: Link is Up – 1Gbps/Full – flow control off
        [ 10.737669] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
        [ 14.572834] [drm] Cannot find any crtc or sizes

        beaglebone login: root
        root@beaglebone:~#
        root@beaglebone:~# ifconfig
        eth0 Link encap:Ethernet HWaddr 50:33:8B:49:A1:C8
        inet addr:192.168.254.100 Bcast:192.168.254.255 Mask:255.255.255.0
        UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
        RX packets:0 errors:0 dropped:0 overruns:0 frame:0
        TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:1000
        RX bytes:0 (0.0 B) TX bytes:1006 (1006.0 B)

        lo Link encap:Local Loopback
        inet addr:127.0.0.1 Mask:255.0.0.0
        UP LOOPBACK RUNNING MTU:65536 Metric:1
        RX packets:704 errors:0 dropped:0 overruns:0 frame:0
        TX packets:704 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:1000
        RX bytes:57024 (55.6 KiB) TX bytes:57024 (55.6 KiB)

        root@beaglebone:~# route
        Kernel IP routing table
        Destination Gateway Genmask Flags Metric Ref Use Iface
        192.168.254.0 * 255.255.255.0 U 0 0 0 eth0
        root@beaglebone:~# iptables -L
        Chain INPUT (policy ACCEPT)
        target prot opt source destination

        Chain FORWARD (policy ACCEPT)
        target prot opt source destination

        Chain OUTPUT (policy ACCEPT)
        target prot opt source destination
        root@beaglebone:~# ethtool eth0
        Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes: 10baseT/Half 10baseT/Full
        100baseT/Half 100baseT/Full
        1000baseT/Full
        1000baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes: 10baseT/Half 10baseT/Full
        100baseT/Half 100baseT/Full
        1000baseT/Full
        1000baseX/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes: 10baseT/Half 10baseT/Full
        100baseT/Half 100baseT/Full
        1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 4
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x00000000 (0)

        Link detected: yes
        root@beaglebone:~# ping 192.168.254.168
        PING 192.168.254.168 (192.168.254.168): 56 data bytes
        ^C
        — 192.168.254.168 ping statistics —
        5 packets transmitted, 0 packets received, 100% packet loss
        root@beaglebone:~# cat /etc/sys
        sysctl.conf syslog-startup.conf syslog.conf
        root@beaglebone:~# cat /etc/sys
        sysctl.conf syslog-startup.conf syslog.conf
        root@beaglebone:~# cat /etc/sysctl.conf
        # This configuration taken from procps v3.3.15
        # Commented out kernel/pid_max=10000 line
        #
        # /etc/sysctl.conf – Configuration file for setting system variables
        # See sysctl.conf (5) for information.

        # you can have the CD-ROM close when you use it, and open
        # when you are done.
        #dev.cdrom.autoeject = 1
        #dev.cdrom.autoclose = 1

        # protection from the SYN flood attack
        #net/ipv4/tcp_syncookies=1

        # see the evil packets in your log files
        #net/ipv4/conf/all/log_martians=1

        # makes you vulnerable or not 🙂
        #net/ipv4/conf/all/accept_redirects=0
        #net/ipv4/conf/all/accept_source_route=0
        net/ipv4/icmp_echo_ignore_broadcasts=0

        # needed for routing, including masquerading or NAT
        #net/ipv4/ip_forward=1

        # sets the port range used for outgoing connections
        #net.ipv4.ip_local_port_range = 32768 61000

        # Broken routers and obsolete firewalls will corrupt the window scaling
        # and ECN. Set these values to 0 to disable window scaling and ECN.
        # This may, rarely, cause some performance loss when running high-speed
        # TCP/IP over huge distances or running TCP/IP over connections with high
        # packet loss and modern routers. This sure beats dropped connections.
        #net.ipv4.tcp_ecn = 0

        # Swapping too much or not enough? Disks spinning up when you’d
        # rather they didn’t? Tweak these.
        #vm.vfs_cache_pressure = 100
        #vm.laptop_mode = 0
        #vm.swappiness = 60

        #kernel.printk_ratelimit_burst = 10
        #kernel.printk_ratelimit = 5
        #kernel.panic_on_oops = 0

        # Reboot 600 seconds after a panic
        #kernel.panic = 600

        # enable SysRq key (note: console security issues)
        #kernel.sysrq = 1

        # Change name of core file to start with the command name
        # so you get things like: emacs.core mozilla-bin.core X.core
        #kernel.core_pattern = %e.core

        # NIS/YP domain (not always equal to DNS domain)
        #kernel.domainname = example.com
        #kernel.hostname = darkstar

        # This limits PID values to 4 digits, which allows tools like ps
        # to save screen space.
        #kernel/pid_max=10000

        # Protects against creating or following links under certain conditions
        # See https://www.kernel.org/doc/Documentation/sysctl/fs.txt
        #fs.protected_hardlinks = 1
        #fs.protected_symlinks = 1

      • #10928
        Kenichiro Kuriharakkurihara
        Participant

          Hi,

          I wanted to update my post.

          With Wireshark I was able to capture arp requests coming from the eval board
          but they had bad checksum errors. Not sure if this is a phy problem or a cpsw
          problem. So packets are leaving the eval board with bad checksums.

          Attached is a wireshark image capture. I also uploaded the devicetree that
          didn’t upload because of the file extension.

          Ethtool reports that we are getting Rx CRC Errors.

          root@beaglebone:~# ethtool -S eth0
          NIC statistics:
          Good Rx Frames: 0
          Broadcast Rx Frames: 0
          Multicast Rx Frames: 0
          Pause Rx Frames: 0
          Rx CRC Errors: 14
          Rx Align/Code Errors: 0
          Oversize Rx Frames: 0
          Rx Jabbers: 0
          Undersize (Short) Rx Frames: 0
          Rx Fragments: 0
          Rx Octets: 0
          Good Tx Frames: 34
          Broadcast Tx Frames: 18
          Multicast Tx Frames: 16
          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: 2584
          Rx + Tx 64 Octet Frames: 3
          Rx + Tx 65-127 Octet Frames: 42
          Rx + Tx 128-255 Octet Frames: 2
          Rx + Tx 256-511 Octet Frames: 0
          Rx + Tx 512-1023 Octet Frames: 0
          Rx + Tx 1024-Up Octet Frames: 1
          Net Octets: 5052
          Rx Start of Frame Overruns: 0
          Rx Middle of Frame Overruns: 0
          Rx DMA Overruns: 0
          Rx DMA chan 0: head_enqueue: 1
          Rx DMA chan 0: tail_enqueue: 127
          Rx DMA chan 0: pad_enqueue: 0
          Rx DMA chan 0: misqueued: 0
          Rx DMA chan 0: desc_alloc_fail: 0
          Rx DMA chan 0: pad_alloc_fail: 0
          Rx DMA chan 0: runt_receive_buf: 0
          Rx DMA chan 0: runt_transmit_bu: 0
          Rx DMA chan 0: empty_dequeue: 0
          Rx DMA chan 0: busy_dequeue: 0
          Rx DMA chan 0: good_dequeue: 0
          Rx DMA chan 0: requeue: 0
          Rx DMA chan 0: teardown_dequeue: 0
          Tx DMA chan 0: head_enqueue: 34
          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: 18
          Tx DMA chan 0: empty_dequeue: 34
          Tx DMA chan 0: busy_dequeue: 0
          Tx DMA chan 0: good_dequeue: 34
          Tx DMA chan 0: requeue: 0
          Tx DMA chan 0: teardown_dequeue: 0

        • #10937
          Kenichiro Kuriharakkurihara
          Participant

            Hi,

            I figured out what was going on. I just thought I would share the solution. The devicetree for the phy was incorrect, since the kernel driver at803x.c updated the way the tx and rx delays are set in the phy. So if you use a kernel version with the following commit you will need to update the phy mode to rgmii-id (delay both rx and tx) instead of rgmii-txid (delay just the tx) in the device tree. The setting seems more “correct” since the MAC (cpsw) does not impliment any internel delays for RGMII mode.

            https://github.com/torvalds/linux/commit/6d4cd041f0af5b4c8fc742b4a68eac22e420e28c#diff-7689eb2d841b417a4938af91175ad97a3142d96a45dca5d945ac2561e61b8f70

          • #12645
            Jose MirandaJose Miranda
            Participant

              kkurihara,

              I would be curious to know what you meant with the following:
              * U-Boot: 2019.04 with beaglebone patches and modification to get phy working

              since I am trying to build an image for the OSD3358-SM-RED using Yocto, but using
              U-Boot: 2020.01

              Poky: dunfell

              Kernel: 4.19.94

               

              Thanks

            • #14894
              Doug SpringerDoug Springer
              Participant

                It’s now 2024, and this problem still exists. It sure would be nice if octavo updated their device tree on github.

                • #14905
                  Neeraj Dantu
                  Moderator

                    Doug,

                    Apologies, this was overlooked for updates. Will add to the next release.

                    Best,

                    Neeraj

              Viewing 4 reply threads
              • You must be logged in to reply to this topic.