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.

AM3352: Dual EMAC not working

Part Number: AM3352
Other Parts Discussed in Thread: TPS65217

Hi!

Im working on a custom card with an am3352 and we want to have dual ethernet with two separate MACs but I cant get it eth0 to work. The ethernets should run in rmii mode.

Eth1 works well. Eth0 shows up in linux but it cant seam to reach the DHCP server, if I give it a static IP it cant reach or ping other devices (that I can reach from eth1). Both the link and activity LED on the eth0 RJ45 connector is on regardless if the is a cable connected to it. The eth1 appears to be normal.

If i do a "ip a" (Im running debian) it looks as if they have to same MAC:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

    link/ether f4:e1:1e:55:32:88 brd ff:ff:ff:ff:ff:ff

    inet6 fe80::f6e1:1eff:fe55:3288/64 scope link

       valid_lft forever preferred_lft forever

3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

   link/ether f4:e1:1e:55:32:88 brd ff:ff:ff:ff:ff:ff inet 192.168.1.71/24 brd 192.168.1.255 scope global dynamic eth1

       valid_lft 86347sec preferred_lft 86347sec

    inet6 fe80::f6e1:1eff:fe55:3288/64 scope link

      valid_lft forever preferred_lft forever


The dts file (selected parts):

    phy0_default: phy0_default {
        pinctrl-single,pins = <
            AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* (H17) gmii1_crs.rmii1_crs_dv */
            AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE1) /* (J15) gmii1_rxer.rmii1_rxer */
            AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* (J16) gmii1_txen.rmii1_txen */
            AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* (K17) gmii1_txd0.rmii1_txd0 */
            AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* (K16) gmii1_txd1.rmii1_txd1 */
            AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE1) /* (M16) gmii1_rxd0.rmii1_rxd0 */
            AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* (L15) gmii1_rxd1.rmii1_rxd1 */
            AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE0) /* (H18) rmii1_refclk.rmii1_refclk */
        >;
    };
    
    phy1_default: phy1_default {
        pinctrl-single,pins = <
            AM33XX_IOPAD(0x870, PIN_INPUT_PULLDOWN | MUX_MODE3) /* (T17) gpmc_wait0.rmii2_crs_dv */
            AM33XX_IOPAD(0x874, PIN_INPUT_PULLDOWN | MUX_MODE3) /* (U17) gpmc_wpn.rmii2_rxer */
            AM33XX_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* (R13) gpmc_a0.rmii2_txen */
            AM33XX_IOPAD(0x854, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* (V15) gpmc_a5.rmii2_txd0 */
            AM33XX_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* (R14) gpmc_a4.rmii2_txd1 */
            AM33XX_IOPAD(0x86c, PIN_INPUT_PULLDOWN | MUX_MODE3) /* (V17) gpmc_a11.rmii2_rxd0 */
            AM33XX_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE3) /* (T16) gpmc_a10.rmii2_rxd1 */
            AM33XX_IOPAD(0x908, PIN_INPUT_PULLDOWN | MUX_MODE1) /* (H16) gmii1_col.rmii2_refclk */
        >;
    };

    davinci_mdio_default: davinci_mdio_default {
        pinctrl-single,pins = <
            AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* (M18) mdio_clk.mdio_clk */
            AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* (M17) mdio_data.mdio_data */
        >;
    };

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

&cpsw_emac1 {
    status = "okay";
    phy_id = <&davinci_mdio>, <1>;
    phy-mode = "rmii";
    dual_emac_res_vlan = <2>;
};

&phy_sel {
    rmii-clock-ext;
};

&mac {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&phy0_default>,<&phy1_default>;
    dual_emac = <1>;
};

&davinci_mdio {
    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&davinci_mdio_default>;
    status = "okay";
};

Any ideas what I'm doing wrong?

Best regards,

Linus

  • Update: The kernel is from TI, 4.19.121.

    git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

  • And the boot log:

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.121-dirty (linus@homer) (gcc version 5.5.0 20171010 (Ubuntu/Linaro 5.5.0-12ubuntu1)) #1 SMP Fri May 8 12:31:53 CEST 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: XXXXXXXX
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] cma: Reserved 16 MiB at 0x9e800000
    [    0.000000] On node 0 totalpages: 130560
    [    0.000000]   Normal zone: 1148 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 130560 pages, LIFO batch:31
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon)
    [    0.000000] random: get_random_bytes called from start_kernel+0x90/0x4a4 with crng_init=0
    [    0.000000] percpu: Embedded 17 pages/cpu s38056 r8192 d23384 u69632
    [    0.000000] pcpu-alloc: s38056 r8192 d23384 u69632 alloc=17*4096
    [    0.000000] pcpu-alloc: [0] 0
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129412
    [    0.000000] Kernel command line: root=/dev/mmcblk0p2 rw console=ttyS0,115200n8
    [    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: 478992K/522240K available (9216K kernel code, 797K rwdata, 2632K rodata, 1024K init, 7477K bss, 26864K reserved, 16384K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
                       vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                       fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                       vmalloc : 0xe0000000 - 0xff800000   ( 504 MB)
                       lowmem  : 0xc0000000 - 0xdfe00000   ( 510 MB)
                       pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                       modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                         .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
                         .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                         .data : 0x(ptrval) - 0x(ptrval)   ( 798 kB)
                          .bss : 0x(ptrval) - 0x(ptrval)   (7478 kB)
    [    0.000000] Running RCU self tests
    [    0.000000] rcu: Hierarchical RCU implementation.
    [    0.000000] rcu:     RCU event tracing is enabled.
    [    0.000000] rcu:     RCU lockdep checking is enabled.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
    [    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.000018] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000050] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000107] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000599] timer_probe: no matching timers found
    [    0.001597] Console: colour dummy device 80x30
    [    0.001665] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
    [    0.001683] ... MAX_LOCKDEP_SUBCLASSES:  8
    [    0.001699] ... MAX_LOCK_DEPTH:          48
    [    0.001715] ... MAX_LOCKDEP_KEYS:        8191
    [    0.001730] ... CLASSHASH_SIZE:          4096
    [    0.001746] ... MAX_LOCKDEP_ENTRIES:     32768
    [    0.001763] ... MAX_LOCKDEP_CHAINS:      65536
    [    0.001778] ... CHAINHASH_SIZE:          32768
    [    0.001794]  memory used by lock dependency info: 4655 kB
    [    0.001810]  per task-struct memory footprint: 1536 bytes
    [    0.001904] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.078589] pid_max: default: 32768 minimum: 301
    [    0.079060] Security Framework initialized
    [    0.079206] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.079231] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.082875] CPU: Testing write buffer coherency: ok
    [    0.083072] CPU0: Spectre v2: using BPIALL workaround
    [    0.084794] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [    0.087314] Setting up static identity map for 0x80100000 - 0x80100078
    [    0.087984] rcu: Hierarchical SRCU implementation.
    [    0.090206] smp: Bringing up secondary CPUs ...
    [    0.090240] smp: Brought up 1 node, 1 CPU
    [    0.090261] SMP: Total of 1 processors activated (996.14 BogoMIPS).
    [    0.090280] CPU: All CPU(s) started in SVC mode.
    [    0.094561] devtmpfs: initialized
    [    0.121054] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.121904] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.121981] futex hash table entries: 256 (order: 2, 16384 bytes)
    [    0.123712] pinctrl core: initialized pinctrl subsystem
    [    0.129469] NET: Registered protocol family 16
    [    0.136773] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.197580] l4_wkup_cm:clk:0010:0: failed to disable
    [    0.251898] audit: initializing netlink subsys (disabled)
    [    0.255052] cpuidle: using governor menu
    [    0.282893] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
    [    0.287603] No ATAGs?
    [    0.287616] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.327146] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.328289] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@1[0]'
    [    0.334141] vgaarb: loaded
    [    0.335291] SCSI subsystem initialized
    [    0.336195] libata version 3.00 loaded.
    [    0.337144] pps_core: LinuxPPS API ver. 1 registered
    [    0.337173] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.337229] PTP clock support registered
    [    0.341749] clocksource: Switched to clocksource timer1
    [    0.504672] VFS: Disk quotas dquot_6.6.0
    [    0.504887] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.534165] NET: Registered protocol family 2
    [    0.536623] tcp_listen_portaddr_hash hash table entries: 256 (order: 1, 10240 bytes)
    [    0.536720] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.536819] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
    [    0.537399] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.537859] UDP hash table entries: 256 (order: 2, 20480 bytes)
    [    0.537980] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
    [    0.538500] NET: Registered protocol family 1
    [    0.541416] RPC: Registered named UNIX socket transport module.
    [    0.541507] RPC: Registered udp transport module.
    [    0.541770] RPC: Registered tcp transport module.
    [    0.541789] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.541821] PCI: CLS 0 bytes, default 64
    [    0.545419] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.551063] Initialise system trusted keyrings
    [    0.552535] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    0.555920] NFS: Registering the id_resolver key type
    [    0.556122] Key type id_resolver registered
    [    0.556201] Key type id_legacy registered
    [    0.556387] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.564882] Key type asymmetric registered
    [    0.565135] Asymmetric key parser 'x509' registered
    [    0.565336] io scheduler noop registered
    [    0.565364] io scheduler deadline registered
    [    0.565561] io scheduler cfq registered (default)
    [    0.565588] io scheduler mq-deadline registered
    [    0.565609] io scheduler kyber registered
    [    0.568420] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [    0.575637] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled
    [    0.589796] console [ttyS0] disabled
    [    0.590331] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
    [    1.258795] console [ttyS0] enabled
    [    1.295453] brd: module loaded
    [    1.326884] loop: module loaded
    [    1.333035] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.346138] mdio_bus fixed-0: GPIO lookup for consumer reset
    [    1.346162] mdio_bus fixed-0: using lookup tables for GPIO lookup
    [    1.346272] mdio_bus fixed-0: No GPIO consumer reset found
    [    1.346505] libphy: Fixed MDIO Bus: probed
    [    1.369002] mdio_bus 4a101000.mdio: GPIO lookup for consumer reset
    [    1.369029] mdio_bus 4a101000.mdio: using device tree for GPIO lookup
    [    1.369070] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/ethernet@4a100000/mdio@4a101000[0]'
    [    1.369101] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/ethernet@4a100000/mdio@4a101000[0]'
    [    1.369119] mdio_bus 4a101000.mdio: using lookup tables for GPIO lookup
    [    1.369136] mdio_bus 4a101000.mdio: No GPIO consumer reset found
    [    1.421751] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.429518] davinci_mdio 4a101000.mdio: detected phy mask fffffffc
    [    1.442756] libphy: 4a101000.mdio: probed
    [    1.446836] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [    1.456685] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver SMSC LAN8710/LAN8720
    [    1.467681] cpsw 4a100000.ethernet: Detected MACID = f4:e1:1e:55:32:88
    [    1.475329] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.482012] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.487363] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.497764] cpsw 4a100000.ethernet: cpsw: Detected MACID = f4:e1:1e:55:32:88
    [    1.507933] i2c /dev entries driver
    [    1.515432] sdhci: Secure Digital Host Controller Interface driver
    [    1.521847] sdhci: Copyright(c) Pierre Ossman
    [    1.527502] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [    1.527522] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.527568] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@48060000[0]'
    [    1.527600] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@48060000[0]'
    [    1.527620] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [    1.527636] omap_hsmmc 48060000.mmc: No GPIO consumer cd found
    [    1.527656] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [    1.527669] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.527698] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [    1.527727] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [    1.527742] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [    1.527756] omap_hsmmc 48060000.mmc: No GPIO consumer wp found
    [    1.529545] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
    [    1.562520] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
    [    1.562542] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.562586] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.562617] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.562635] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.562652] omap_hsmmc 481d8000.mmc: No GPIO consumer cd found
    [    1.562672] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
    [    1.562684] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.562714] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.562743] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.562758] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.562771] omap_hsmmc 481d8000.mmc: No GPIO consumer wp found
    [    1.563771] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
    [    1.594475] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.601480] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.611057] oprofile: using arm/armv7
    [    1.615766] Initializing XFRM netlink socket
    [    1.620774] NET: Registered protocol family 10
    [    1.630919] Segment Routing with IPv6
    [    1.635043] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.643217] NET: Registered protocol family 17
    [    1.647791] NET: Registered protocol family 15
    [    1.652819] Key type dns_resolver registered
    [    1.657264] ThumbEE CPU extension supported.
    [    1.661704] Registering SWP/SWPB emulation handler
    [    1.666539] omap_voltage_late_init: Voltage driver support not added
    [    1.673027] sr_dev_init: Unknown instance smartreflex0
    [    1.678666] SmartReflex Class3 initialized
    [    1.687313] Loading compiled-in X.509 certificates
    [    1.742040] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.754695] gpio gpiochip0: (gpio-0-31): added GPIO chardev (254:0)
    [    1.755405] gpiochip_setup_dev: registered GPIOs 0 to 31 on device: gpiochip0 (gpio-0-31)
    [    1.755667] OMAP GPIO hardware version 0.1
    [    1.762167] mmc0: new high speed SDHC card at address 1234
    [    1.770051] gpio gpiochip1: (gpio-32-63): added GPIO chardev (254:1)
    [    1.770308] gpiochip_setup_dev: registered GPIOs 32 to 63 on device: gpiochip1 (gpio-32-63)
    [    1.772612] gpio gpiochip2: (gpio-64-95): added GPIO chardev (254:2)
    [    1.772872] gpiochip_setup_dev: registered GPIOs 64 to 95 on device: gpiochip2 (gpio-64-95)
    [    1.774593] gpio gpiochip3: (gpio-96-127): added GPIO chardev (254:3)
    [    1.774825] gpiochip_setup_dev: registered GPIOs 96 to 127 on device: gpiochip3 (gpio-96-127)
    [    1.779716] mmcblk0: mmc0:1234 SA08G 7.21 GiB
    [    1.797296]  mmcblk0: p1 p2
    [    1.809450] random: fast init done
    [    1.820222] mmc1: new high speed MMC card at address 0001
    [    1.829626] mmcblk1: mmc1:0001 Q2J54A 3.64 GiB
    [    1.836220] mmcblk1boot0: mmc1:0001 Q2J54A partition 1 2.00 MiB
    [    1.844003] mmcblk1boot1: mmc1:0001 Q2J54A partition 2 2.00 MiB
    [    1.852409] mmcblk1rpmb: mmc1:0001 Q2J54A partition 3 512 KiB, chardev (248:0)
    [    1.890447] tps65217 0-0024: TPS65217 ID 0x6 version 1.2
    [    1.897137] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.904735] hctosys: unable to open rtc device (rtc0)
    [    1.909846] sr_init: No PMIC hook to init smartreflex
    [    3.665338] EXT4-fs (mmcblk0p2): recovery complete
    [    3.675848] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    3.684336] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    3.693936] devtmpfs: mounted
    [    3.699071] Freeing unused kernel memory: 1024K
    [    3.704757] Run /sbin/init as init process
    [    4.342599] systemd[1]: System time before build time, advancing clock.
    [    4.415527] systemd[1]: Inserted module 'autofs4'
    [    4.490854] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
    [    4.514330] systemd[1]: Detected architecture arm.
    [    4.574445] systemd[1]: Set hostname to <palette-gateway>.
    [    5.846918] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
    [    5.865081] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
    [    6.338687] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.356063] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.366023] systemd[1]: Listening on Journal Socket (/dev/log).
    [    6.402150] random: systemd: uninitialized urandom read (16 bytes read)
    [    6.410871] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    6.456924] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
    [    6.502294] systemd[1]: Reached target Swap.
    [    6.558416] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [    9.436946] systemd-journald[78]: Received request to flush runtime journal from PID 1
    [   11.587739] cpu cpu0: Linked as a consumer to regulator.3
    [   11.682792] cpu cpu0: Dropping the link to regulator.3
    [   11.825725] cpu cpu0: Linked as a consumer to regulator.3
    [   11.880526] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [   11.943488] omap_rtc 44e3e000.rtc: registered as rtc0
    [   12.184393] tps6521x_pwrbutton tps65217-pwrbutton: DMA mask not set
    [   12.205936] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [   12.286344] input: tps65217_pwrbutton as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
    [   12.522472] omap_rng 48310000.rng: Random Number Generator ver. 20
    [   12.530509] random: crng init done
    [   12.534232] random: 7 urandom warning(s) missed due to ratelimiting
    [   13.259691] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer reset
    [   13.259722] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
    [   13.259772] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [   13.259805] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [   13.259824] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [   13.259842] am335x-phy-driver 47401300.usb-phy: No GPIO consumer reset found
    [   13.259860] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer vbus-detect
    [   13.259873] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
    [   13.259903] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [   13.259932] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [   13.259948] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [   13.259963] am335x-phy-driver 47401300.usb-phy: No GPIO consumer vbus-detect found
    [   13.260114] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [   13.270808] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
    [   13.309342] usbcore: registered new interface driver usbfs
    [   13.315980] usbcore: registered new interface driver hub
    [   13.321760] usbcore: registered new device driver usb
    [   13.614324] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer reset
    [   13.614352] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
    [   13.614401] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [   13.614435] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [   13.614454] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
    [   13.614472] am335x-phy-driver 47401b00.usb-phy: No GPIO consumer reset found
    [   13.614491] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer vbus-detect
    [   13.614504] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
    [   13.614535] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [   13.614565] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [   13.614580] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
    [   13.614595] am335x-phy-driver 47401b00.usb-phy: No GPIO consumer vbus-detect found
    [   13.614746] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    [   13.625402] am335x-phy-driver 47401b00.usb-phy: Linked as a consumer to regulator.0
    [   13.762809] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [   13.769290] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [   13.878255] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [   14.074291] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [   14.093140] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [   14.102082] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   14.109357] usb usb1: Product: MUSB HDRC host driver
    [   14.114445] usb usb1: Manufacturer: Linux 4.19.121-dirty musb-hcd
    [   14.120580] usb usb1: SerialNumber: musb-hdrc.0
    [   14.250231] omap-aes 53500000.aes: will run requests pump with realtime priority
    [   14.367706] remoteproc remoteproc0: wkup_m3 is available
    [   14.528410] remoteproc remoteproc0: powering up wkup_m3
    [   14.566494] hub 1-0:1.0: USB hub found
    [   14.572045] hub 1-0:1.0: 1 port detected
    [   14.704320] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 242820
    [   14.713883] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [   14.721226] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [   14.796384] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [   14.801985] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    [   14.937350] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [   14.945965] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   14.953391] usb usb2: Product: MUSB HDRC host driver
    [   14.958393] usb usb2: Manufacturer: Linux 4.19.121-dirty musb-hcd
    [   14.964598] usb usb2: SerialNumber: musb-hdrc.1
    [   15.343501] hub 2-0:1.0: USB hub found
    [   15.400785] hub 2-0:1.0: 1 port detected
    [   15.605228] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #1, port1 00000104
    [   15.757566] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #2, port1 00000104
    [   15.909984] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #3, port1 00000104
    [   16.062533] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c
    [   20.543168] net eth1: initializing cpsw version 1.12 (0)
    [   20.835787] SMSC LAN8710/LAN8720 4a101000.mdio:01: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:01, irq=POLL)
    [   20.913520] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [   20.928030] net eth0: initializing cpsw version 1.12 (0)
    [   21.097523] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    [   21.115508] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   22.963908] cpsw 4a100000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
    [   22.974885] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
    [   23.203740] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
    [   23.212369] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

     

    That last part with flow control rx/tx or off might be a clue?

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

  • Thank you Biser!

    I found out the problem and the fix was to:

    1) Write the 2nd MAC address in u-boot.

    2) Reset the PHYs in u-boot startup.

    Everything with ethernet is working now :).

    Best regards,

    Linus