This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: porting Web server in Ecos
- From: Grant Edwards <grante at visi dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 2 May 2005 09:31:32 -0500
- Subject: [ECOS] Re: porting Web server in Ecos
- References: <s2764f1b.050@EMAIL>
>>Yes. The demo worked fine for me, and we've since shipped a
>>lot of units of several different product models that have the
>>GoAhead web server in them.
> I am using ecos 2.0 + Hitachi 7729 Processor combination to
> port Goahead web server. Can you pls tell me about your system
> combination on which Goahed web server is running ?
Various versions of eCos (including 2.0) running on a
half-dozen slightly different ARM7 platforms.
>>>Have you tried enabling the diagnostic messages in the web
>>>server?
>
> No, How to enable this Diagnostic option for web server? Do i
> need to set some #DEFINE for this? Currently I am using
> Diagnostic options on ecos configuration tool.
Somewhere you have a defaultTraceHandler() function. That
function is called by the webserver to log various events.
Change it so it does something useful. By default, the eCos
demo port has an empty function:
void defaultTraceHandler(int level, char_t *buf)
{
/*
* The following code would write all trace regardless of level
* to stdout.
*/
#if 0
if (buf) {
write(1, buf, gstrlen(buf));
}
#endif
}
Try changing that to something like this:
void defaultTraceHandler(int level, char_t *buf)
{
diag_printf("%d: %s\n", level, buf);
}
>>> Have you tried telnetting to the port to see if the server is
>>> listing?
> Yes... But no response from the board
The diagnostic output from the trace handler should tell you
what's going on.
--
Grant Edwards grante Yow! Hello. Just walk
at along and try NOT to think
visi.com about your INTESTINES being
almost FORTY YARDS LONG!!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss