FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6462 Discussions

Qsys throws error while generating DDR2 Uniphy

Altera_Forum
Honored Contributor II
1,381 Views

Hi, 

 

I am getting the following error while generating the Qsys system in Linux. 

 

 

Error: s0: add_fileset_file: No such file /tmp/alt5543_8846100032461293346.dir/0025_s0_gen/qsys/nios_dma_dram_mem_if_ddr2_emif_0_s0_sequencer_mem.hex 

while executing 

"add_fileset_file $file_name [::alt_mem_if::util::hwtcl_utils::get_file_type $file_name 0] PATH $generated_file" 

("foreach" body line 4) 

invoked from within 

"foreach generated_file [alt_mem_if::gen::uniphy_gen::generate_sequencer_files $name "DDR2" $tmpdir QUARTUS_SYNTH] { 

set file_name [file tail $genera..." 

(procedure "generate_synth" line 8) 

invoked from within 

"generate_synth nios_dma_dram_mem_if_ddr2_emif_0_s0" 

 

The design contains a DDR, Nios processor, jtag uart, sys id and dma controller. 

 

I am using Quartus 12.0  

 

I am invoking Generate from Qsys with root permissions. 

 

Please find the Qsys file attached for your reference (rename attached file to .qsys to open in Qsys) 

 

Appreciate your feedback 

 

Thanks 

Deepak
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
505 Views

 

--- Quote Start ---  

Hi, 

 

I am getting the following error while generating the Qsys system in Linux... 

 

--- Quote End ---  

 

 

Unfortunately I don't work with QII under Linux. 

I've generated your provided Qsys system under Windows Q12.0 64-Bit without any errors. 

 

I've attached the complete project with all generated files. 

 

Maybe you'll have to remove all of your intermediate files? 

I do that very often...
0 Kudos
Altera_Forum
Honored Contributor II
505 Views

Thank you for the generated system. 

 

I tried cleaning up the /tmp directory. Unfortunately, that didnt help.  

 

My guess is that this is probably a Qsys linux bug ? 

 

Deepak
0 Kudos
Altera_Forum
Honored Contributor II
505 Views

I found the solution from a related bug tracked here - 

 

http://www.alteraforum.com/forum/showthread.php?t=30481 

 

The solution is to  

 

edit nios2eds/bin/elf2hex, change first line to# !/bin/bash 

 

Marking this thread duplicate. 

 

Thanks for your responses. 

Deepak
0 Kudos
Altera_Forum
Honored Contributor II
505 Views

FWIW, I experienced same issue with Altera 12.1 on Ubuntu 12.04.1

0 Kudos
Altera_Forum
Honored Contributor II
505 Views

edit altera/13.0sp1/nios2eds/bin/elf2hex, change first line to# !/bin/bash

0 Kudos
Reply