Parallella Image scripts
TODO
- TEST
- ??? Add bitstream scripts to flow
Requirements
The scripts require qemu-arm-static and binfmt being set up properly.
sudo apt-get update
sudo apt-get install qemu binfmt-support qemu binfmt-support qemu-user-static
sudo apt-get install flex bison zerofree u-boot-tools
Flow
- Build bitstreams and place in fpga_bitfiles/
Optional
export PARALLELLA_LINUX=/path/to/parallella-linux
- Build ESDK
- Build COPRTHR (if new release) and place in
overlays/
. Steps described below.
Now do
./bootfs-and-kernel.sh
sudo ./rootfs.sh path/to/esdk-tarball.tar.gz
sudo ./image.sh out/parallella_e16_headless_gpiose_7010_bootfs.tar.gz parallella_e16_headless_gpiose_7010.img
sudo ./image.sh out/parallella_e16_headless_gpiose_7020_bootfs.tar.gz parallella_e16_headless_gpiose_7020.img
Building coprthr
This step needs to be done on a Parallella board.
TODO: Currently broken. Needs missing (deprecated) libelf
git clone https://github.com/parallella/coprthr --branch esdk-2019.1
cd coprthr
./configure --enable-epiphany
make
sudo make install
Copy these files/directories to overlay
- /etc/ocl.conf
- /etc/OpenCL/
- /var/clproc (permission 1777)
- /usr/local/browndeer
ESDK
TODO: Not released yet. Need to build from git
wget https://github.com/adapteva/epiphany-sdk/releases/download/esdk-2019.1/esdk.2019.1.armv7l.tar.gz -O esdk.2019.1.tar.gz
*.tar.gz file name muse be the same as the folder name inside *.tar.gz.
Cross Compiler Toolchain
TODO: Remove section / Old version. We use arm-linux-gnueabihf-gcc 7.3 that comes with Ubuntu 18.04
Set PATH for Toolchain:
export PATH=[**THE TOOLCHAIN PATH ON YOUR PC**]gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf/bin:$PATH
GCC 7 works for generating kernel uImage, but it doesn't work for building tools/perf. Why we need tools/perf??