Skip to content
Franz Steinbacher edited this page Feb 7, 2018 · 2 revisions

The Terasic DE1 SoC board with Altera SoC FPGA is not supported in mainline Linux. This project uses the Altera Linux branch from https://github.com/altera-opensource/linux-socfpga and adds a device tree for the board.

Cross Toolchain

Install cross toolchain. For Debian 9 this can be done this way:

# dpkg --add-architecture armhf
# apt-get update
# apt-get install crossbuild-essential-armhf device-tree-compiler u-boot-tools

Build

First get the source code:

$ git clone https://gitlab.fh-ooe.at/P27520/linux-de1-soc.git

Change to source code directory:

$ cd linux-de1-soc

Select branch:

$ git checkout -b de1-soc-4.9 origin/de1-soc-4.9

Set cross toolchain:

$ export ARCH=arm
$ export CROSS_COMPILE=arm-linux-gnueabihf-

Clean the source tree:

$ make distclean

Use Altera SoC FPGA default config:

$ make socfpga_defconfig

Set the version:

$ echo -de1soc > localversion
$ touch .scmversion

Build the kernel:

$ make -j 5 bindeb-pkg

Build the device tree:

$ make socfpga_cyclone5_platform_1.dtb
Clone this wiki locally