Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Nios2 tools - Linux

Altera_Forum
Honored Contributor II
998 Views

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

0 Kudos
Reply