Some of the reference designs from Trenz Electronics include a preconfigured Yocto BSP layer. This is a short description of how to use the BSP layer to create a Linux image with the Yocto project for the Board.
Prepare Yocto Project
The Yocto BSP layer will be generated with the quartus project in the <project name>/os/yocto/meta-<module> folder. The generated layers depends on the meta-altera layer (for more information see: Yocto KICKstart#Used source files).
Download a reference design that includes a Yocto BSP layer
Build the image with following command (the image recipes are located in meta-<module>/recipes-core/images/):
bitbake te-image-minimal
Copy .wic file to SD card
Yocto generates a .wic file which contains all needed files like u-boot, zImage and so on. This file is stored in path/to/yocto/poky/build/tmp/deploy/images/<machine>/<image_name>.wic. If you generate the linux yocto project yourself, using the .wic file is a very simple way to prepare the SD card for booting linux.
Do following steps to copy the .wic file to the SD card:
Insert the SD card into a SD card reader connected to the computer
Run following command to get the device name of the SD card (e.g. /dev/sdx):
lsblk
Copy the generated *.wic image to the SD card (replace 'sdx' in 'of=/dev/sdx' with the correct sd card device name: