Forum Discussion
Nios II ISS
Hi everybody,
Am trying to prototype how I can effectively use the niosII read-only zip filing system. Am currently using the example that came with the development board and I have followed the instructions on how to create and run the zip file in the IDE. Am currently trying to verify whether the zip file could be read by running the software as an ISS. When I tried to run the software as an ISS, I get the error "file could not be opened". Does anybody know what I can do so that the file could be read?. Cheers, joo2122 Replies
- Altera_Forum
Honored Contributor
This is a flash based filing system, there is no model for the flash on the ISS. I sugest you try this on a board.
- Altera_Forum
Honored Contributor
Thank you, I will try it right away. Please, do you know what the "Mount-Point" means?. Is the mount-point the installation directory?.
Cheers, joo21 - Altera_Forum
Honored Contributor
The mount point is how the file appears from the viewpoint of the CPU e.g. /mnt/rozipfs/. It's a general term, dropping it into google
brings up this, which shoudl help www.comptechdoc.org/os/linux/manual1/mountpoints.html - Altera_Forum
Honored Contributor
Thanks, I tried running the software as a nios II harwdare with the development board and am still having the same problem "Cannot open file".
From the url link you posted about mount point, it seems that the mount point is the directory where the files will be exported!. Do you know what else I can do?. Cheers, joo21 - Altera_Forum
Honored Contributor
I forget to mention that am using a PC running windows OS. It seems that this mount-point has something to do with linux OS!!!
Cheers, joo21 - Altera_Forum
Honored Contributor
The mount point is a UNIX paradigm, which is being used for the target software i.e. the code running on the Nios, it's nothing to do with your PC. I suggest you read chapter 12 of the Nios II Software Developers Handbook.
The mountpoint of for example /mnt/rozipfs, means that when you use fopen (on the Nios), the file will be opened as /mnt/rozipfs/my_file - Altera_Forum
Honored Contributor
fp=fopen ("/mnt/rozipfs/file1.txt", "r");
You said your system is Widows OS. So you have to modify the path like below: fp=fopen ("c:\\myfile\\file1.txt", "r"); You can try it. GL! - Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- fp=fopen ("/mnt/rozipfs/file1.txt", "r"); You said your system is Widows OS. So you have to modify the path like below: fp=fopen ("c:\\myfile\\file1.txt", "r"); You can try it. GL![/b] --- Quote End --- No you don't! The problem joo21 was having was not on a PC, where your change would work. It's on the target i.e. Nios where a UNIX model is used - Altera_Forum
Honored Contributor
Hi GL,
Thanks for the info. I did as you said but I still get the error "Cannot open file". Does any body knows any way out?. Since am running the Nios II IDE on windows OS, I think the mount point specified in the IDE project system library should reflect this OS. Obviously, somebody must have implemented this zip filing system on a machine running windows OS instead of linux/unix. Please, I need help. Cheers, joo21 - Altera_Forum
Honored Contributor
Have you programmed the flash with your ZIP file contents? If you haven't or you don't know what I'm talking about, then that's a good place to start.
- slacker