Skip to content

AD FMCDAQ2 Platform Build Linux & the Devicetree

skravats edited this page Mar 1, 2020 · 17 revisions

NOTE: Please observe which version of the iWave™ Carrier Card you have by clicking here.

Table of Contents

  1. Build with provided Virtual Machine
  2. Build with user Linux Host

Build with provided Virtual Machine

  1. Source the environment

     $ source ~/gcc-linaro/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi/env.sh  
    
  2. Clone the git repo

     $ git clone https://github.com/ArrowElectronics/linux.git 
    
  3. Change into the new repo

     $ cd linux  
    
  4. Check out the Altera iwg24d branch

     $ git checkout altera_iwg24d  
    
  5. Set the defconfig

     $ make socfpga_adi_defconfig  
    
  6. Build the kernel

     $ make zImage  
    
  7. Build the device tree blob

  • do the following to update the files in the working tree for the Legacy 1.1 or 2.0 carrier ...

    $ make socfpga_arria10_iwg24d_daq2.dtb 
    
  • or do the following to update the files in the working tree for the Custom 2.0 carrier ...

    $ make socfpga_arria10_iwg24d_daq2_cc.dtb 
    

Build with user Linux Host

a - Setting up the tool chain

  1. Download the Linaro toolchain

  2. Create a directory where the toolchain will be extracted

     $ mkdir ~/gcc-linaro  
    
  3. Change into the new directory

     $ cd ~/gcc-linaro  
    
  4. Extract the toolchain

     $ tar xzf ~/Downloads/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi.tar.xz  
    
  5. Create a simple script in your favorite text editor to setup the build in environment.
    Call it env.sh in ~/gcc-linaro/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi



b - Building the Kernel and Device Tree

  1. Source the environment

     $ source ~/gcc-linaro/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi/env.sh  
    
  2. Clone the git repo

     $ git clone https://github.com/ArrowElectronics/linux.git 
    
  3. Change into the new repo

     $ cd linux  
    
  4. Check out the Altera iwg24d branch

     $ git checkout altera_iwg24d   
    
  5. Set the defconfig

     $ make socfpga_adi_defconfig  
    
  6. Build the kernel

     $ make zImage  
    
  7. Build the device tree blob

  • do the following to update the files in the working tree for the Legacy 1.1 or 2.0 carrier ...

    $ make socfpga_arria10_iwg24d_daq2.dtb 
    
  • or do the following to update the files in the working tree for the Custom 2.0 carrier ...

    $ make socfpga_arria10_iwg24d_daq2_cc.dtb 
    



Next - Build uboot

Return to Build the Example Design
Return to AD-FMCDAQ2 Platform User Guide

Clone this wiki locally