Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
734 Views

nios2 problem

While I am building a system with multiple clock domains based on the Alter document following error displayed at the time geneartion. 

 

2005.08.02 15:22:22 (*) Running Generator Program for cpu 

eperl: SOPC_KIT_NIOS2 environment variable not set 

 

Error: Generator program  

for module 'cpu' did NOT run successfully. 

generator cmd was '/tools/altera/quartus5/linux/perl561/bin/perl -I/tools/altera/quartus5/sopc_builder/bin -I/tools/altera/quartus5/sopc_builder/bin/europa -I/tools/altera/quartus5/sopc_builder/bin/perl_lib -I/local/linux/lib/perl5/5.6.1/i686-linux -I/local/linux/lib/perl5/5.6.1 -I/local/linux/lib/perl5/site_perl/5.6.1/i686-linux -I/local/linux/lib/perl5/site_perl/5.6.1 -I/local/linux/lib/perl5/site_perl -I. -I/tools/altera/kits/nios2/components/altera_nios2 -I/tools/altera/kits/nios2/components/altera_nios_dev_board_stratix_1s10_es -I/tools/altera/kits/nios2/components/altera_nios_dev_board_stratix_2s60_es -I/tools/altera/kits/nios2/components/altera_nios_custom_instr_endian_converter -I/tools/altera/kits/nios2/components/amd_avalon_am29lv128m_flash -I/tools/altera/kits/nios2/components/altera_nios_dev_kit_stratix_edition_sram -I/tools/altera/kits/nios2/components/amd_avalon_am29lv065d_flash -I/tools/altera/quartus5/sopc_builder/components/altera_sopc_builder -I/tools/altera/kits/nios2/components/altera_nios_dev_board_stratix_1s40 -I/tools/altera/kits/nios2/components/altera_nios2 -I/tools/altera/kits/nios2/components/altera_nios_dev_board_cyclone_2c35 -I/tools/altera/quartus5/sopc_builder/components/altera_avalon_clock_adapter -I/tools/altera/kits/nios2/components/altera_avalon_spi -I/tools/altera/kits/nios2/components/altera_avalon_cfi_flash -I/tools/altera/kits/nios2/components/altera_avalon_dma -I/tools/altera/kits/nios2/components/altera_avalon_mailbox -I/tools/altera/quartus5/sopc_builder/components/altera_ahb_avalon_bridge -I/tools/altera/quartus5/sopc_builder/components/altera_avalon_avalon_ahb_bridge -I/tools/altera/quartus5/sopc_builder/components/altera_avalon_tri_state_bridge  

-I/tools/altera/kits/nios2/components/altera_nios_eval_board_cyclone_1c12 -I/tools/altera/kits/nios2/components/altera_avalon_lan91c111 -I/tools/altera/kits/nios2/components/altera_avalon_lcd_16207 -I/tools/altera/kits/nios2/components/altera_nios_dev_kit_stratix_edition_sram2 -I/tools/altera/kits/nios2/components/altera_avalon_cf -I/tools/altera/quartus5/sopc_builder/components/altera_avalon_burst_adapter -I/tools/altera/kits/nios2/components/altera_nios_multiply -I/tools/altera/kits/nios2/components/altera_nios_dev_board_cyclone_1c20 -I/tools/altera/quartus5/sopc_builder/components/altera_avalon_user_defined_interface -I/tools/altera/kits/nios2/components/altera_avalon_cy7c1380_ssram -I/tools/altera/kits/nios2/components/altera_plugs_library -I/tools/altera/kits/nios2/components/altera_avalon_cs8900 -I/tools/altera/kits/nios2/components/altera_nios_dev_board_stratix_1s10 -I/tools/altera/kits/nios2/components/altera_avalon_jtag_uart -I/tools/altera/kits/nios2/components/altera_avalon_asmi -I/tools/altera/quartus5/sopc_builder/components/altera_avalon_onchip_memory -I/tools/altera/kits/nios2/components/altera_avalon_onchip_memory2 -I/tools/altera/kits/nios2/components/altera_avalon_timer -I/tools/altera/kits/nios2/components/altera_avalon_new_sdram_controller -I/tools/altera/kits/nios2/components/altera_nios_custom_instr_bitswap -I/tools/altera/kits/nios2/components/altera_avalon_epcs_flash_controller -I/tools/altera/kits/nios2/components/altera_avalon_performance_counter -I/tools/altera/kits/nios2/components/altera_avalon_sysid -I/tools/altera/kits/nios2/components/altera_avalon_mutex -I/tools/altera/kits/nios2/components/altera_avalon_uart -I/tools/altera/kits/nios2/components/altera_nios_custom_instruction -I/tools/altera/kits/nios2/components/altera_user_board_setup -I/tools/altera/kits/nios2/components/altera_avalon_pio /tools/altera/kits/nios2/components/altera_nios2/cpu_core_select.pl --system_name=std_1c20 --target_module_name=cpu --system_directory=/research/najeeb/standard --sopc_directory=/tools/altera/quartus5/sopc_builder --sopc_lib_path=/research/najeeb/standard+/tools/altera/kits/nios2/components+/tools/altera/quartus5/sopc_builder/components --generate=1 --verbose=0 --software_only=0 --module_lib_dir=/tools/altera/kits/nios2/components/altera_nios2 --sopc_quartus_dir=/tools/altera/quartus5 --projectname=standard.quartus ' 

 

 

Error in processing. System NOT successfully generated. 

 

My directory structure is /tools/altera/quartus5 and nios2 is in /tools/altera/kits 

Operating system is redhat 7.3 

 

 

Path variables given in bash_profile are given below 

PATH=$PATH:/tools/altera/quartus5/bin 

export QUARTUS_ROOTDIR=/tools/altera/quartus5 

export SOPC_BUILDER_PATH=/tools/altera/kits/nios2 

export niosbin=/tools/altera/kits/nios2/bin 

export niosgnu=/tools/altera/kits/nios2/bin/nios-gnupro/bin 

 

 

Can any one help me to reolve this problem.  

 

Thanking You in advance 

 

Junaid.k
0 Kudos
1 Reply
Highlighted
Valued Contributor III
10 Views

Hello, 

 

On the Linux platform, I would recommend starting everything from within an SDK shell. In that way, you don't have to worry about any environment variables, other than the license server.  

 

In your particular case, you missed the SOPC_KIT_NIOS2 environment variable. 

 

- slacker
0 Kudos