Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,235 Views

how to use hostfs in IDE

how to use the hostfs(file system) that altera provided . 

i want to read data from file in my computer 

when it evoke the alt_hostfs_open() function and execute where 

(__asm__ volidata) ,it can not continue. 

who can use it? 

thanks
0 Kudos
4 Replies
Altera_Forum
Honored Contributor I
145 Views

 

--- Quote Start ---  

originally posted by mjl-0708@May 16 2006, 10:27 PM 

how to use the hostfs(file system) that altera provided . 

i want to read data from file in my computer 

when it evoke the alt_hostfs_open() function and execute where 

(__asm__ volidata) ,it can not continue. 

who can use it? 

thanks 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15413) 

--- quote end ---  

 

--- Quote End ---  

 

the hostfs is added as software component  

mount:/mnt/host 

but i can&#39;t open file when using fp=fopen(/mnt/host/test","r") 

fp always returns 0 

why?
Altera_Forum
Honored Contributor I
145 Views

Why don&#39;t you try the host filing system example, shipped with the 5.1 kit? It seem to work, just fine, here, and contains useful comments about how/why it works... 

 

Best Regards, 

 

- slacker
Altera_Forum
Honored Contributor I
145 Views

thank you 

i try
Altera_Forum
Honored Contributor I
145 Views

Hi 

I record a tutorial on how to mount text file using NIOS II Processor and hostfs feature which enables us to mount files (such as text file) and perform read and write operation on that file 

http://youtu.be/kbicxwtfbiy (http://youtu.be/kbicxwtfbiy)
Reply