Jump to content
  • 0

lwIP webserver on Zynq-Z7: Error using index.html


fpga_123

Question

Hello,

I have been working on the lwIP web server and the index.htm file used as a web page for this application is creating a problem for me. There is image.mfs file which I download at the DDR address of 0x10000000. I verified in xparameters.h that the DDR is from 0x00100000 to 0x3FFFFFFF.  When I download the image.mfs, it is done successfully and I get this at xsct console

 

dow -data image.mfs 0x10000000

  0%    0MB   0.0MB/s  ??:?? ETA
 16%    0MB   0.3MB/s  ??:?? ETA
 34%    0MB   0.3MB/s  ??:?? ETA
 52%    0MB   0.3MB/s  ??:?? ETA
 70%    0MB   0.3MB/s  ??:?? ETA
 88%    0MB   0.3MB/s  ??:?? ETA
100%    1MB   0.3MB/s  00:03    

There after when I run the web server application I get this error:

*********************************************************

-----lwIP Raw Mode Demo Application ------
link speed for phy address 1: 1000
ERROR: DHCP request timed out
Configuring default IP 192.168.1.10
Board IP:       192.168.1.10
Netmask :       255.255.255.0
Gateway :       192.168.1.1

http server is running on port 80
Please point your web browser to http://192.168.1.10

platform_init_fs 4: ERROR: unable to locate index.html in FS

***********************************************************

Error value of 4 means FR_NO_FILE for f_open function....

The code that is being used for platform_init_fs( ) is attached below.

Also, in the example of lwIP, the memfs folder that contains the image,css, index.html and all.. is to be stored inside the project folder, and not specifically inside the .sdk folder?? I mean, is it sufficient for the files to be there in the main project folder, no matter wherever in the sub-directories?

Any help is highly appreciated,

 

 

 

platform_init_fs.txt

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...