嵌入式爱好者

查看: 12048|回复: 1

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

[复制链接]

2

主题

6

帖子

14

积分

扫一扫,手机访问本帖
发表于 2020-10-15 17:22:37 | 显示全部楼层 |阅读模式
我们自己做的底板,参照你们的开发板做了个万兆光口,但是硬件设计上是使用了你们原来的mac9(J5)万兆电口的引脚的。
如果直接使用1040_5599的配置网口是无法使用的,请问我的设备树和uboot的eth.c应该怎样修改?
回复

使用道具 举报

2

主题

6

帖子

14

积分

 楼主| 发表于 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

哪里修改不对吗?还是漏了哪个地方没有修改?
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-27 05:01

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表