Altera_Forum
Honored Contributor
19 years agoaltera_ro_zipfs bypassing flash
We would like to use Altera's readonly ZIP filesystem, but the model for applying it seems awkward -- you specify the ZIP file in the system library (not in the project), and there is a separate flash programming step that must be done to some fixed offset.
Would it make sense, instead, to include the ZIP file in the .data segment by converting it to a .o via objcopy, then include that object file in the link, and then somehow redirect the zipfs routines to use it rather than a flash image? Such an approach might be nice during development because changes to the ZIP file would make their way into the running code just like any other compiled segment. One can make the object file manually using something like: nios2-elf-objcopy -I binary -O elf32-littlenios2 -B nios2 <ZIP-FILE> zipfile.o but in the strange realm of managed makefiles I'm unsure how to: * Add the above command to create zipfile.o whenever ZIP-FILE changes * Include the zipfile.o object in the final link and then: * fool the altera_ro_zipfs routines into using it. Any suggestions would be *really* appreciated -- Thanks!