Forum Discussion

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

Problem with the elf2flash command tool on linux

The 10.1 linux version of quartus seems quite good. I can easily installed it on a ubuntu machine. However, some command tools like sof2falsh, elf2flash still have some problem. When I typed them in the terminal, it usually give me errors like:

can't locate sh_launch.pm in @inc (@inc contains: /bin /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at - line 2.

begin failed--compilation aborted at - line 2.

I guess it might caused by some environment variables settings .

Have anyone met this problem before?

Any advice will be appreciated.

2 Replies

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

    Hi Andy,

    I'm still working on getting things working in SUSE, but that error went away for me after I setup the following:

    setenv ALTERA_ROOT /home/altera/10.1

    setenv SOPC_KIT_NIOS2 ${ALTERA_ROOT}/nios2eds

    setenv _QUARTUS_ROOT ${ALTERA_ROOT}/nios2eds/../quartus

    setenv QUARTUS_ROOTDIR ${ALTERA_ROOT}/quartus

    setenv _NIOS2EDS_ROOT ${ALTERA_ROOT}/nios2eds/

    setenv PATH ${PATH}:${ALTERA_ROOT}/nios2eds/bin/gnu/H-i686-mingw32/bin:${ALTERA_ROOT}/nios2eds/sdk2/bin:${ALTERA_ROOT}/nios2eds/bin:${ALTERA_ROOT}/quartus/bin:${ALTERA_ROOT}/quartus/sopc_builder/bin

    Of course, change ALTERA_ROOT path to match your install. :)

    With that, nios2-configure-sof & nios2-flash-programmer work for me.

    -Brian

    PS: I still need to search the forums for java errors I get with sof2flash.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Brian,

    Those commands works now. Thanks a lot! It has bothered me for quite a long time.

    I do think that altera should set these Env for the users or give some pop-up hints after installation.