cancel
Showing results for 
Search instead for 
Did you mean: 

stm32mp157a + ar8035 ,eth0 can't work properly

xxiao.1
Associate

sdk: 3.0.0 ver

kernel: 5.10.10

Ethernet cannot be connected in the kernel of version 5.10.10, but version 5.4.31 works normally

The Ethernet related device tree is as follows:

dts as follows;
 
 
 
&ethernet0 {
        status = "okay";
        pinctrl-0 = <&ethernet0_rgmii_pins_a>;
        pinctrl-1 = <&ethernet0_rgmii_sleep_pins_a>;
        pinctrl-names = "default", "sleep";
        phy-mode = "rgmii";
        max-speed = <1000>;
        phy-handle = <&phy0>;
        nvmem-cells = <&ethernet_mac_address>;
        nvmem-cell-names = "mac-address";
 
        mdio0 {
//                      reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>;
//                      reset-duration = <200>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        compatible = "snps,dwmac-mdio";
                        phy0: ethernet-phy@6 {
                                        reg = <6>;
                        };
        };
};

dmesg log as follows:

[    4.133408] systemd[1]: System time before build time, advancing clock.
[    6.200429] NET: Registered protocol family 10
[    6.253839] Segment Routing with IPv6
[    6.291489] systemd[1]: systemd 247 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK -SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -ZSTD -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[    6.313175] systemd[1]: Detected architecture arm.
[    6.383833] systemd[1]: Set hostname to <mc-printer>.
[    7.212762] systemd[1]: Queued start job for default target Multi-User System.
[    7.273292] systemd[1]: Created slice system-modprobe.slice.
[    7.315180] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    7.352904] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    7.392807] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    7.433008] systemd[1]: Reached target Paths.
[    7.462428] systemd[1]: Reached target Remote File Systems.
[    7.502287] systemd[1]: Reached target Slices.
[    7.532420] systemd[1]: Reached target Swap.
[    7.573156] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    7.581202] systemd[1]: Listening on Journal Socket (/dev/log).
[    7.623519] systemd[1]: Listening on Journal Socket.
[    7.663889] systemd[1]: Listening on Network Service Netlink Socket.
[    7.703797] systemd[1]: Listening on udev Control Socket.
[    7.743323] systemd[1]: Listening on udev Kernel Socket.
[    7.783604] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    7.797464] systemd[1]: Mounting POSIX Message Queue File System...
[    7.839723] systemd[1]: Mounting Kernel Debug File System...
[    7.879416] systemd[1]: Mounting Kernel Trace File System...
[    7.920730] systemd[1]: Mounting Temporary Directory (/tmp)...
[    7.960174] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    8.019389] systemd[1]: Starting Load Kernel Module configfs...
[    8.059383] systemd[1]: Starting Load Kernel Module fuse...
[    8.092664] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[    8.113030] systemd[1]: Starting Journal Service...
[    8.147432] systemd[1]: Condition check resulted in Load Kernel Modules being skipped.
[    8.161475] systemd[1]: Starting Remount Root and Kernel File Systems...
[    8.214636] systemd[1]: Starting Apply Kernel Variables...
[    8.220899] EXT4-fs (mmcblk1p6): re-mounted. Opts: (null)
[    8.259090] systemd[1]: Starting Coldplug All udev Devices...
[    8.328695] systemd[1]: Mounted POSIX Message Queue File System.
[    8.364426] systemd[1]: Mounted Kernel Debug File System.
[    8.403315] systemd[1]: Started Journal Service.
[    8.857774] systemd-journald[111]: Received client request to flush runtime journal.
[    8.899170] systemd-journald[111]: File /var/log/journal/7ed74cbb68864e24a4224adbaf2dac03/system.journal corrupted or uncleanly shut down, renaming and replacing.
[   10.201362] systemd-journald[111]: File /var/log/journal/7ed74cbb68864e24a4224adbaf2dac03/user-1003.journal corrupted or uncleanly shut down, renaming and replacing.
[   11.092287] systemd-journald[111]: File /var/log/journal/7ed74cbb68864e24a4224adbaf2dac03/user-1004.journal corrupted or uncleanly shut down, renaming and replacing.
[   11.385051] stm32-hash 54002000.hash: will run requests pump with realtime priority
[   11.482768] stm32-hash 54002000.hash: Init HASH done HW ver 23 DMA mode 1
[   11.816408] stm32-crc32 58009000.crc: Initialized
[   14.023643] 8021q: 802.1Q VLAN Support v1.8
[   14.252262] etnaviv etnaviv: bound 59000000.gpu (ops gpu_ops [etnaviv])
[   14.257465] etnaviv-gpu 59000000.gpu: model: GC400, revision: 4652
[   14.302651] etnaviv-gpu 59000000.gpu: Need to move linear window on MC1.0, disabling TS
[   14.332750] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[   14.968889] Bluetooth: Core ver 2.22
[   14.971183] NET: Registered protocol family 31
[   15.034953] Bluetooth: HCI device and connection manager initialized
[   15.039905] Bluetooth: HCI socket layer initialized
[   15.102095] Bluetooth: L2CAP socket layer initialized
[   15.105785] Bluetooth: SCO socket layer initialized
[   15.797632] Bluetooth: HCI UART driver ver 2.3
[   15.800648] Bluetooth: HCI UART protocol H4 registered
[   15.865822] Bluetooth: HCI UART protocol Broadcom registered
[   16.003634] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   16.015360] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   16.303090] Bluetooth: hci0: BCM: chip id 121
[   16.306479] Bluetooth: hci0: BCM: features 0x0e
[   16.311817] Bluetooth: hci0: BCM4359C0
[   16.314382] Bluetooth: hci0: BCM4359C0 (003.001.006) build 0000
[   16.360988] Bluetooth: hci0: BCM4359C0 'brcm/BCM4359C0.hcd' Patch
[   17.094771] Bluetooth: hci0: BCM43596 UART 37.4MHz AMPAK AP6359S2 CL2[Version: Version: 0149.0331]
[   17.102426] Bluetooth: hci0: BCM4359C0 (003.001.006) build 0331
[   17.221839] systemd-journald[111]: File /var/log/journal/7ed74cbb68864e24a4224adbaf2dac03/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
[   17.440139] systemd-journald[111]: File /var/log/journal/7ed74cbb68864e24a4224adbaf2dac03/user-1001.journal corrupted or uncleanly shut down, renaming and replacing.
[   17.508557] stm32-dwmac 5800a000.ethernet eth0: PHY [stmmac-0:06] driver [Qualcomm Atheros AR8035] (irq=POLL)
[   17.542005] dwmac4: Master AXI performs any burst length
[   17.545958] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
[   17.582045] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   17.626003] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
[   17.638891] stm32-dwmac 5800a000.ethernet eth0: configuring for phy/rgmii link mode
[   17.662361] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4359-sdio for chip BCM4359/9
[   17.673022] cryptd: max_cpu_qlen set to 1000
[   17.689479] 8021q: adding VLAN 0 to HW filter on device eth0
[   17.707697] stm32-dwmac 5800a000.ethernet eth0: Adding VLAN ID 0 is not supported
[   17.952630] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4359-sdio for chip BCM4359/9
[   17.959914] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   17.992666] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4359/9 wl0: Apr 22 2019 15:46:28 version 9.87.51.11.31 (1140361@shgit) (r) FWID 01-e64dfcc7
[   18.962244] ieee80211 phy0: brcmf_dongle_roam: WLC_SET_ROAM_TRIGGER error (-52)
[   20.793998] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   20.801055] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   22.891077] systemd-journald[111]: File /var/log/journal/7ed74cbb68864e24a4224adbaf2dac03/user-1005.journal corrupted or uncleanly shut down, renaming and replacing.

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
PatrickF
ST Employee

Hi,

did you progress meanwhile ?

from the log above, seems ethernet if OK.

Did you cross check the DTS potential changes between ecosystem V3 (kernel 5.10) and V2 (kernel 5.4) ?

I know that there was some changes regarding driving reset signal. Did you use it on your board ?

https://wiki.st.com/stm32mpu/wiki/Ethernet_device_tree_configuration#How_to_configure_a_PHY_reset_signal

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Tip of the day: Try Sidekick STM32 AI agent, see here