Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
737 Views

Nios2 tools - Linux

I am building Linux plus my application into a zImage (elf file) on a Linux PC. I currently have to copy zImage to a Windows PC to prepending the boot loader and convert the file to an srec using elf2flash. Then I need to run nios2-elf-objcopy to create the final binary. 

Is there a way to install just these two programs on the Linux PC. I do not want to install Quartus just for these two functions.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor I
31 Views

I just looked at my bin directory at elf2flash, and this is a shell script which calls sh_jar.sh, which calls pl_jar.pl, which calls elf2flash.jar. Although you can probably copy the individual files from another linux install, it's probably easier to just install everything on linux. 

 

the nios2-elf-objcopy looks like its a simply linux exeutable for linux so it's probably could run just copy that single file, but there may be other dependencies. 

 

If you install everything, the full size of the install is around 15 GB. Most it taken by Quartus itself, so if you manually remove Quartus, and modelsim, you get down to < 3 GB. 

 

Still at large size.. But better than 15 GB. 

 

Pete
Altera_Forum
Honored Contributor I
31 Views

You ought to have a copy of objcopy on the linux system already - with the other nios compilation bits. If not download the source and build it.

Reply