Setting Up A Build Environment¶
This section outlines the required configuration for developing embedded ARM linux applications and the Cyclone V FPGA bitstreams for the MitySOM-5CSX Embedded Vision Developer's Kit supporting the Basler BCON dart camera family.
Developing ARM application software¶
The target platform filesystem provided with the development kit includes a copy of the compiler and developer libraries / headers to support compiling ARM applications right on the target. Details about compiling on the target can be found here. This works well for simple examples and validating the target toolchain is operational. For more advanced development, however, Critical Link recommends setting up a Host PC that supports cross-compiling the applications software (as well as any element of the kernel or target linux filesystem). Details for setting up the host PC follows.
PC / Host OS Requirements¶
For the Host PC, Critical Link recommends installation of a 64 bit linux distribution on a PC (or Virtual Machine, such as the Oracle VirtualBox VM). Critical Link has tested the board support package cross-tool installations with Ubuntu 14.04, 16.04, and Linux Mint 18.
Required Software¶
The following ubuntu packages should be installed to support building ARM applications:
You can install these packages by running:
In addition to the standard packages, you will also need to install the yocto based cross-compiler, libraries, and header files for the target board support package. These are distributed as a self-extracting archive and may be downloaded on the files tab of this project site.
Installing and compiling example application software¶
The demonstration application software (demo_app) source code is available via compressed tarball on the files tab of this project site. Download the software and install it on your host Linux PC.
Developing FPGA application software¶
PC / Host OS Requirements¶
Required Software¶
- intelFPGA Quartus Prime Standard Edition 17.0
- NOTE: Due to the the us of intelFPGA's Video and Image Processing Suite a licensed version of the Quartus Prime software is required
Installing and compiling example application bitstreams¶
- Open Quartus Prime 17.0
- Open the project in quartus File->Open Project and then navigate to and open
- Single Camera Example: vdk_single.qpf*
- Now we will need to open Qsys in order to generate all the connecting logic between our function blocks Tools->Qsys
- When Qsys opens it will prompt you to select a .qsys file for it open, pick vdk_single.qsys that is available in the project folder
- Once Qsys finishes opening the project, click Generate HDL in the bottom right and corner
- Change Create HDL design files for synthesis to VHDL
- Click Generate
- Close Qsys when its done
- In Quartus make sure Flow in the Tasks window is set to Compilation
- Now start the compilation Processing->Start Compilation
- When finished there will be a .sof file in build/output_files. This file can be used to program the FPGA using a USB Blaster.
- In the intelFPGA's embedded shell change into the the vdk_single project directory
- Run the following to create the raw binary format FPGA image that uboot can use to program the FPGA on startup
./make_rbf.sh
- The build is now complete and replace the vdk_single.rbf in the /boot directory of the SD card for the dev kit with the one generated with quartus. Note: it's recommended to just rename the vdk_single.rbf that comes with the SD card so it can always be switched back to
Go to top