==== Epiphany gdb tutorial ====
* add to the end of ~/.bashrc
#FPGA environment
export QSYS_ROOTDIR="/home/tdwebste/intelFPGA_lite/16.1/quartus/sopc_builder/bin"
source ~/.setup_epiphany_rc
source ~/setenv.sh
* cat ~/setenv.sh
export XILINX_VER=2016.4
#export XILINX_VER=2015.1
#export XILINX_VER=2014.3.1
source /opt/Xilinx/Vivado/${XILINX_VER}/settings64.sh
export PATH=$PATH:/opt/Xilinx/Vivado/${XILINX_VER}/bin
* ln -s ~/src/epiphany-sdk/sdk/setup.sh ~/.setup_epiphany_rc
* cat ~/.setup_epiphany_rc
#!/bin/sh -f
# Copyright (c) 2010, All Right Reserved, Adapteva, Inc.
# This source is subject to the Adapteva Software License.
# You should have received a copy of the full license file
# named ("LICENSE") along with this program. If not, contact
# Adapteva immediately at support@adapteva.com
case $(uname -m) in
x86_64)
_esdk_arch=".x86_64"
;;
arm*)
_esdk_arch=".armv7l"
;;
*)
_esdk_arch=""
;;
esac
export EPIPHANY_HOME=/opt/adapteva/esdk
if [ -z "$EPIPHANY_HOME" ]; then
echo "Please set the EPIPHANY_HOME to the root folder of the SDK release!"
else
PATH=${EPIPHANY_HOME}/tools/a-gnu/bin:${PATH}
PATH=${EPIPHANY_HOME}/tools/e-gnu${_esdk_arch}/bin:${PATH}
PATH=${EPIPHANY_HOME}/tools/host${_esdk_arch}/bin:${PATH}
LD_LIBRARY_PATH=${EPIPHANY_HOME}/tools/host${_esdk_arch}/lib:${LD_LIBRARY_PATH}
LD_LIBRARY_PATH=${EPIPHANY_HOME}/tools/e-gnu${_esdk_arch}/lib:${LD_LIBRARY_PATH}
EPIPHANY_HDF=${EPIPHANY_HOME}/bsps/current/platform.hdf
MANPATH=${EPIPHANY_HOME}/tools/e-gnu/share/man:${MANPATH}
MANPATH=${EPIPHANY_HOME}/tools/e-gnu${_esdk_arch}/share/man:${MANPATH}
export PATH
export LD_LIBRARY_PATH
export EPIPHANY_HOME
export EPIPHANY_HDF
export MANPATH
fi
unset _esdk_arch
* Total lacks READMEs so you have no idea how to build this stuff.
* git clone https://github.com/adapteva/epiphany-sdk.git sdk
* check the git version
* for dir in $(find . -type d -name '.git' | sed 's#\/\.git$##'); do (cd $dir; pwd; git branch); done
* cd sdk
* bash download-components.sh - -clone
* wget ftp://ftp.parallella.org/esdk/beta/esdk.master.armv7l-snapshot-20161101.tar.gz
* wget ftp://ftp.parallella.org/esdk/beta/esdk.master.x86_64-snapshot-20161101.tar.gz
* mkdir /opt/adapteva; cd /opt/adapteva
* ln -s esdk.master esdk
* source ./setup.sh
* it may be necessary to install guile
* bash build-toolchain.sh --clean --clean-host --clean-build
* bash build-pal.sh
* bash build-epiphany-libs.sh
* It is not necessary and it is not possible to build-epiphany-sdk.sh Please use the prebuild sdk previously downloaded.