sama5d3 xplained 系统加载后确认使用的网口
【補充方案】
在開發板上明確標識出了 ETH1及 ETH0/GETH標識號
通過ifconfig發現只有eth0及lo兩個網絡接口,即可確定網線該插入eth0口。
【原來解決方案】
官方使用的文件系統是 Poky 1.5.1
1. 進入文件系統后檢查網絡配置情況,發現IP地址沒有配置
root@sama5d3_xplained:~# ifconfig eth0
eth0????? Link encap:Ethernet? HWaddr 06:b7:e8:f8:58:a1
????????? UP BROADCAST MULTICAST? MTU:1500? Metric:1
????????? RX packets:0 errors:0 dropped:0 overruns:0 frame:0
????????? TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
????????? collisions:0 txqueuelen:1000
????????? RX bytes:0 (0.0 B)? TX bytes:0 (0.0 B)
????????? Interrupt:26 Base address:0x8000
2. 將IP地址配置成一個網段
root@sama5d3_xplained:~# ifconfig eth0 192.168.1.81
root@sama5d3_xplained:~# ifconfig
eth0????? Link encap:Ethernet? HWaddr 06:b7:e8:f8:58:a1
????????? inet addr:192.168.1.81? Bcast:192.168.1.255? Mask:255.255.255.0
????????? UP BROADCAST MULTICAST? MTU:1500? Metric:1
????????? RX packets:0 errors:0 dropped:0 overruns:0 frame:0
????????? TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
????????? collisions:0 txqueuelen:1000
????????? RX bytes:0 (0.0 B)? TX bytes:0 (0.0 B)
????????? Interrupt:26 Base address:0x8000
lo??????? Link encap:Local Loopback
????????? inet addr:127.0.0.1? Mask:255.0.0.0
????????? inet6 addr: ::1/128 Scope:Host
????????? UP LOOPBACK RUNNING? MTU:65536? Metric:1
????????? RX packets:0 errors:0 dropped:0 overruns:0 frame:0
????????? TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
????????? collisions:0 txqueuelen:0
????????? RX bytes:0 (0.0 B)? TX bytes:0 (0.0 B)
3. ping一下宿主機,PING不通
root@sama5d3_xplained:~# ping 192.168.1.25
PING 192.168.1.25 (192.168.1.25) 56(84) bytes of data.
From 192.168.1.81 icmp_seq=1 Destination Host Unreachable
From 192.168.1.81 icmp_seq=2 Destination Host Unreachable
From 192.168.1.81 icmp_seq=3 Destination Host Unreachable
From 192.168.1.81 icmp_seq=4 Destination Host Unreachable
From 192.168.1.81 icmp_seq=5 Destination Host Unreachable
From 192.168.1.81 icmp_seq=6 Destination Host Unreachable
4. 診斷當前的eth0是哪一個網口(支持到1000baseT,即千兆網口)
root@sama5d3_xplained:~# ethtool eth0
Settings for eth0:
??????? Supported ports: [ TP MII ]
??????? Supported link modes:?? 10baseT/Half 10baseT/Full
??????????????????????????????? 100baseT/Half 100baseT/Full
??????????????????????????????? 1000baseT/Half 1000baseT/Full
??????? Supported pause frame use: No
??????? Supports auto-negotiation: Yes
??????? Advertised link modes:? 10baseT/Half 10baseT/Full
??????????????????????????????? 100baseT/Half 100baseT/Full
??????????????????????????????? 1000baseT/Half 1000baseT/Full
??????? Advertised pause frame use: No
??????? Advertised auto-negotiation: Yes
??????? Speed: 10Mb/s
??????? Duplex: Half
??????? Port: MII
??????? PHYAD: 7
??????? Transceiver: external
??????? Auto-negotiation: on
??????? Link detected: no
5. 將網線插到千兆網口后,重新ping宿主機,Ok.
轉載于:https://www.cnblogs.com/aqing1987/p/4290308.html
總結
以上是生活随笔為你收集整理的sama5d3 xplained 系统加载后确认使用的网口的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Sqlserver循环嵌套
- 下一篇: 代码练习 用户注册登陆与密码加密