Rick, If you're interested, a few years ago I ported this Perl script to C and posted the code here in the mailing list...
See http://lists.nongnu.org/archive/html/lwip-users/2005-07/msg00038.html I also modified the httpd server some to allow user files uploaded to FLASH to be served as well as the hardcoded pages in ROM. Let me know if you'd like more details. - Jim -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of FreeRTOS.org Info Sent: Tuesday, March 27, 2007 3:39 AM To: Mailing list for lwIP users Subject: Re: [lwip-users] Webserver with files ----- Original Message ----- From: "Raketnet" <[EMAIL PROTECTED]> To: "Mailing list for lwIP users" <[email protected]> Sent: Tuesday, March 27, 2007 9:33 AM Subject: Re: [lwip-users] Webserver with files > On Tue, 27 Mar 2007 09:21:48 +0100, FreeRTOS.org Info wrote >> ----- Original Message ----- >> From: "Raketnet" <[EMAIL PROTECTED]> >> To: <[email protected]> >> Sent: Tuesday, March 27, 2007 8:16 AM >> Subject: [lwip-users] Webserver with files >> >> > I'm using the FreeRTOS lwip Rowley demo on a AT91SAM7x evaluation >> > board. >> > The demo webserver is running good! >> > Now I'm making a webserver which loads the html page from a file. >> > (fsdata.c) >> > This file contains the html files like this: >> > >> > static const unsigned char data_index_html[] = { >> > /* /index.html */ >> > 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, >> > 0, 0x3c, 0x21, 0x44, 0x4f, 0x43, 0x54, 0x59, 0x50, 0x45, 0x20, >> > 0x48, 0x54, 0x4d, 0x4c, 0x20, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, >> > 0x20, 0x22, 0x2d, 0x2f, 0x2f, 0x57, 0x33, 0x43, 0x2f, 0x2f, 0x44, >> > 0x54 >> > >> > It is working well, but now I like to change the website (the >> > html). > Which >> > software can I use for generating the html file to the hex codes >> > above? Where can I download this software? >> > >> > Regards, Rick >> >> Download the uIP code. In the source tree you will find a perl >> script called makefsdata which will convert your html files into >> static C structs. >> >> Regards, >> Richard. >> >> + http://www.FreeRTOS.org >> A free real time kernel for 8, 16 and 32bit systems. >> >> + http://www.SafeRTOS.com >> An IEC 61508 compliant real time kernel for safety related systems. >> >> _______________________________________________ >> lwip-users mailing list >> [email protected] >> http://lists.nongnu.org/mailman/listinfo/lwip-users > > I now downloaded the makefsdata file, now how do I get it working?? I > just downloaded Active Perl, but I don't know how to continue or start > the makefsdata file. > > Regards, Rick > Install Perl and make sure it is in your path. In a command prompt navigate to the directory in which makefsdata is located. Type "Perl makefsdata" The script will process the files from the httpd-fs directory. Regards, Richard. + http://www.FreeRTOS.org A free real time kernel for 8, 16 and 32bit systems. + http://www.SafeRTOS.com An IEC 61508 compliant real time kernel for safety related systems. _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
