min 发表于 2020-10-15 17:22:37

怎样LS1046A把mac9修改为万兆光口

我们自己做的底板,参照你们的开发板做了个万兆光口,但是硬件设计上是使用了你们原来的mac9(J5)万兆电口的引脚的。
如果直接使用1040_5599的配置网口是无法使用的,请问我的设备树和uboot的eth.c应该怎样修改?

min 发表于 2020-10-16 10:10:23

我直接修改设备树,

        ethernet@f0000 { /* 10GEC1 */
-                //phy-handle = <&aqr105_phy>;
+                fixed-link = <0 1 1000 0 0>;
                phy-connection-type = "xgmii";
        };

/* - 禁用万兆mdio*/
//        mdio@fd000 {
//                aqr105_phy: ethernet-phy@0 {
//                        compatible = "ethernet-phy-ieee802.3-c45";
//                        reg = <0x0>;
//                };
//        };


更新到设备上后,fm1-mac9可以up起来,但是数据包发不出去,ping显示Destination Host Unreachable。

ethtool 显示如下内容:

root@localhost:~# ethtool fm1-mac9
Settings for fm1-mac9:
      Supported ports: [ ]
      Supported link modes:   Not reported
      Supported pause frame use: Symmetric Receive-only
      Supports auto-negotiation: No
      Supported FEC modes: Not reported
      Advertised link modes:Not reported
      Advertised pause frame use: Symmetric Receive-only
      Advertised auto-negotiation: No
      Advertised FEC modes: Not reported
      Speed: 10Mb/s
      Duplex: Half
      Port: MII
      PHYAD: 0
      Transceiver: internal
      Auto-negotiation: on
      Supports Wake-on: d
      Wake-on: d
      Current message level: 0xffffffff (-1)
                               drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol 0xffff8000
      Link detected: yes

哪里修改不对吗?还是漏了哪个地方没有修改?
页: [1]
查看完整版本: 怎样LS1046A把mac9修改为万兆光口