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

nios2-elf-objcopy: command not found



Installed cygwin & tried to run the following nios2 command to convert .hexout -> .rbf :

     nios2-elf-objcopy –I ihex –O binary file1_I.hexout file1_I.rbf

I executed this under cygwin shell window :

***@md2yxsmc /cygdrive/d/RTCM/Branches/Kevin/appl_dir

$ nios2-elf-objcopy –I ihex –O binary file1_I.hexout file1_I.rbf

-bash: nios2-elf-objcopy: command not found

When I run the above  ‘nios2-elf-objcopy’ command on the Cygwin shell window, it reported “Command not found” as shown above in red.

Looked then to find where the nios2-elf-objcopy lives and add that directory to path (for bash : 'export PATH=$PATH:/absolute/path/to/directory')

nios2-elf-objcopy does not live within C:\intelFPGA_lite\20.1\nios2eds\bin directory where the other nios2-* commands are.

Located:  nios2-elf-objcopy.1 under C:\intelFPGA_lite\20.1\nios2eds\bin\gnu\share\man\man1

Added the following PATH that nios2-elf-objcopy.1 resides (could not locate nios2-elf-objcopy) :

 export PATH=$PATH:/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1


But still get :

$ cd D:/RTCM/Branches/Kevin/appl_dir

$ nios2-elf-objcopy –I ihex –O binary file1_I.hexout file1_I.rbf

-bash: nios2-elf-objcopy: command not found


$ nios2-elf-objcopy.1 –I ihex –O binary file1_I.hexout file1_I.rbf

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 1: .": command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 2: .": command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 3: .": command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 4: .": command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 5: .de: command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 6: .br: command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 7: .if: command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 8: .ne: command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 9: .PP: command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 10: fB\–IfR: command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 11: .PP: command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 12: ..: command not found

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 13: syntax error near unexpected token `('

/cygdrive/c/intelFPGA_lite/20.1/nios2eds/bin/gnu/share/man/man1/nios2-elf-objcopy.1: line 13: `.de Sp \" Vertical space (when we can't use .PP)'


0 Kudos
1 Reply

Can you run it on Nios II command shell?

0 Kudos