Configuring the sw3 switches, Configuring the sw3 switches -7 – Altera SDK for OpenCL Cyclone V SoC User Manual
Page 30

5.
Connecting the Board to Network via Ethernet
on page 3-9
Connecting the Cyclone V SoC Development Kit to the host network allows you to transfer files to and
from your SoC.
Writing an SD Card Image onto the Micro SD Flash Card on Linux
The Altera SDK for OpenCL (AOCL) includes a Cyclone V SoC Development Kit Reference Platform. To
write an SD card image onto the micro SD flash card on Linux, extract the SD card image from the
Cyclone V SoC Development Kit Reference Platform, and then write the image onto the micro SD flash
card. The SD card image contains everything you need to start using OpenCL on the board.
Before you begin
The SD card image
linux_sd_card_image.tgz
is available in the Cyclone V SoC Development Kit Reference
Platform. Ensure that the environment variable AOCL_BOARD_PACKAGE_ROOT points to the location
of the
board_env.xml
file in the Reference Platform.
You must have sudo or root privileges.
1. To decompress the
$ALTERAOCLSDKROOT/board/c5soc/linux_sd_card_image.tgz
file, run the
tar xvfz
linux_sd_card_image.tgz
command.
2. Insert the micro SD flash card into a card reader, and connect the reader to your PC.
a. If the flash card already contains an image, partitions will exist automatically in the micro SD card.
Unmount or eject all these partitions.
3. Run the
dmesg | tail
command to verify the device name of the flash card (for example, /dev/
sde).
4. Write the SD card image onto the micro SD flash card by running the following commands:
sudo dd if=linux_sd_card_image of=/dev/sde bs=1M
sync
Attention: If the device name of your micro SD flash card is not /dev/sde, replace /dev/sde in the
above command with the device name you obtain from Step 3.
Warning:
Specifying the wrong device name might cause the SD card image to overwrite all existing
data.
5. After you write the image onto the micro SD flash card, insert the card into the micro SD card slot on
the Cyclone V SoC Development Kit.
Related Information
Configuring the SW3 Switches
Configure the SW3 dual in-line package (DIP) switches on the Cyclone V SoC Development Kit. The
switch bank is located next to the SD card slot.
1. Set the SW3 DIP switches to the following positions:
Switch
Configuration
1
ON
2
OFF
OCL006-15.0.0
2015.05.04
Writing an SD Card Image onto the Micro SD Flash Card on Linux
3-7
Setting Up the Altera SDK for OpenCL, SoC EDS, and the Cyclone V SoC Development Kit for Linux
Altera Corporation