cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Explorer
Explorer
7,450 Views
Registered: ‎09-08-2014

MFS files

Jump to solution

Hi

I have used mfsgen -cvbf to create an mfs file. I have then downloaded this onto the hardware before lauch.

 

I want to then update files in the mfs file in the software. I'm able to identify the files within the MFS file and open them using mfs_file_open(filename, MFS_MODE_READ). I can also see its size using fsize = mfs_file_lseek(fd, 0, MFS_SEEK_END); However if I want to update the file I don't see a command that allows me to do this.

 

I have looked thro http://www.xilinx.com/ise/embedded/edk82i_docs/sa_xilmfs_v1_00_a.pdf and this doesn't explain how you can update the file. Any suggestion please?

Pete

 

0 Kudos
Reply
1 Solution

Accepted Solutions
Explorer
Explorer
13,477 Views
Registered: ‎09-08-2014

all sorted now :)

View solution in original post

0 Kudos
Reply
5 Replies
Xilinx Employee
Xilinx Employee
7,446 Views
Registered: ‎08-01-2008
mfsgen -cvbf ../image.mfs 2048 css images js yui generate-mfs index.html

This command is described on page 18 of the LightWeight IP (lwIP) Application Examples Application Note (XAPP1026):
http://www.xilinx.com/support/documentation/application_notes/xapp1026.pdf
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Reply
Explorer
Explorer
7,444 Views
Registered: ‎09-08-2014

Hi @balkris

I know that I can update the file by rerunning mfsgen -cvbf what I want to be able to do is update the file within the SDK software. The method you suggests mean I have to reload the software everytime to update the mfs file. I want to be able to do it within the code.

 

I am trying to use  mfs_file_write(fd, pixel, 1); where fd is the file, pixel is the data. This doesn't work. I'm able to delete the file with mfs_delete_file(filename);

 

Pete

0 Kudos
Reply
Scholar
Scholar
7,345 Views
Registered: ‎09-05-2011
Check the MFS functions on page 126 of the following guide:
http://www.xilinx.com/support/documentation/sw_manuals/xilinx2015_4/oslib_rm.pdf

Explorer
Explorer
7,343 Views
Registered: ‎09-08-2014

thanks but this is a repeat of http://www.xilinx.com/ise/embedded/edk82i_docs/sa_xilmfs_v1_00_a.pdf which also doesn't explain the mfs functions very well

 

0 Kudos
Reply
Explorer
Explorer
13,478 Views
Registered: ‎09-08-2014

all sorted now :)

View solution in original post

0 Kudos
Reply