Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Web Server example

Hi,

With reference to the web server example available in Altera Wiki http://www.alterawiki.com/wiki/web_server_with_ajax_progress_bar, I tested the example project and it works fine ( it was tested on FPGA Cyclone III with flash memory on the development kit.

I want to run the web server project on a kit that does not have flash memory, instead I used epcs controller to upload the ro_zipfs.zip file (of course I modified the base address of epcs controller accordingly) ......what I got on the web browser is: Can't open the 404 File Not Found error page. Have you programmed the filing system into flash?

Is it possible to use epcs controller instead of flash memory,if yes, why am I receiving the above error message?

Thanks

17 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Running perfectly :)

    Good job Drinkyfish! YES you can do it

    Now, the next step is to make it independent of using# defines from system.h.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hello Drinkyfish,

    With reference to your solution for running webserver using epcs controller, the solution was tested by me using the same development board that already has a flash memory, and it works somehow.

    However when I test the solution on another development board "that does not has a flash memory on it", I got the following error (picture attached)

    From the picture, I can see that the webserver is running however the web pages were not uploaded!

    Any idea or advise?

    Best Regards'
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Has the file been overwritten when you re-generated your BSP? You would need to disable the auto-generation for "altera_ro_zipfs.c" in the bsp editor or it will trash your changes..

    Otherwise i'm not really sure what i advise i can give, I'm by no means an expert on the Altera Software.

    Sorry i cant help more at the minute. Our goal is similar to remove the flash so perhaps i'll run into the same problem.

    Cheers

    Tim
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The file is not overwritten, and still web pages are not uploaded!

    If you faced the same problem, please let me know about it.

    Thanks for your time
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Tim,

    I found that epcs_controller_name (system.h) differ from your altera_ro_zipfs file

    # define EPCS_CONTROLLER_NAME "/dev/epcs_controller"

    So I corrected it, and try it again.

    Result: I think I moved one step forward, I can see something displayed on the web browser (picture attached), but it seems that there is corruption in the received data (in the reading process)

    The size of ro_zipfs.zip is 242 KB, it is too small, so I can not say the file size is larger than EPCS available memory space (I am working on EPCS64 == 64Mbits = 8 Mb)

    Any idea?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I am stuck with the problem mentioned in my previous post, is there somebody who can give me an advise?