UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor sixinglu
Visitor
6,510 Views
Registered: ‎01-08-2014

cannot find mfs file when running

Jump to solution

Hi all,

I am implementing xapp1026. All the things is ok so far except it says:

"platform_init_fs: ERROR: unable to locate index.html in MFS

One of your applications requires a Memory File System to be loaded.
Please check if MFS has been loaded, and it has index.html file in root directory

 

I can ensure:

1. the downloading of mfs file is successful (I do have ddr includes this address, and it is big enough), and the base address in BSP is the same (0xaffbf000).  XMD told me: 

"Downloading Data File -- image.mfs at 0xaffbf000
Progress ....................Done"

2. there is no collision with my elf file:

"Downloading Program -- C:/Users/sixinglu/ethernet_try2/raw_apps/Debug/raw_apps.elf

section, .vectors.reset: 0x00000000-0x00000007
section, .vectors.sw_exception: 0x00000008-0x0000000f
section, .vectors.interrupt: 0x00000010-0x00000017
section, .vectors.hw_exception: 0x00000020-0x00000027
section, .text: 0xa8000000-0xa802750b
section, .init: 0xa802750c-0xa8027547
section, .fini: 0xa8027548-0xa8027567
section, .ctors: 0xa8027568-0xa802756f
section, .dtors: 0xa8027570-0xa8027577
section, .rodata: 0xa8027578-0xa8029687
section, .data: 0xa8029688-0xa8029d1f
section, .bss: 0xa8029d20-0xa823bba7
section, .heap: 0xa823bba8-0xa825bba7
section, .stack: 0xa825bba8-0xa827bba7"

3. there is html inside mfs. I even mfsgen one by myself, but it still not working. 

 

Is any other possibilites cause this error?  Thank you very much!

My board is Spartain-6 XL45.  SDK14.6

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor sixinglu
Visitor
8,841 Views
Registered: ‎01-08-2014

Re: cannot find mfs file when running

Jump to solution

I solve this problem finally.

 

When test by function mfs_ls_r(1); if the output is not stop just as I posted before, it means the file system is not aligned.

The correct output is like that:

index.html 00000004

 

mfs file could not be found if  in

mfs_init_fs(MFS_NUMBYTES-4, (char *)(MFS_BASE_ADDRESS+4), MFS_INIT_TYPE);

either of "4" ignored.

And we'd better regenerate the mfs file by ourself.

 

Hope it would be helpful for later people.

0 Kudos
8 Replies
Scholar sampatd
Scholar
6,501 Views
Registered: ‎09-05-2011

Re: cannot find mfs file when running

Jump to solution
If you are suing SP605, try the following command while downloading the MFS image.

XMD% dow -data image.mfs 0xAF000000
0 Kudos
Visitor sixinglu
Visitor
6,493 Views
Registered: ‎01-08-2014

Re: cannot find mfs file when running

Jump to solution

It is the same result with the address I used before.

Downloading is successful, but still no file exist. 

 

Now I modify the software code it test, in platform_init_fs():

mfs_init_fs(MFS_NUMBYTES, (char *)(MFS_BASE_ADDRESS+4), MFS_INIT_TYPE); // mfs_init_genimage(MFS_NUMBYTES, (char *)(MFS_BASE_ADDRESS), MFS_INIT_TYPE);  // it is the same with above 

char test_array[266000];
// int xilmfs_result 1= mfs_change_dir("index.html");     // need I change directory?
int xilmfs_result2 = mfs_get_current_dir_name(test_array);

int test3 =mfs_ls_r(1);

 

mfs_ls_r return -1, the output is:

..00000000

.00000000

index.html 00000000

js 00000000

css 00000000

00000000

00000000

00000000

 

And I use command to see what's inside in my mfs address, it turns out to be:

XMD% mrd 0xAFFBF000 35 b
AFFBF000: 6D
AFFBF001: 66
AFFBF002: 73
AFFBF003: 32
AFFBF004: 00
AFFBF005: 00
AFFBF006: 00
AFFBF007: 00
AFFBF008: 00
AFFBF009: 00
AFFBF00A: 00
AFFBF00B: 02
AFFBF00C: 00
AFFBF00D: 00
AFFBF00E: 00
AFFBF00F: 00
AFFBF010: 00
AFFBF011: 00
AFFBF012: 00
AFFBF013: 00
AFFBF014: 00
AFFBF015: 00
AFFBF016: 00
AFFBF017: 00
AFFBF018: 00
AFFBF019: 03
AFFBF01A: 00
AFFBF01B: 00
AFFBF01C: 2E
AFFBF01D: 2E
AFFBF01E: 00
AFFBF01F: 00
AFFBF020: 00
AFFBF021: 00
AFFBF022: 00

 

I google this problem, there is a guy with the same problem but no solution posted.

Hopefully, somebody can help me out. Thank you!

0 Kudos
Scholar stephenm
Scholar
6,491 Views
Registered: ‎05-06-2012

Re: cannot find mfs file when running

Jump to solution
In your bsp setting can you make sure you have the xil_mfs configured correctly? See the xapp1026 ref designs as reference.

Next in SDK, in the run config under the device config tab, add the mfs file and add the offset that you used in the xil_mfs config.
0 Kudos
Visitor sixinglu
Visitor
6,489 Views
Registered: ‎01-08-2014

Re: cannot find mfs file when running

Jump to solution

I am pretty sure the BSP is the same configuration as example:

bsp_conf

 And I did this also:

device_conf.JPG

 

My memory is:

MEMORY
{
microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl : ORIGIN = 0x00000000, LENGTH = 0x00001fff
mcb_ddr2_S0_AXI_BASEADDR : ORIGIN = 0xA8000000, LENGTH = 0x08000000
newMemory2 : ORIGIN = 0xB0000001, LENGTH = 1000000
}

 

It is still not working. I got stuck in this problem for several days, and compare with example carefully and tried any method I can find. Other part works great, I can get DHCP IP and echo and ping.

 

I even use a small test.txt file to test whether my mfs system works, but it also fail. Is any possibility with hardware that will cause this?  Thank you very much!

0 Kudos
Visitor sixinglu
Visitor
6,487 Views
Registered: ‎01-08-2014

Re: cannot find mfs file when running

Jump to solution

Besides, when I read the directory by:

char test_array[20];

int xilmfs_result2 = mfs_get_current_dir_name(test_array);   // this function returns 1
xil_printf(test_array);

 

The result is just: \

Is that correct?

 

Then I try to read file by:

char test_content[5];

int test1 =mfs_file_read(test,test_content,5);
xil_printf("\n");
xil_printf(test_content);

 

The result is:

l
¨8Ÿ¨¨¼'¨˜5¨ì5¨

which seems messy code.

0 Kudos
Highlighted
Visitor sixinglu
Visitor
8,842 Views
Registered: ‎01-08-2014

Re: cannot find mfs file when running

Jump to solution

I solve this problem finally.

 

When test by function mfs_ls_r(1); if the output is not stop just as I posted before, it means the file system is not aligned.

The correct output is like that:

index.html 00000004

 

mfs file could not be found if  in

mfs_init_fs(MFS_NUMBYTES-4, (char *)(MFS_BASE_ADDRESS+4), MFS_INIT_TYPE);

either of "4" ignored.

And we'd better regenerate the mfs file by ourself.

 

Hope it would be helpful for later people.

0 Kudos
6,319 Views
Registered: ‎03-12-2014

Re: cannot find MFC file when running

Jump to solution

How do you solve this problem finally?  I regenerate image.mfs,but it don't work .thank you very much!

0 Kudos
2,966 Views
Registered: ‎08-24-2015

Re: cannot find MFC file when running

Jump to solution

Hi,

 

I'm using vivado 2015.4 version i got same problem,its always showing that index.html not find so error at platform_fs.c

 

Actually what i did,

1. open the sdk

2.created fsbl

3.run the fsbl

4.raw_apps,raw_apps_bsp files from XAPP1026 and paste in .sdk folder

5.copied image.mfs from xapp1026 ready_for_download and paste it in .sdk

6.goto sdk in project explorer import raw_apps,raw_apps_bsp

7.got error in raw_apps

8.create new bsp project with selecting lwip,xilmfs

9.change the bsp for raw_apps from raw_apps_bsp to created new bsp,build the project

10.again error,right click on raw_apps and clean the project and build

11.errors cleared now right click on it and select Run As-->Run configurations-->select raw_apps.elf--->right side goto application-->in that data files to download before lanuch click on add browse file where you stored .mfs and give adderss 0x7200000 and apply run

12.when you observe in uart its same error unable to find .html

13.come back to sdk and now change the bsp file from created to raw_apps_bsp,now no errors

14. do 11th step

15. you will get output....

i tried many days i found the result,i hope to you also get the result.

 

Thank you......

0 Kudos