Altera RTE for OpenCL Manuel d'utilisateur Page 50

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 53
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 49
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.
To reboot the CPU, press the Warm reset button next to the four hard processor system (HPS) LEDs
on the board.
3. If you are unable to acquire the IP address, ensure that the Ethernet cable is in good working condition
and the Ethernet port on your network is enabled.
Mounting a Shared Drive
The most convenient way to share files between a development PC and the Cyclone V SoC development
board is to mount a network drive.
1. Check the /etc/fstab file systems table file on your development PC for the line that describes the
mounting of the drive you want to use on the board.
The following example /etc/fstab entry indicates that the /data folder on the my_nas server is mounted
to the /data folder on the development PC:
my_nas:/data /data nfs
exec,dev,suid,rw,tcp,hard,intr,vers=3,rsize=32768,wsize=32768,timeo=600,retrans=200
2. Add the /etc/fstab entry described above to the /etc/fstab file on the Cyclone V SoC development board.
3.
Run the sync command to save the /etc/fstab file to the SD flash card.
4. Create an empty folder on the board that serves as the mounting point for the network drive.
For example: type mkdir /data, where /data is the name of the folder.
5.
Invoke the busybox mount -a command.
If the mounting operation fails, rerun the command.
Using SSH and SCP
Instead of connecting the Cyclone V SoC Development Kit to the host system using UART over USB and
transferring files using a network drive, you can initiate a Secure Shell (SSH) connection and transfer files
using a Secure Copy (SCP) program.
1. To establish a connection between the Cyclone V SoC Development Kit and the host system via SSH,
invoke the ssh root@<board_ip_address> command from your development machine.
For instructions on how to identify <board_ip_address>, refer to the Ensuring IP Address Acquisition
section.
2.
To transfer files, one at a time, from the host system to the board via SCP, invoke the scp
<source_filename> root@<board_ip_address>:<target_filename> command
from your development machine.
Executing an OpenCL Kernel on an SoC
The procedures outlined in this document are for building and running the host application for the
hello_world example design. To execute the hello_world OpenCL kernel on your SoC, you must first
create an hello_world.aocx Altera Offline Compiler Executable file. For instructions on obtaining the
hello_world example design and creating the hello_world.aocx file, refer to the Creating the FPGA
Hardware Configuration File of an OpenCL Kernel section of the Altera SDK for OpenCL Cyclone V SoC
Getting Started Guide.
OCL005-15.0.0
2015.05.04
Mounting a Shared Drive
4-21
Getting Started with the Altera RTE for OpenCL for Altera ARMv7-A SoC
Altera Corporation
Send Feedback
Vue de la page 49
1 2 ... 45 46 47 48 49 50 51 52 53

Commentaires sur ces manuels

Pas de commentaire