Skip to main content
SPark.15
Associate III
August 5, 2021
Question

How Can I solve my ethernet problem? (ethernet not working)

  • August 5, 2021
  • 1 reply
  • 2739 views

Hello guys.

I have configured ethernet on STM32MP157F using Microchip's LAN8720AI-CP.

I base my image on st-image-core of Distribution Package. And dts is configured using CubeMX(meta-st-stm32mp-addons).

Currently, it appears as if ethernet is connected as shown in the picture below.

[ 0.000000] psci: probing for conduit method from DT.
[ 1.235904] usbcore: registered new interface driver cdc_ether
[ 2.758680] stm32-dwmac 5800a000.ethernet: PTP uses main clock
[ 2.763159] stm32-dwmac 5800a000.ethernet: no reset control found
[ 2.769206] stm32-dwmac 5800a000.ethernet: No phy clock provided...
[ 2.776103] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[ 2.782483] stm32-dwmac 5800a000.ethernet: DWMAC4/5
[ 2.787398] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[ 2.794742] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[ 2.802082] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[ 2.808934] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[ 2.815234] stm32-dwmac 5800a000.ethernet: TSO supported
[ 2.820552] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 2.828396] stm32-dwmac 5800a000.ethernet: device MAC address 4a:d6:e6:66:9a:94
[ 2.835731] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[ 10.630088] stm32-dwmac 5800a000.ethernet eth0: PHY [stmmac-0:01] driver [SMSC LAN8710/LAN8720]
[ 10.708890] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
[ 10.800503] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 10.808475] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
[ 10.840726] stm32-dwmac 5800a000.ethernet eth0: configuring for phy/rmii link mode
[ 11.450968] using random self ethernet address
[ 11.453968] using random host ethernet address
[ 12.972676] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 12.980117] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0 Link encap:Ethernet HWaddr F2:1D:22:8E:04:45 
 inet addr:192.168.0.51 Bcast:192.168.0.255 Mask:255.255.255.0
 inet6 addr: fe80::f01d:22ff:fe8e:445/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 RX packets:608 errors:0 dropped:0 overruns:0 frame:0
 TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000 
 RX bytes:164901 (161.0 KiB) TX bytes:15434 (15.0 KiB)
 Interrupt:38 Base address:0x4000 

However, ssh connection to this board is not available in the same network from other PC.

(ssh : connect to host 192.168.0.51 port 22 : No route to host)

ping command also same.

PING 192.168.0.51 (192.168.0.51) 56(84) bytes of data.
From 192.168.0.43 icmp_seq=1 Destination Host Unreachable
From 192.168.0.43 icmp_seq=2 Destination Host Unreachable
From 192.168.0.43 icmp_seq=3 Destination Host Unreachable

How Can i debug this problem?

This topic has been closed for replies.

1 reply

PatrickF
Technical Moderator
August 26, 2021

Hi,

did you progress meanwhile ?

From the console on your board, did you succeed to ping other device or website ?

As far as I see in the first part of your post, all seems ok.

Regards,

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
SPark.15
SPark.15Author
Associate III
September 1, 2021

Hi,

I've tried changing the BSP several times, but nothing happens.

I think it's a HW problem.

But it might be a BSP issue, so we're checking.

Is there any other way I might try?

Regards,​

PatrickF
Technical Moderator
September 1, 2021

Hi,

Are you sure it is not some setting on your PC which avoid to access the board (e.g. VPN, specific company security settings, etc..) ?

Have you tried vice versa, i.e. ping from the board to a PC ? between two boards ?

If your network allow internet access, is the following commands works ?

Did you check you schematics and DT between AN5031 and the recommended DT (depend on your HW choices):

Some HW problem could exist on your board (e.g. between PHY and RJ45 like mixed up pairs).

Regards.

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