Project

General

Profile

Building the SD Card

1. Prerequisites 2. Building the FPGA Image 3. Building the Bootloader 4. Building the Filesystem 5. Building the SD Card


Introduction

Building the SD Card from the Quartus Project Makefile

Prerequisites

  • Linux (tested on Ubuntu 18.04)
  • libguestfs-tools insteall
    sudo apt-get install libguestfs-tools
    
  • vmlinux set a readable (note: this needs to be done every time the kernel is upgraded)
    sudo chmod a+r /boot/vmlinuz*
    

Steps

  1. Copy the filesystem tarball built from yocto (mitysom-image-base-mitysom-a10s.tar.gz) to the software folder in the reference FPGA project
  2. Enter the following command that will allow you to use the Quartus tools from the command line:
    /opt/intelFPGA_pro/18.1/embedded/embedded_command_shell.sh
  3. Run the following command to build the SD card image
    make sd_image
    

Outputs

Description Location
SD Card Binary <Quartus Project Folder>/sd_card.img

ADVANCED: Updating Individual Parts

Updating U-Boot

To update U-Boot you will need a Linux machine with an SD card reader. Please note the X in the following example of /dev/sdX is a placeholder, you will need to find out what your machine enumerates your sd card as and replace the X with it.

  1. Plug in the SD Card reader
  2. Make sure it isn't mounted
    sudo umount /dev/sdX
    
  3. Write the new u-boot over the old
    dd if=uboot_w_dtb-mkpimage.bin of=/dev/sdX2 bs=64k
    

Updating U-Boot Environment

To update U-Boot you will need a Linux machine with an SD card reader. Please note the X in the following example of /dev/sdX is a placeholder, you will need to find out what your machine enumerates your sd card as and replace the X with it.

  1. Plug in the SD Card reader
  2. Make sure it isn't mounted
    sudo umount /dev/sdX
    
  3. Write the new u-boot environment over the old
    dd if=ubootenv.bin of=/dev/sdX bs=512 seek=1
    

Updating the FPGA image

Copy the core and peripheral RBF to the 1st partition, which is formatted as FAT. Please note they need to have the same name as the originals for u-boot to find them.

1. Prerequisites 2. Building the FPGA Image 3. Building the Bootloader 4. Building the Filesystem 5. Building the SD Card

Go to top
Add picture from clipboard (Maximum size: 600 MB)