Building the GSRD - ArrowElectronics/data-storm-daq GitHub Wiki
Building the Software Reference Design requires a Linux host, either native running on a dedicated linux machine, or a Virtual Machine running as an emulator on a Windows PC (this guide uses VMware Workstation Player®).
Rebuilding the Golden System Reference Design (GSRD) User Manuals is accomplished by simply running 2 scripts:
- yocto-packages.sh - detects your host build system Linux distribution and installs a set of essential packages required by the Yocto Project 2.7
- yocto2.7-build - Yocto build script that allows you to build individual components or complete image for the Arrow SoCKit board (use --help to see available build options). The output of this script is a complete SD card image that can be copied to a micro SD card and used to boot the board.
Create a Yocto build directory:
$ cd ~
$ mkdir -p work/sockit && cd work/sockit
Install required packages:
$ wget https://raw.githubusercontent.com/arrow-socfpga/build-scripts/gsrd-19.1/yocto-packages.sh --no-check-certificate
$ chmod +x yocto-packages.sh
$ sudo ./yocto-packages.sh
Download and Run the Yocto Build Script:
$ wget https://raw.githubusercontent.com/arrow-socfpga/build-scripts/gsrd-19.1/yocto2.7-build --no-check-certificate
$ chmod +x yocto2.7-build
To see all available build options:
$ ./yocto2.7-build --help
To build the default minimal image for the Arrow SoCKit board:
$ ./yocto2.7-build -i minimal
To build a fully featured image for the Arrow SoCKit board:
$ ./yocto2.7-build -i console
If the build errors out, please rerun the build command.
Follow the instructions displayed in the terminal console after the build is complete to copy the generated image to your SD card.
The complete build will take approximately a few hours or longer depending on your host system specifications.
The Hardware Reference Design is provided as a starting point to demonstrate the hardware features and peripherals available on the board. It is likely that you will want to generate a custom hardware design or modify the provided reference design to accomplish your design goals. Refer to the Building a Custom Hardware Design, or Modifying the Reference Design on the Hardware page. Once your hardware design is complete, you will need to make some modifications to the DataStorm DAQ Yocto BSP layer to include the hardware components in the software system build.