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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Nios flash-programmer utilities on linux

Altera_Forum
Honored Contributor II
1,263 Views

Hey all, 

I need to include the elf2flash and sof2flash utilites in my buildroot scripts in Linux. Has anyone been able to get these working in Linux? 

 

Thanks, 

Tony
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
419 Views

 

--- Quote Start ---  

originally posted by arios01@Dec 5 2006, 11:08 AM 

hey all, 

  i need to include the elf2flash and sof2flash utilites in my buildroot scripts in linux.  has anyone been able to get these working in linux? 

 

thanks, 

tony 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19836) 

--- quote end ---  

 

--- Quote End ---  

 

 

Yes, what are the specific problems you are seeing? Also, what version of the tools are you attempting to use? 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
419 Views

 

--- Quote Start ---  

originally posted by slacker+dec 6 2006, 12:06 am--><div class='quotetop'>quote (slacker @ dec 6 2006, 12:06 am)</div> 

--- quote start ---  

<!--quotebegin-arios01@Dec 5 2006, 11:08 AM 

hey all, 

  i need to include the elf2flash and sof2flash utilites in my buildroot scripts in linux.  has anyone been able to get these working in linux? 

 

thanks, 

tony 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19836) 

--- quote end ---  

 

--- Quote End ---  

 

 

Yes, what are the specific problems you are seeing? Also, what version of the tools are you attempting to use? 

 

- slacker 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19844)</div> 

[/b] 

--- Quote End ---  

 

 

There is no problem with the tools themselves. Up to now, I have been building my linux kernel in linux using the buildroot system and then using the NIOS IDE shell in windows to convert and flash the sof, kernel, and filesystem to the EPCS flash chip. This works great. 

However, now I am trying to automate the process a little more by adding the creation of the EPCS flash file together with the creation of the kernel image in Linux. My end goal is to type &#39;make&#39; at the root of a fresh buildroot and kernel directory and have the buildroot system build the kernel from sources then create a single flash image that includes the sof, kernel, and filesystem to be loaded to the EPCS device. 

At the moment, my make scripts can build a full kernel from fresh sources with a single &#39;make&#39; command. Now I just need to add the elf2flash tool to convert the elf vmlinux image to a flash image and run the sof2flash to convert the sof file to a flash image. 

If I could do these in Linux, I can add it to my Makefile. 

 

Thanks, 

Tony
0 Kudos
Reply