This directory contains the following files:
readme.txt:		This file

mfsgen.c:		Standalone program to generate an MFS image on a host system. This is
			useful if you want to download a pre-configured file system on to flash
			memory

flash.tcl:		TCL script to be used in conjuction with xmd to download MFS image to 
			flash. Warning: The script has to be modified depending on the board,
			flash memory type, etc.

system.mhs/mss/ucf:	Sample design file to create a simple platform with flash and SRAM 
			on an Insight/Memec V2MB1000 development board.

test_mfs_filesys.c:	Simple test case that can be natively compiled with the files 
			in the src directory to test the MFS library

testmfs.c:
testmfsrom.c:
testmfsflashrom.c:	Simple test case that loads  a preconfigured MFS file 
			(created using mfsgen) to SRAM, ROM, and FlashROM 
			and then accesses the file system
			The testcases are written for a V2MB1000 development board and 
			may need modification to use  on other boards


Usage of pre configured Memory File System with mfsgen:


1. Read-only file system on Flash or pre-initialized file read/write system on flash/SRAM
	a. Create a directory on the host machine file system that contains 
	   all the files/directories to be loaded on the MFS
	b. Compile mfsgen.c along with mfs_filesys.c and mfs_filesys_util.c to create mfsgen
		- gcc mfsgen.c mfs_filesys.c mfs_filesys_util.c -o mfsgen
	c. Run mfsgen to create mfs image on disk
		- mfsgen -csf filesys.mfs list_of_files_to_put_on_MFS
                  The 's' switch is used if mfsgen is run on a PC to generate a file system 
                  for MicroBlaze. The 's' switch is not needed if mfsgen is run on 
                  a Solaris machine.
	d. Download mfs image filesys.mfs to flash or RAM as described below.

The TCL script flash.tcl, writes the memory image to Flash Memory. 
The Flash writer supports Toshiba TH50VSF2580/2581AASB and TH50VSF3680/3681AASB flash. Downloading the memory image to flash.
	The following steps needs to be followed to download the memory image to flash.				a. Run xmd
	b. mbconnect stub -posit 2 
		- Connect to Microblaze 
		** position param depends on particular board being used

	c. (FOR SRAM)
	   xdownload 0 -data filesystem.mfs 0xffe00000
		- download data file to a specific SRAM address
		** SRAM address depends on board and platform configuration

	c. (FOR FLASH)
	   source flash.tcl 
		- load the flash TCL script
	d. flash_init 0x1f800000 0 
		- Create and initialize the flash target. 
		  Specify the flash start address (0x1f800000) and existing xmd target (0).
		*** Depends on the address assinged to flash memory in your system
	e. flash_data_dow  filesys.mfs 0x1f800000
		- Download the mfs image file called filesys.mfs from host to flash ROM
