Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

Problem with the elf2flash command tool on linux

Altera_Forum
Honored Contributor II
1,691 Views

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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
990 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
990 Views

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.
0 Kudos
Reply