Project

General

Profile

Example 10 100mb Ethernet

Objective

The goal of this wiki page is to describe what needs to be done to use the 10/100mb Ethernet Ports. The default configuration makes use of DHCP. Information on how to set a Static address is also provided.

Background

The pre-built image and device tree has the needed files and entries to enable the 10/100mb Ethernet Ports.

The following files need to be present:

/lib/firmware/ti-pruss/am57xx-pru0-prueth-fw.elf
/lib/firmware/ti-pruss/am57xx-pru1-prueth-fw.elf

In the device tree, the entries in am57xx-mitysom-baseboard.dtsi related to "pruss2" need to be present.

Prerequisites

  • An ethernet cable, a switch.

Steps if a DHCP Server is present

  • If the network you are connecting to does not have a DHCP server, proceed to the next section for a Static IP address
  • Have the Development kit powered up and have a terminal emulator attached to the USB-uart serial port.
  • Plug the ethernet cable into one of the two ethernet ports for 10/100Mb ethernet. Either of the top or bottom links should be fine. The top port is for eth2 and the bottom is for eth3

  • Verify that an IP address has been assigned.
root@mitysom-am57x:~# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether f8:33:31:76:76:74 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fa33:31ff:fe76:7674/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether f8:33:31:76:76:75 brd ff:ff:ff:ff:ff:ff
4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
5: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 3a:e5:f6:61:b5:8d brd ff:ff:ff:ff:ff:ff
    inet6 fe80::38e5:f6ff:fe61:b58d/64 scope link
       valid_lft forever preferred_lft forever
6: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 76:d1:da:b2:b2:a2 brd ff:ff:ff:ff:ff:ff
    inet 10.0.102.244/16 brd 10.0.255.255 scope global dynamic eth3
       valid_lft 5362sec preferred_lft 5362sec
    inet6 fe80::74d1:daff:feb2:b2a2/64 scope link
       valid_lft forever preferred_lft forever
root@mitysom-am57x:~#
  • Note the inet line for item number 6, eth3. The assigned ethernet address is 10.0.102.244. For this example, the bottom link was used. Using the top link would result in eth2 getting an address.
  • Verify that the link is working.
    • If connected to the internet, use ping to contact the ethernet address 8.8.8.8. (google DNS server)
root@mitysom-am57x:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=119 time=16.451 ms
64 bytes from 8.8.8.8: seq=1 ttl=119 time=16.004 ms
64 bytes from 8.8.8.8: seq=2 ttl=119 time=15.926 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 15.926/16.127/16.451 ms
root@mitysom-am57x:~#
  • If not connected to the internet, use ping to contact one of your internal ethernet addresses. Please note that some Windows PCs are not configured to respond to ping requests by default as a security measure. (e.g. Windows 10 and 11)

Steps using a Static IP address

  • Follow the steps described in N_Setting Static IP Address except use eth2 or eth3 instead of eth0
  • Use ping as described in the DHCP section.
  • You will probably need to make sure the gateway is configured to ping something external to your local network.

Conclusion

In this example you have verified that the 10/100 Mb ethernet ports are working by letting DHCP assign an IP address or by assigning your own static IP address and then using ping to communicate with another system.

Go to top
Add picture from clipboard (Maximum size: 1 GB)