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

Compressing my kernel and code

Altera_Forum
Honored Contributor II
1,172 Views

Hi 

 

I want to compress my kernel and the code that should run on this kernel. I have made a little bootloader that should start up and then deflate my compressed file. I wanted to have the deflated file in the S-Record format so I could use the code from the GERMS monitor to interpret the S-Records and put the data the correct places in the memory. Now my problem is that the NIOS 2, that I am using now, don't generate these S-Record files as the old NIOS 1 did. There is also no tool for converting hex/flash files into S-Record files. How can I get my output files in the S-Record format????? Is there a better way to do what I am doing??? A better format??? 

 

Best Regards 

GreateWhite.DK
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
521 Views

I am thinking that I might just take the binary kernel file and compress that file. Then I can deflate that one while I copy the data to the correct places in memory. 

But how do I change the Memory map for my uC Linux kernel??? I can set it to use the SDRAM as it's program memory which is just fine. But if I want to have bootloader already running in this memory I cannot just copy the kernel from the base of the memory. I have to somehow make a offset of x bytes. How can this be setup within the IDE or anywhere else??? 

 

Regards 

GreateWhite.DK
0 Kudos
Altera_Forum
Honored Contributor II
521 Views

Try "nios2-elf-objcopy --help" 

 

This will convert a .elf to a .srec
0 Kudos
Altera_Forum
Honored Contributor II
521 Views

Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you very much http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif

0 Kudos
Reply