1.修改设备树文件
&gem3
{
status = "okay";
phy-handle = <&phy3>;
phy3: ethernet-phy@12
{
compatible = "genericPhy";
reg = <12>;
rgmii-delay = <0x3>;
rx-internal-delay = <0x8>;
tx-internal-delay = <0xa>;
fifo-depth = <0x1>;
};
};
2.系统配置添加
INCLUDE_GENERICPHY
重新编译,载入镜像
-> ifconfig
lo0 Link type:Local loopback
inet 127.0.0.1 mask 255.255.255.255
inet6 unicast fe80::1%lo0 prefixlen 64 automatic
inet6 unicast ::1 prefixlen 128
UP RUNNING LOOPBACK MULTICAST NOARP ALLMULTI
MTU:1500 metric:1 VR:0 ifindex:1
RX packets:5 mcast:0 errors:0 dropped:0
TX packets:5 mcast:0 errors:0
collisions:0 unsupported proto:0
RX bytes:284 TX bytes:284
gem0 Link type:Ethernet HWaddr 00:0a:35:11:22:36
capabilities: TXCSUM VLAN_MTU
inet 192.168.1.6 mask 255.255.255.0 broadcast 192.168.1.255
inet6 unicast fe80::20a:35ff:fe11:2236%gem0 prefixlen 64 automatic
UP RUNNING SIMPLEX BROADCAST MULTICAST
MTU:1500 metric:1 VR:0 ifindex:2
RX packets:661 mcast:2 errors:0 dropped:249
TX packets:243 mcast:10 errors:0
collisions:0 unsupported proto:0
RX bytes:46381 (46 k) TX bytes:10992 (10 k)
value = 0 = 0x0
->
用笔记本ping 网络,可以ping通