Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
22 years ago

Compressing my kernel and code

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

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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