Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

problem of load nios2-configure-sof with commande linux

hello,

i'm know in the last step to load the .sof ( nios2-configure-sof) in the board cyclone II 2c35

i followed the step indicate in:

http://nioswiki.com/operatingsystems/uclinux/quartusforlinux

but when i write this line

[NiosII EDS]$ nios2-configure-sof

bash: nios2-configure-sof : commande introuvable

/opt/altera9.1sp1/nios2eds/examples/verilog/niosII_cycloneII_2c35/full_featured

if somebody have any solution please ?

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You have to customize the n2sdk script for your particular system. Failure to do so will end up with paths being improperly defined or just not defined at all. I have successfully done this for many systems, Ubuntu/Xubuntu being the most recent.

    Best Regards,

    -slacker
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hello,

    first thank's for the reponse, but i don't understand how i can change my n2sdk script.

    *******************************************************

    #!/bin/bash# Run this for a Nios II SDK bash shellexport LM_LICENSE_FILE=1800@localhostSOPC_KIT_NIOS2=/opt/altera9.1sp1/nios2edsexport SOPC_KIT_NIOS2SOPC_BUILDER_PATH_91=/opt/altera9.1sp1/nios2edsexport SOPC_BUILDER_PATH_91unset GCC_EXEC_PREFIXQUARTUS_ROOTDIR=/opt/altera9.1sp1/quartusexport QUARTUS_ROOTDIRexport PERL5LIB=/usr/lib/perl5bash --rcfile $QUARTUS_ROOTDIR/sopc_builder/bin/nios_bash**************************************************************so what do you think i should change ? (it may be the perl5 for ubuntu i dont know the referance of perl)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi there,

    you have to include the correct path.

    Search for nios2-configure-sof and include its path.

    For me the following works:

    PATH=$PATH:/opt/altera9.1sp2/nios2eds/bin

    Put it in homedir/.bashr (user) or /etc/bash.bashrc (global)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ...or it could be something as simple as actually defining QUARTUS_ROOTDIR...

    -slacker