Issue with ODYSSEY-STM32MP157C getting started guide

I am having some trouble with the Debian: Getting Started with the ODYSSEY-STM32MP157C guide. During system boot from sd-card, eth0 is not recognised. The systems works fine with the image provided by Seeed, so it shouldn’t be a hardware problem. The output of “dmesg | grep eth” is:

[ 0.000000] psci: probing for conduit method from DT.
[ 3.458768] stm32-dwmac 5800a000.ethernet: IRQ eth_wake_irq not found
[ 3.463845] stm32-dwmac 5800a000.ethernet: IRQ eth_lpi not found
[ 3.471032] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[ 3.476831] stm32-dwmac 5800a000.ethernet: DWMAC4/5
[ 3.481740] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[ 3.489039] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[ 3.496346] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[ 3.503238] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[ 3.509672] stm32-dwmac 5800a000.ethernet: TSO supported
[ 3.514811] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 3.522637] stm32-dwmac 5800a000.ethernet: device MAC address ea:5d:a3:fa:ac:2e
[ 3.530048] stm32-dwmac 5800a000.ethernet: Enabled L3L4 Flow TC (entries=2)
[ 3.536907] stm32-dwmac 5800a000.ethernet: Enabled RFS Flow TC (entries=8)
[ 3.543772] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[ 3.549605] stm32-dwmac 5800a000.ethernet: Using 32 bits DMA width
[ 17.150332] stm32-dwmac 5800a000.ethernet eth0: no phy found
[ 17.156419] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[ 17.347647] stm32-dwmac 5800a000.ethernet eth0: no phy found
[ 17.352019] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[ 17.499556] stm32-dwmac 5800a000.ethernet eth0: no phy found
[ 17.503864] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[ 17.708364] stm32-dwmac 5800a000.ethernet eth0: no phy found
[ 17.712704] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[ 17.886465] stm32-dwmac 5800a000.ethernet eth0: no phy found
[ 17.890793] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)

I assume there is an issue in the device tree, but I can’t find out. Did anybody have the same problem, or any clue how to solve the issue?

Thanx and kind regards, Timo

Which kernel branch did you build with?

@RobertCNelson , I tried everything from scratch again as in the getting started guide, kernel 5.15.148 is used.

I’m also having this issue.

I’m using the source referenced in the getting started guide along with kernel v5.15. I discovered that the kernel device-tree (stm32mp157c-odyssey.dts) incorrectly places the ethernet PHY at MDIO address 8. The Seeed image places the PHY at MDIO address 7 and is working.

Even with this correction the ethernet peripheral remains unable to attach a PHY. Using the full dtb from Seeed’s image does not result in a working interface either.

Seeed Studio’s image is using u-boot SPL while the getting started guide utilizes Arm Trusted Firmware. It seems there is something that u-boot SPL is initializing which Arm Trusted Firmware fails to.

I wouldn’t mind kicking Arm Trusted Firmware to the curb and using u-boot SPL but the images that Seeed has released are based on dirty (and uncommitted?) repositories and I’ve been unable to locate the sources or patches.

Here is the initial output of the Seeed Studio image:

U-Boot SPL 2018.11-stm32mp-r2.2-00047-g1dfe5d6799-dirty (Dec 26 2019 - 17:09:17 +0800)
Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
RAM: DDR3-1066/888 bin G 1x4Gb 533MHz v1.44
Trying to boot from MMC1


U-Boot 2018.11-stm32mp-r2.2-00047-g1dfe5d6799-dirty (Dec 26 2019 - 17:09:17 +0800)

CPU: STM32MP157CAC Rev.?
Model: STMicroelectronics STM32MP157C-DK2 Discovery Board
Board: stm32mp1 in basic mode (st,stm32mp157c-dk2)

Any advice would be welcomed!

Thanks

U-Boot SPL was enabled initially in a lot of these boards. But ST is fully backing ATF for U-Boot SPL. We need to move all these to ATF.

Regards,