Forum Discussion
Altera_Forum
Honored Contributor
12 years agoAltera rozipfs in SRAM partition
Hi, has anyone attempted and succeeded in using rozipfs with memory base and offset located in SRAM? In my case it doesn't work. I have done the following: - created partition in SRAM ...
Altera_Forum
Honored Contributor
12 years ago"The problem" is that the filesystem image needs to be present in the SRAM before the filesystem initializes itself.
Possibly better ways to accomplish it, but I ended up invoking ALTERA_RO_ZIPFS_INIT() myself after the contents had been copied into SRAM. e.g.#include "altera_ro_zipfs.h"
# include "system.h"
...
...
main() {
...
memcpy();
ALTERA_RO_ZIPFS_INIT( ALTERA_RO_ZIPFS, altera_ro_zipfs );
...
fh = fopen();
...
}