Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

The limit of the ROZIPFS file system?

Altera_Forum
Honored Contributor II
1,270 Views

Hello, I use ROZIPFS successfully at several boards, but there maybe some limit, but what limit?  

 

1. I find that if the ROZIPFS file size up to 2MB, the fopen() function usually can not return a valid value, but it is always right for the small file, is there somebody can explain this? 

 

2. The size of the non-compressed zip file may occupy a large CFI-flash memory space, if there some solution to resolve it? I usually compress the data file myself to reduce the file size, have some body have some simple methods?  

 

3. The .elf file be programmed to the same CFI-flash with no offset address, I don't know where it will allocated when program a little larger .elf file, then what offset address of the ROZIPFS file is safe? 

 

Welcom to communicate! Q:45764588.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
542 Views

Hi, 

 

regarding 2: do you have a decent amount of RAM? If you worry about flash but not about RAM maybe this could work: 

  • store compressed files in flash 

  • reserve a region in RAM for the zipfs filesystem 

  • uncompress the compressed data and copy it to the RAM at boot time 

  • set ro_zipfs base and offset in RAM 

0 Kudos
Altera_Forum
Honored Contributor II
542 Views

Hi Adrianer, 

 

It's a little bit impolite, but would you let me know how to use the zipfs, or some document definitely makes it work? 

 

I've search tens of document relate to this, include handbook, nios user guide, but it didn't help. 

 

Thank you :)
0 Kudos
Reply