Setting up toolchain

Go to link below, select Altera Nios II Processor GNU/Linux release, download and install Sourcery CodeBench Lite , you may need to refer to Sourcery CodeBenchGettingStartedGuide. There are two type of toolchains, generic syscall ABI compatible toolchain and non-generic syscall ABI compatible toolchain and each only work for the targeted kernel (generic or non-generic syscall ABI compatible kernel). These two toolchains are not binary compatible, this means you need to recompile all the source files if you switching toolchain between them (e.g: kernel, bootloader, rootfs, applications and etc)

v2013.05-43 version is worked with non-generic syscall ABI compatible kernel, v2014.05.47 or above is worked with generic syscall ABI campatible kernel.

For the toolchain configuration, please make sure to add the complete path to the toolchain in the buildroot configuration. Optionally, you can pass this as a variable during make. The parameter is BR2_TOOLCHAIN_EXTERNAL_PATH. This should be set to the fully qualified path to the toolchain install, and not the bin directory.

To build:

You need to be connected to the network before make as the script must download and install packages.