![MYiR MYD-AM335X Development Manual Download Page 44](http://html.mh-extra.com/html/myir/myd-am335x/myd-am335x_development-manual_1862478044.webp)
4.6 Ethernet
This example demonstrates how to use Linux APIs to send and receive data from
Network port, please refer to the source code for detail.
Hardware Preparation:
Hardware debugging environment to see chapter second.
Board Type
MYD-AM335X
MYD-AM335X-Y
MYD-AM335X-J
Network port
interface
Cable
connection J5
Cable
connection J5
Cable
connection J5
Software Preparation:
Linux Kernel 4.1.18
server application
client applicatoin
Test Steps:
Copy cross compiled
<WORKDIR>/Examples/network/client
to
/usr/bin
directory of
the MYD-AM335x series development board,Copy cross compiled
<WORKDIR>/Examples/network/server
to ubuntu 12.04.Assume that the ubuntu12.04
ip is 192.168.30.114.
Configure the development board ip
:
ifconfig eth0 192.168.30.122 up
Configure the network, the development board eth0 connected to the PC with a
network cable,to the virtual machine as the server, the development board for the
client, first in the virtual machine to execute the following command:
$./server
192.168.30.122
And then in the development board to execute the following command to see the
information sent:
44