01-12-2016 02:52 AM - edited 01-12-2016 02:58 AM
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
01-14-2016 07:19 AM
all sorted now :)
01-12-2016 02:59 AM
01-12-2016 03:09 AM - edited 01-12-2016 06:26 AM
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
01-13-2016 01:41 AM
01-13-2016 01:45 AM - edited 01-14-2016 04:24 AM
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
01-14-2016 07:19 AM
all sorted now :)