完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我目前正在使用 S32G3 SoC 和带有 Auto Linux BSP 35.0 S32G399ARDB3定制板。
我们的设计是通过 PCIe 将 SerDes 1 连接到以太网交换机。 GMAC0 通过 MDC/MDIO 将 2 个具有地址 0x1 和 0x3 的自定义 phys。 以太网交换机通过 HSGMII 连接 2 个 phy 以太网交换机可以正常工作,phy register 可以通过 mdio 工具访问。 但是现在 gmac0 不能挂载到 phy 上,我们应该修改 gmac 驱动吗? root@s32g399ardb3:~# dmesg | grep "s32cc-dwmac" [ 0.954524] s32cc-dwmac 4033c000.ethernet: IRQ eth_wake_irq not found [ 0.961096] s32cc-dwmac 4033c000.ethernet: IRQ eth_lpi not found [ 0.967351] s32cc-dwmac 4033c000.ethernet: no reset control found [ 0.973685] s32cc-dwmac 4033c000.ethernet: phy mode set to RGMII [ 0.979917] s32cc-dwmac 4033c000.ethernet: User ID: 0x10, Synopsys ID: 0x52 [ 0.987025] s32cc-dwmac 4033c000.ethernet: DWMAC4/5 [ 0.992094] s32cc-dwmac 4033c000.ethernet: DMA HW capability register supported [ 0.999548] s32cc-dwmac 4033c000.ethernet: RX Checksum Offload Engine supported [ 1.007002] s32cc-dwmac 4033c000.ethernet: TX Checksum insertion supported [ 1.014017] s32cc-dwmac 4033c000.ethernet: Wake-Up On Lan supported [ 1.020443] s32cc-dwmac 4033c000.ethernet: Enabled workarounds for s32g274a platform [ 1.028342] s32cc-dwmac 4033c000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 1.036336] s32cc-dwmac 4033c000.ethernet: device MAC address 3e:c7:70:9f:25:b4 [ 1.043795] s32cc-dwmac 4033c000.ethernet: Enabled Flow TC (entries=8) [ 1.050459] s32cc-dwmac 4033c000.ethernet: Enabling HW TC (entries=256, max_off=256) [ 1.058358] s32cc-dwmac 4033c000.ethernet: Using 32 bits DMA width [ 6.308041] s32cc-dwmac 4033c000.ethernet eth0: validation of rgmii-id with support 0000000,00000000,000062c0 and advertisement 0000000,00000000,000062c0 failed: -22 [ 6.308076] s32cc-dwmac 4033c000.ethernet eth0: no phy at addr -1 [ 6.308082] s32cc-dwmac 4033c000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19) 这是我们关于 s32gxxxardb.dtsi 上的 phy 配置的设备树 gmac0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = < gmac0rgmiia_pins>, < gmac0mdioa_pins>; phy-handle = < gmac_mdio_a_phy1>; phy-mode = "rgmii-id";}; gmac0_mdio { /* KSZ9031 GMAC */ // gmac_mdio_a_phy0: ethernet-phy@0 { // reg = <0>; // }; gmac_mdio_a_phy1: ethernet-phy@1 { reg = <1>; }; gmac_mdio_a_phy3: ethernet-phy@3 { reg = <3>; };}; |
|
相关推荐
1个回答
|
|
|
根据你提供的信息,以下是解决S32G3 GMAC0无法识别自定义PHY的分步指南: 1. 验证设备树配置
2. 检查PHY兼容性
3. 调试MDIO总线通信
4. 修改GMAC驱动
5. 检查硬件信号
6. 更新或适配驱动
7. 关键日志分析
总结步骤:
若上述步骤仍无法解决,建议在设备树中明确指定PHY地址并捕获MDIO总线通信,对比正常与异常情况下的波形差异。 |
|
|
|
|
只有小组成员才能发言,加入小组>>
2139个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
37402 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
6797 浏览 1 评论
7821 浏览 1 评论
7665 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
5089 浏览 0 评论
1579浏览 2评论
关于NINA-W132 Wi-Fi模块SPI通信遇到的疑问求解
1222浏览 2评论
如何在MPC PowerPC MCU上首次刷写后禁用BDM?
766浏览 1评论
将HFREFR和LFREFR寄存器值设置为错误的值来将故障注入CMU,但CMU_ISR值始终为零,为什么?
756浏览 1评论
将SPSDK for FRDM-MCX-W71 SDK与VS一起安装时出现hidapi构建错误怎么解决?
697浏览 1评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-11 00:59 , Processed in 0.495900 second(s), Total 43, Slave 36 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
535