Skip to content

TEI0022 Build Linux & the Devicetree

jdannynewman edited this page Sep 24, 2020 · 7 revisions

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 4.19 branch

     $ git checkout altera_4.19 
    
  5. Set the defconfig

     $ make socfpga_tei0022_arrow_ghrd_defconfig  
    
  6. Build the kernel

     $ make zImage  
    
  7. Build the device tree blob

     $ make socfpga_cyclone5_tei0022_arrow_ghrd.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 4.14 branch

     $ git checkout altera_4.14  
    
  5. Set the defconfig

     $ make socfpga_tei0022_ghrd_defconfig  
    
  6. Build the kernel

     $ make zImage  
    
  7. Build the device tree blob

     $ make socfpga_cyclone5_tei0022_ghrd.dtb  
    



Next - Build uboot
Back to Create Top Level
Back to Build the GHRD

Clone this wiki locally