Connecting the board to network via ethernet, Ensuring ip address acquisition, Connecting the board to network via ethernet -9 – Altera SDK for OpenCL Cyclone V SoC User Manual

Page 18

Advertising
background image

The

init_opencl.sh

file is available in the SD card image that you write onto the micro SD flash card. It

contains the commands shown below:

export ALTERAOCLSDKROOT=<aocl_destination_directory>
export AOCL_BOARD_PACKAGE_ROOT=$ALTERAOCLSDKROOT/board/c5soc
export PATH=$ALTERAOCLSDKROOT/bin:$PATH
export LD_LIBRARY_PATH=$ALTERAOCLSDKROOT/host/arm32/lib:$LD_LIBRARY_PATH
insmod $AOCL_BOARD_PACKAGE_ROOT/driver/aclsoc_drv.ko

Connecting the Board to Network via Ethernet

Connecting the Cyclone V SoC Development Kit to the host network allows you to transfer files to and

from your SoC.
1. Connect the hard processor system (HPS) Ethernet port of the board to your network.

2. Reboot the board.

The boards acquires an IP address, allowing you to initiate a Secure Shell (SSH) connection and runs a

Secure Copy (SCP) program to login and transfer files.

Alternatively, you can mount a network drive to your board and access the files directly.

Ensuring IP Address Acquisition

After you connect the hard processor system (HPS) Ethernet port on the Cyclone V SoC Development Kit

to your network and reboot the board, ensure that the board acquires an IP address successfully.

Before you begin

After you connect the HPS Ethernet port to your network and power up your board, you should see a

solid orange light and a blinking green light. If not, check the connection of the Ethernet cable to the

Ethernet port on your network.
1. To check if your board has an IP address, search for the IP address in boot messages such as the one

shown below:

Sending discover...
libphy: stmmac-0:04 - Link is Up - 1000/Full
Sending discover...
Sending select for 137.57.175.148...
Lease of 137.57.175.148 obtained, lease time 86400
/etc/udhcpc.d/50default: Adding DNS 137.57.142.218
/etc/udhcpc.d/50default: Adding DNS 137.57.109.10
/etc/udhcpc.d/50default: Adding DNS 137.57.64.1
done.

The message

Lease of <board_IP_address> obtained, lease time 86400

identifies the IP address of the board.

2. If you receive the following output, perform a warm reboot of the board by pressing the WARM

button next to the LED lights.

Sending discover...
libphy: stmmac-0:04 - Link is Up - 1000/Full
Sending discover...
Sending discover...
No lease, failing

The board uses the dynamic host configuration protocol (DHCP) to acquire an IP address. If the

session times out waiting for an IP assignment, reboot the CPU to restart the IP acquisition process.

OCL006-15.0.0

2015.05.04

Connecting the Board to Network via Ethernet

2-9

Setting Up the Altera SDK for OpenCL, SoC EDS, and the Cyclone V SoC Development Kit for Windows

Altera Corporation

Send Feedback

Advertising