Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
resources:tools-software:linux-build:generic:nios2 [01 Feb 2018 15:46] – remove dangling `a` char Alexandru Ardeleanresources:tools-software:linux-build:generic:nios2 [02 Feb 2018 10:43] – document script method for building the Nios 2 kernel Alexandru Ardelean
Line 1: Line 1:
 +===== Build Linux - Script method =====
 +
 +We provide [[https://raw.githubusercontent.com/analogdevicesinc/wiki-scripts/master/linux/build_nios2_kernel_image.sh|a script that does automates]] the build for Nios 2.
 +
 +The script takes 4 parameters:
 +  - **<path_to_nios2_toolchain>** - this is mandatory, since already built Nios 2 toolchains are not very common ; point this to the **nios2eds** directory [e.g. **/home/<user>/intelFPGA/<version>/nios2eds/bin/gnu/H-x86_64-pc-linux-gnu/bin/nios2-elf-** ]
 +  - **<local_kernel_dir>** - default is **linux-adi** if left blank ; use this, if you want to use an already cloned kernel repo
 +  - **<altera_branch>** - default is **altera_4.9** if left blank
 +  - **<devicetree_file>** - which device tree should be used for build; default is ''a10gx_adrv9371.dts''
 +
 +The script will:
 +   - clone the ADI kernel tree
 +   - download the Linaro GCC toolchain [if no other is specified]
 +   - build the ADI kernel tree
 +   - export/copy the Image file and device tree file out of the kernel build folder
 +
 +==== Running the script in one line ====
 +<code>
 +wget https://raw.githubusercontent.com/analogdevicesinc/wiki-scripts/master/linux/build_nios2_kernel_image.sh && chmod +x build_nios2_kernel_image.sh && ./build_nios2_kernel_image.sh /home/<user>/intelFPGA/<version>/nios2eds/bin/gnu/H-x86_64-pc-linux-gnu/bin/nios2-elf-
 +</code>
 +
 ===== Build Linux - Step by Step Instructions ===== ===== Build Linux - Step by Step Instructions =====
  
resources/tools-software/linux-build/generic/nios2.txt · Last modified: 15 Nov 2022 10:46 by Stefan-Robert Raus