Both sides previous revisionPrevious revision | |
resources:tools-software:linux-build:generic:nios2 [02 Feb 2018 10:43] – document script method for building the Nios 2 kernel Alexandru Ardelean | resources:tools-software:linux-build:generic:nios2 [15 Nov 2022 10:46] (current) – Stefan-Robert Raus |
---|
- **<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-** ] | - **<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 | - **<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 | - **<altera_branch>** - default is **master** if left blank |
- **<devicetree_file>** - which device tree should be used for build; default is ''a10gx_adrv9371.dts'' | - **<devicetree_file>** - which device tree should be used for build; default is ''a10gx_adrv9371.dts'' |
| |
Checking out files: 100% (49759/49759), done. | Checking out files: 100% (49759/49759), done. |
user@pc:~/nios2$ | user@pc:~/nios2$ |
</code></WRAP> | |
| |
==== Checkout Corresponding Branch ==== | |
| |
<WRAP box bgblue> | |
<code> | |
user@pc:~/nios2$ cd linux/ | |
user@pc:~/nios2/linux$ git checkout altera_4.9 | |
Branch altera_4.9 set up to track remote branch altera_4.9 from origin. | |
Switched to a new branch 'altera_4.9' | |
user@pc:~/nios2/linux$ | |
</code></WRAP> | </code></WRAP> |
| |
<WRAP box bgblue> | <WRAP box bgblue> |
<code> | <code> |
user@pc:~/nios2/linux$ wget http://wiki.analog.com/_media/resources/tools-software/linux-drivers/platforms/nios2/rootfs_nios2.cpio.gz -P arch/nios2/boot/rootfs.cpio.gz | user@pc:~/nios2/linux$ wget https://swdownloads.analog.com/cse/nios2/rootfs/rootfs.cpio.gz -P arch/nios2/boot/rootfs.cpio.gz |
--2015-07-21 09:30:19-- http://wiki.analog.com/_media/resources/tools-software/linux-drivers/platforms/nios2/rootfs_nios2.cpio.gz | |
Resolving wiki.analog.com (wiki.analog.com)... 195.170.124.184 | Resolving wiki.analog.com (wiki.analog.com)... 195.170.124.184 |
Connecting to wiki.analog.com (wiki.analog.com)|195.170.124.184|:80... connected. | Connecting to wiki.analog.com (wiki.analog.com)|195.170.124.184|:80... connected. |