Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- To finish this question. Create your hardware project with flash memory using SOPC builder. Create NIOSII project for this .sopcinfo hardware project. To use "Read only zip file system" to read files from Flash memory. I activated "altera_ro_zipfs" from NIOSII BSP editor with next parameters: ro_zipfs_base - base address of my Flash memory. Then: "BSP" --> Build project.. Then : "Flash Programmer" --> New --> your BSP project --> ADD all your no compressed files to use (change offset for each file) --> Start (programming) --> check "checksum" Then: "BSP" --> Build Project --> see "flash" folder in BSP directory with your files (.flash) Then: -- Create ZIP folder with your "no" compressed files. -- Copy this ZIP folder to application directory of your project. Then: -- "Flash Programmer" --> New --> your project BSP --> Add the ZIP folder with according offset(you did it in Altera_ro_zipfs ) --> Start (programming) --> check "checksum". Be carefull ! The manual "12. read-only zip file system" was written not clearly! It doesn't include a lot of new changes. The sample on the Altera side is more complicated and doesn't give a freedom to do for each board with flash memory. Enjoy! Thanks for the help!!! --- Quote End --- Hi Michael72: I am using the Cyclone 3 board for performing some image processing tasks. I have my image files in a non-compressed zip folder called imagefiles.zip. I followed these steps trying to flash the image files onto my on-board flash: 1. I modified the BSP settings using the BSP editor to turn on the altera_ro_zipfs at base address 0x1000 0000 and offset 0x100000. 2. I then Generate BSP 3. Build the BSP Project 4. Build the original project. 5. Then I use the flash programmer, and setup a New flash file by selecting the BSP settings file for my project. 6. Flash the imagefiles.zip 7. Run As NiOS-II program - the original software code. In the code I am accessing the mount point as /mnt/rozipfs/image1.bmp (for example). And I use fopen to open the file. But it fails. I am using Eclipse (NiOS-II v12.0). I still do not see any update in the documentation with regards to setting up the mount point on altera_ro_zipfs. In your steps above I see that you are using the flash programmer twice - for the files separately and for the zip folder. Why do you do this? Any help is appreciated! Best regards, Nirmala