Forum Discussion
Altera_Forum
Honored Contributor
16 years agoWhere is nios2-download?
I following the wiki: http://www.nioswiki.com/operatingsystems/uclinux/uclinuxdist
I installed the binary toolchain and changed my PATH accordingly. But I cannot find the command nios2-download. I have a bunch of nios2-linux-* commands. Thanks.5 Replies
- Altera_Forum
Honored Contributor
It's part of the Nios II EDS...you've got to install and set paths properly to Altera's toolchain as well.
Cheers, - slacker - Altera_Forum
Honored Contributor
My school has NIOS II IDE 9.0 installed. I typed nios2-download at the terminal and it says command not found (whereis does not work either). What is the location of nios2-download?
- Altera_Forum
Honored Contributor
Ummm...yeah. On Linux/Unix systems, a sys. admin. generally tells you how to do this or provides a script to set it up...or you're expected to do it on your own. Here's what I've done for years (you'll have to modify it to suit your purposes):
===== VERSION=9.1b219 QUARTUS_ROOTDIR=/opt/altera/${VERSION}/quartus QUARTUS_MWHOME=${QUARTUS_ROOTDIR}/mw SOPC_KIT_NIOS2=/opt/altera/${VERSION}/nios2eds SOPC_BUILDER_PATH=${SOPC_KIT_NIOS2}+ PERL5LIB=/bin:${QUARTUS_ROOTDIR}/sopc_builder/bin/perl_lib:${QUARTUS_ROOTDIR}/sopc_builder/bin/europa:${QUARTUS_ROOTDIR}/sopc_builder/bin: PATH=${SOPC_KIT_NIOS2}/bin:${SOPC_KIT_NIOS2}/bin/nios2-gnutools/H-i686-pc-linux-gnu/bin:${SOPC_KIT_NIOS2}/sdk2/bin:${SOPC_KIT_NIOS2}/bin/fs2/bin:${QUARTUS_ROOTDIR}/bin:${QUARTUS_ROOTDIR}/linux/perl/bin:${QUARTUS_ROOTDIR}/linux/gnu:$QUARTUS_ROOTDIR/sopc_builder/bin:${PATH} sopc_builder=/opt/altera/${VERSION}/quartus/sopc_builder export QUARTUS_ROOTDIR SOPC_KIT_NIOS2 SOPC_BUILDER_PATH PERL5LIB PATH sopc_builder ===== It's a Bourne/bash compatible environment setup script, so you'll have to be running that sort of shell to use it. Run it by typing ". <script_name>" or "source <script_name>". Cheers, - slacker - Altera_Forum
Honored Contributor
Thanks for the info slacker.
Question about the nios2-terminal command. I noticed that after I run this, then it shows linux decompressing. Does this imply that my linux system boots only after I run nios2-terminal? - Altera_Forum
Honored Contributor
--- Quote Start --- Does this imply that my linux system boots only after I run nios2-terminal? --- Quote End --- Yes, I think that's the default behavior. You should be able to change that behavior via a menuconfig setting, but I don't recall exactly what the setting is...sorry. Cheers, - slacker