If a valid connection between the AM6 and your network is made before boot-up then the AM6 will automatically secure a connection and assign you an ip address.
Three gigabit Ethernet links are provided via ETH0 (RJ45 at X29), ETH1 (RJ45 at X30), and ETH2 (RJ45 at X31) on the phyCORE-AM65x development kit. This guide shows you how to connect and use these interfaces manually.
Items needed to follow this guide:
- CAT5e Ethernet cable (included with your development kit)
- Ethernet switch connected to a network with DHCP enabled
Connect the Ethernet cable between ETH0 (X29) on the development kit and an Ethernet switch connected to the network. (X30 for ETH1 and X31 for ETH2)
Make sure the network you have connected to has DHCP enabled.
Needs ETH1 and ETH2 called out
Network Connection Block Diagram
On the phyCORE-AM65x Linux console, enter the following command to bring up the Ethernet interface. (Replace ETH0 with ETH1 or ETH2 if you are connecting to one of the other Ethernet interfaces)
ifconfig eth0 up && udhcpc -i eth0CODE
- Wait until the link is ready and an IP address has been assigned.
Test your connection by entering the following and verify that you are able to send and receive packets over your network connection:
root@am65xx-phycore-kit:~# ping google.com PING www.google.com (188.8.131.52): 56 data bytes 64 bytes from 184.108.40.206: seq=0 ttl=53 time=12.979 ms 64 bytes from 220.127.116.11: seq=1 ttl=53 time=17.327 ms 64 bytes from 18.104.22.168: seq=2 ttl=53 time=13.238 ms 64 bytes from 22.214.171.124: seq=3 ttl=53 time=14.636 msCODE
- To stop the pinging test, enter Ctrl + C on the command prompt.