Nios® V Processor Software Developer Handbook

ID 743810
Date 12/04/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

12.1. Read-Only Zip File System in BSP Editor

The read-only zip file system is supported by Nios® V processor software development flows. To use the zip file system, use the Board Support Package (BSP) Editor to include the software package
In the BSP Editor, you must specify the following parameters to configure the file system,
  • Name of the mount point for the file system (e.g., /mnt/rozipfs)
  • Offset from the memory base address
  • Base address of the memory
Figure 22. Configuring Read-Only Zip File System

After you make these settings, the BSP Editor includes and links the file subsystem in the project. After you rebuild the project, the system.h file reflects the presence of this software package in the system.

To read the example.txt, use the command as below.
fopen("/mnt/zipfs/example.txt", "r");