这是基于
STM32MP157c 的
电路板设计,采用 Micrel KSZ9021GN PHY,处于 100 MII 模式。
你以前见过这种情况吗?
这是引导的相关部分,早期的内核部分看起来很正常,LED 也亮着。
- ...
- [ 2.507568] stm32-dwmac 5800a000.ethernet: PTP uses main clock
- [ 2.512079] stm32-dwmac 5800a000.ethernet: no reset control found
- [ 2.518073] stm32-dwmac 5800a000.ethernet: No phy clock provided...
- [ 2.524955] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
- [ 2.531304] stm32-dwmac 5800a000.ethernet: DWMAC4/5
- [ 2.536191] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
- [ 2.543532] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
- [ 2.550811] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
- [ 2.557657] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
- [ 2.563937] stm32-dwmac 5800a000.ethernet: TSO supported
- [ 2.569235] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
- [ 2.577041] stm32-dwmac 5800a000.ethernet: TSO feature enabled
- [ 2.583203] libphy: stmmac: probed
- ...
后来,我看到错误,驱动程序断言永久重置,灯熄灭。
- [ 10.557559] stm32-dwmac 5800a000.ethernet eth0: PHY [stmmac-0:03] driver [Generic PHY]
- ...
- [ 13.376644] stm32-dwmac 5800a000.ethernet: Failed to reset the dma
- [ 13.388797] stm32-dwmac 5800a000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
- /dev/mmcblk2p4: fsck 0.0% compl[ 13.399390] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Hw setup failed
- ...
必须在拔下电缆的情况下(重新)启动电路板。
另一件可能是线索的奇怪事情?是当以太网工作时,我必须插入->拔出->插入电缆才能点亮和工作。如果然后拔掉插头,我必须总是重新插入两次才能再次出现。
提前致谢!比尔。