TEI0022 Build Linux & the Devicetree - ArrowElectronics/data-storm-daq GitHub Wiki
-
Source the environment
$ source ~/gcc-linaro/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi/env.sh -
Clone the git repo
$ git clone https://github.com/ArrowElectronics/linux.git -
Change into the new repo
$ cd linux -
Check out the Altera 4.19 branch
$ git checkout altera_4.19 -
Set the defconfig
$ make socfpga_tei0022_arrow_ghrd_defconfig -
Build the kernel
$ make zImage -
Build the device tree blob
$ make socfpga_cyclone5_tei0022_arrow_ghrd.dtb
-
Download the Linaro toolchain
-
Create a directory where the toolchain will be extracted
$ mkdir ~/gcc-linaro -
Change into the new directory
$ cd ~/gcc-linaro -
Extract the toolchain
$ tar xzf ~/Downloads/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi.tar.xz -
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
-
Source the environment
$ source ~/gcc-linaro/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabi/env.sh -
Clone the git repo
$ git clone https://github.com/ArrowElectronics/linux.git -
Change into the new repo
$ cd linux -
Check out the Altera 4.14 branch
$ git checkout altera_4.14 -
Set the defconfig
$ make socfpga_tei0022_ghrd_defconfig -
Build the kernel
$ make zImage -
Build the device tree blob
$ make socfpga_cyclone5_tei0022_ghrd.dtb
Next - Build uboot
Back to Create Top Level
Back to Build the GHRD
