2021-08-24 06:15 PM
We are new the MPUs and Linux. We received a new STM32MP157F-DK2 board, out of the box and boots up with the default binaries in the SD card.
However, we find that the ethernet is not working (the LD3 is blinking).
root@stm32mp1:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:80:E1:42:84:8F
inet6 addr: fe80::280:e1ff:fe42:848f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:819 errors:0 dropped:50 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:58744 (57.3 KiB) TX bytes:8502 (8.3 KiB)
Interrupt:54 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:184 errors:0 dropped:0 overruns:0 frame:0
TX packets:184 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10720 (10.4 KiB) TX bytes:10720 (10.4 KiB)
usb0 Link encap:Ethernet HWaddr 0A:68:50:EF:AD:61
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr C4:AC:59:83:77:8F
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
I have copy-pasted only the ethernet logs below which show that the the link is Up.
root@stm32mp1:~# dmesg | grep eth
[ 0.000000] psci: probing for conduit method from DT.
[ 1.468806] stm32-dwmac 5800a000.ethernet: PTP uses main clock
[ 1.473249] stm32-dwmac 5800a000.ethernet: no reset control found
[ 1.479308] stm32-dwmac 5800a000.ethernet: No phy clock provided...
[ 1.502019] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[ 1.507531] stm32-dwmac 5800a000.ethernet: DWMAC4/5
[ 1.512539] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[ 1.519793] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[ 1.527131] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[ 1.533993] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[ 1.540237] stm32-dwmac 5800a000.ethernet: TSO supported
[ 1.545565] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 1.553394] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[ 1.588202] usbcore: registered new interface driver cdc_ether
[ 2.048522] optee: probing for conduit method from DT.
[ 8.029018] stm32-dwmac 5800a000.ethernet eth0: No Safety Features support found
[ 8.056288] stm32-dwmac 5800a000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 8.072664] stm32-dwmac 5800a000.ethernet eth0: registered PTP clock
[ 8.089364] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 9.232265] using random self ethernet address
[ 9.235675] using random host ethernet address
[ 13.273126] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 13.280228] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
We would like to determine it is a faulty board or if we are missing something. Any help is much appreciated.
Thanks.
Solved! Go to Solution.
2021-08-31 03:01 PM
Hi Patrick,
Thanks for the pointers.
The ethernet on the DK-2 board was working fine when connected to home network with proper IP address being assigned.
Guess it was some firewall at office preventing it, which was resolved by the system admin and it now works at office too.
Thanks.
2021-08-25 12:13 AM
Hi,
Not LAN expert, but seems you eth0 is UP and RUNNING (LD3 is normal, should blink on Gigabit network activity).
Seems that your network DHCP has only assigned an IPv6 address to your board, which might not be what you wanted.
See this similar post https://community.st.com/s/question/0D50X0000B31mTmSQI/stm32mp157dk2-not-connecting-to-ethernet
Btw, I think that out of the box, the code provided in the flash is not the latest Ecosystem V3. A good exercise would be to reflash your board (see https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image). Note that Flashing starter package could also be done with CubeProgrammer under W10 (no need of Linux at this point).
Regards.
2021-08-31 03:01 PM
Hi Patrick,
Thanks for the pointers.
The ethernet on the DK-2 board was working fine when connected to home network with proper IP address being assigned.
Guess it was some firewall at office preventing it, which was resolved by the system admin and it now works at office too.
Thanks.