update....i wish i could read, i see that you have an update issue...i may be looking at that in the future, if i detect any problems i'll post back...i need do some download tests before....
the following is for displaying web pages.....i guessed you solved that?
update again.....i just downloaded you code.... it needs correcting as below....if this solves your problems let us know
There is a bug in the modified code....
In the function "int alt_ro_zipfs_read(alt_fd* fd, char* ptr, int len)"
The following section of modified code needs to be changed
from................
if (ALTERA_RO_ZIPFS_BASE == EPCS_FLASH_CONTROLLER_BASE)
{
alt_u32 RetValue;
alt_u32 Offset = (current - ALTERA_RO_ZIPFS_BASE);
alt_flash_dev *fdev = alt_flash_open_dev("/dev/epcs_flash_controller\0");
//Do EPCS Flash Read
alt_epcs_flash_read(fdev, Offset, (void*)current, amount_to_copy);
alt_flash_close_dev(fdev);
}
else
{
}
memcpy(ptr, current, amount_to_copy);
return amount_to_copy;
to....................
if (ALTERA_RO_ZIPFS_BASE == EPCS_FLASH_CONTROLLER_BASE) /* i.e. if serial flash */
{
/* serial flash */
alt_u32 Offset = (current - ALTERA_RO_ZIPFS_BASE);
alt_flash_dev *fdev = alt_flash_open_dev("/dev/epcs_flash_controller\0");
// TODO should check for open and read errors
// Do EPCS Flash Read
alt_epcs_flash_read(fdev, Offset, (char*)ptr , amount_to_copy);
alt_flash_close_dev(fdev);
}
else /* memory mapped i.e. parallel flash */
{
memcpy(ptr, current, amount_to_copy);
}
return amount_to_copy;
Attached is the original altera file and a modified version of DrinkFish file
(i made some other very minor changes )
Update... If you have the BEMicro SDK I have created some instructions to make the webserver run on this kit
http://www.alteraforum.com/forum/sho...158#post133158 (
http://www.alteraforum.com/forum/showthread.php?p=133158#post133158)