public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] GoAhead Web Server
@ 2000-10-25 15:14 amassa
  2000-10-25 15:35 ` Gary Thomas
  0 siblings, 1 reply; 11+ messages in thread
From: amassa @ 2000-10-25 15:14 UTC (permalink / raw)
  To: ecos-discuss

I am developing on Windows NT4 for the MBX860 platform.  I am in the process
of compiling the goahead web server.  I am finding that I need to make quite
a few changes, which seems to contradict previous messages posted to this
board.

I was wondering if someone has compiled in the goahead web server and
documented the changes they needed to make in order to get it working on
their system.

Thanks.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [ECOS] GoAhead Web Server
  2000-10-25 15:14 [ECOS] GoAhead Web Server amassa
@ 2000-10-25 15:35 ` Gary Thomas
  0 siblings, 0 replies; 11+ messages in thread
From: Gary Thomas @ 2000-10-25 15:35 UTC (permalink / raw)
  To: amassa; +Cc: ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

 
On 25-Oct-2000 amassa@cts.com wrote:
> I am developing on Windows NT4 for the MBX860 platform.  I am in the process
> of compiling the goahead web server.  I am finding that I need to make quite
> a few changes, which seems to contradict previous messages posted to this
> board.
> 
> I was wondering if someone has compiled in the goahead web server and
> documented the changes they needed to make in order to get it working on
> their system.

I did have to make some patches for version 2.1 against the latest eCos.
With these [attached] patches, it runs fine on the MBX.



[-- Attachment #2: diffs --]
[-- Type: text/x-diff, Size: 5760 bytes --]

diff --exclude=*.[oiasd] --exclude=*~ -ur GoAhead.ORIG/ECOS/Makefile GoAhead/ECOS/Makefile
--- GoAhead.ORIG/ECOS/Makefile	Thu May 18 15:20:10 2000
+++ GoAhead/ECOS/Makefile	Tue Sep 19 09:02:16 2000
@@ -6,16 +6,17 @@
 # These definitions come from your eCos install tree
 #
 DEBUG	:= -g -Wall -O2
+#DEBUG	:= -g -Wall -O2 -DB_STATS -DB_VERIFY_CAUSES_SEVERE_OVERHEAD
 
 # For Cirrus Logic EDB72xx board
-PKG_INSTALL_DIR := /work/net_test/install
-COMMAND_PREFIX := arm-elf-
-CFLAGS := -mcpu=arm7tdmi -D__EDB7209 -D__EDB7212 $(DEBUG)
+#PKG_INSTALL_DIR := /work/assabet/test/install
+#COMMAND_PREFIX := arm-elf-
+#CFLAGS := -mcpu=strongarm1100 $(DEBUG)
 
 # For Motorola PowerPC MBX/860
-##PKG_INSTALL_DIR := /work/net_mbx/install
-##COMMAND_PREFIX := powerpc-eabi-
-##CFLAGS := -mcpu=860 -msoft-float $(DEBUG)
+PKG_INSTALL_DIR := /work/mbx/test/install
+COMMAND_PREFIX := powerpc-eabi-
+CFLAGS := -mcpu=860 -msoft-float $(DEBUG)
 
 # 
 # These should not need to be changed
@@ -75,7 +76,7 @@
 #
 #	Primary link
 #
-$(NAME): Makefile  main.o $(ARCH)
+$(NAME): Makefile  main.o $(ARCH) $(PKG_INSTALL_DIR)/lib/libtarget.a $(PKG_INSTALL_DIR)/lib/libextras.a
 	$(CC) -o $(NAME) $(CFLAGS) $(IFLAGS) \
 		main.o $(ARCH) $(LDFLAGS) 
 
diff --exclude=*.[oiasd] --exclude=*~ -ur GoAhead.ORIG/ECOS/main.c GoAhead/ECOS/main.c
--- GoAhead.ORIG/ECOS/main.c	Thu May 18 15:20:10 2000
+++ GoAhead/ECOS/main.c	Tue Sep 19 08:06:52 2000
@@ -41,7 +41,7 @@
 extern void defaultTraceHandler(int level, char_t *buf);
 
 #if B_STATS
-#error WARNING:  B_STATS directive is not supported in this OS!
+//#error WARNING:  B_STATS directive is not supported in this OS!
 #endif
 
 /*********************************** Code *************************************/
@@ -57,7 +57,7 @@
  *	60KB allows for several concurrent page requests.  If more space
  *	is required, malloc will be used for the overflow.
  */
-	bopen(NULL, (60 * 1024), B_USE_MALLOC);
+	bopen(NULL, (160 * 1024), B_USE_MALLOC);
 
 /*
  *	Initialize the web server
@@ -120,7 +120,8 @@
 /*
  *	Configure the web server options before opening the web server
  */
-	websSetDefaultPage(T("default.asp"));
+//	websSetDefaultPage(T("default.asp"));
+	websSetDefaultPage(T("index.html"));
 	websSetPassword(password);
 
 /* 
@@ -239,6 +240,7 @@
 #endif
 }
 
+#if 0
 /******************************************************************************/
 /*
  *	Wrappers for depreciated socket I/O functions
@@ -253,5 +255,6 @@
 {
     return read(s, buf, len);
 }
+#endif
 
 /******************************************************************************/
Only in GoAhead/ECOS: web_files
Only in GoAhead/ECOS: web_files.00
Only in GoAhead/ECOS: webcomp
Only in GoAhead/ECOS: webrom.c
Only in GoAhead/ECOS: webs
diff --exclude=*.[oiasd] --exclude=*~ -ur GoAhead.ORIG/balloc.c GoAhead/balloc.c
--- GoAhead.ORIG/balloc.c	Thu May 18 15:20:10 2000
+++ GoAhead/balloc.c	Tue Sep 19 08:06:52 2000
@@ -207,7 +207,11 @@
  *	queues for a suitable one.
  */
 
-void *balloc(B_ARGS_DEC, int size)
+#if B_STATS
+void *_balloc(char *file, int line, int size)
+#else
+void *_balloc(int size)
+#endif
 {
 	bType	*bp;
 	int		q, memSize;
@@ -353,6 +357,38 @@
 	return (void*) ((char*) bp + sizeof(bType));
 }
 
+static void 
+_bstatsShow(int handle, char_t *fmt, ...)
+{
+	va_list		args;
+	va_start(args, fmt);
+	vprintf(fmt, args);
+	va_end(args);
+}
+
+void *balloc(B_ARGS_DEC, int size)
+{
+#if B_STATS
+    void *res = _balloc(B_ARGS, size);
+#else
+    void *res = _balloc(size);
+#endif
+//    printf("balloc(%d) = 0x%x\n", size, res);
+    if (res == (void *)0) {
+        printf("balloc(%d) = 0x%x\n", size, res);
+#if B_STATS
+        bstats(0, _bstatsShow);
+#endif
+    }
+    if (bFreeLeft < 1024) {
+        printf("** Warning - memory low\n");
+#if B_STATS
+        bstats(0, _bstatsShow);
+#endif
+    }
+    return res;
+}
+
 /******************************************************************************/
 /*
  *	Free a block back to the relevant free q. We don't free back to the O/S
@@ -364,6 +400,8 @@
 {
 	bType	*bp;
 	int		q, memSize;
+
+//        printf("bfree(0x%x)\n", mp);
 
 #if B_VERIFY_CAUSES_SEVERE_OVERHEAD
 	verifyBallocSpace();
diff --exclude=*.[oiasd] --exclude=*~ -ur GoAhead.ORIG/default.c GoAhead/default.c
--- GoAhead.ORIG/default.c	Thu May 18 15:20:10 2000
+++ GoAhead/default.c	Tue Sep 19 08:06:53 2000
@@ -45,6 +45,7 @@
 	websStatType	sbuf;
 	char_t			*lpath, *tmp, *date;
 	int				bytes, flags, nchars;
+        int was_dir = 0;
 
 	a_assert(websValid(wp));
 	a_assert(url && *url);
@@ -64,12 +65,13 @@
 	nchars = gstrlen(lpath) - 1;
 	if (lpath[nchars] == '/' || lpath[nchars] == '\\') {
 		lpath[nchars] = '\0';
+                was_dir = 1;
 	}
 
 /*
  *	If the file is a directory, redirect using the nominated default page
  */
-	if (websPageIsDirectory(lpath)) {
+	if (was_dir || websPageIsDirectory(lpath)) {
 		nchars = gstrlen(path);
 		if (path[nchars-1] == '/' || path[nchars-1] == '\\') {
 			path[--nchars] = '\0';
@@ -84,6 +86,7 @@
 /*
  *	Open the document. Stat for later use.
  */
+        printf("Opening %s\n", lpath);
 	if (websPageOpen(wp, lpath, path, SOCKET_RDONLY | SOCKET_BINARY,
 				0666) < 0) {
 			websError(wp, 400, 
diff --exclude=*.[oiasd] --exclude=*~ -ur GoAhead.ORIG/uemf.h GoAhead/uemf.h
--- GoAhead.ORIG/uemf.h	Thu May 18 15:20:10 2000
+++ GoAhead/uemf.h	Tue Sep 19 06:38:07 2000
@@ -148,6 +148,7 @@
 	#include	<time.h>
 	#include	<network.h>
 	#include	<errno.h>
+        #define         NFDBITS  __NFDBITS
 #endif /* ECOS */
 
 /********************************** Includes **********************************/
@@ -199,7 +200,7 @@
 #endif /* LINUX && ! _STRUCT_TIMEVAL */
 
 #if ECOS
-	#define		O_RDONLY		1
+//	#define		O_RDONLY		1
 	#define		O_BINARY		2
 
 	#define		__NO_PACK		1

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ECOS] goAhead web server
  2004-05-23 23:18 [ECOS] goAhead web server baljeet singh
@ 2004-05-24  7:21 ` mohanlal jangir
  0 siblings, 0 replies; 11+ messages in thread
From: mohanlal jangir @ 2004-05-24  7:21 UTC (permalink / raw)
  To: baljeet singh, ecos-discuss

It's already ported on eCos. You just need to edit the Makefile for your
environment to link with eCos lib.

Regards
Mohanlal

----- Original Message -----
From: "baljeet singh" <baljeet45@yahoo.com>
To: <ecos-discuss@sources.redhat.com>
Sent: Sunday, May 23, 2004 10:11 PM
Subject: [ECOS] goAhead web server


> All,
> Is goAhead webserver part of any package in the ecos
> repository?
> Does anyone have a step by step procedure to include
> this on a system running ecos.
> Thanks,
> B singh
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Domains - Claim yours for only $14.70/year
> http://smallbusiness.promotions.yahoo.com/offer
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ECOS] goAhead web server
@ 2004-05-23 23:18 baljeet singh
  2004-05-24  7:21 ` mohanlal jangir
  0 siblings, 1 reply; 11+ messages in thread
From: baljeet singh @ 2004-05-23 23:18 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 477 bytes --]

All,
Is goAhead webserver part of any package in the ecos
repository?
Does anyone have a step by step procedure to include
this on a system running ecos.
Thanks,
B singh


	
		
__________________________________
Do you Yahoo!?
Yahoo! Domains – Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [ECOS] GoAhead Web server
@ 2002-11-20  9:07 Anthony Massa
  0 siblings, 0 replies; 11+ messages in thread
From: Anthony Massa @ 2002-11-20  9:07 UTC (permalink / raw)
  To: ecos-discuss; +Cc: marheas

I integrated the GoAhead web server back when it was version 2.1 on an MBX
development board and it worked out fine.  I didn't get into optimizing the
code.

I also wrote an article about the integration process of the GoAhead
WebServer and eCos for the November issue of Doctor Dobb's Journal.  You can
find it here:

http://www.ddj.com/articles/2002/0211/

Hope this helps,

Anthony


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ECOS] GoAhead Web server
  2002-11-20  0:59   ` Andrew Lunn
@ 2002-11-20  1:14     ` sandeep
  0 siblings, 0 replies; 11+ messages in thread
From: sandeep @ 2002-11-20  1:14 UTC (permalink / raw)
  Cc: eCos Discussion


>>>I would like to ask if anyone here had already tried to use the open source
>>>GoAhead Web Server using assabet and eCos?  What was your experience in
>>>building the application ?  How was the support for GoAhead ?  How did it
>>>perform ?  
>>>
>>>
>>We have run this server, but it was many years ago.  I've not
>>tried it recently, but that older version ran fine.
>>
> 
> I played with it a few months ago. It seemed rather slow, but i never
> spent the time to work out why. 
> 
> I also had problems with GoAheads built in ROM file system when used
> with Lynx. Lynx added a leading /. I don't remember which, but it
> caused the ROM filesystem to fail to find the file. This worked OK for
> Nutscape.


we had tried goahead v2.14 and it worked okay for us. we had used IE/NETSCAPE 
and wget sometimes more than one instances of each at same time. though not on 
assabet. we also made changes in goahead (also posted on goahead news server) to 
make it use eCos ROMFS rather than goahead's WebROMFS.



-- 
regards
sandeep
--------------------------------------------------------------------------
Science is what happens when preconception meets verification.
--------------------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ECOS] GoAhead Web server
  2002-11-20  0:53 ` Gary Thomas
@ 2002-11-20  0:59   ` Andrew Lunn
  2002-11-20  1:14     ` sandeep
  0 siblings, 1 reply; 11+ messages in thread
From: Andrew Lunn @ 2002-11-20  0:59 UTC (permalink / raw)
  To: Gary Thomas; +Cc: rhea santos, eCos Discussion

On Wed, Nov 20, 2002 at 01:50:27AM -0700, Gary Thomas wrote:
> On Mon, 2002-11-18 at 22:52, rhea santos wrote:
> > 
> > hi!
> > I would like to ask if anyone here had already tried to use the open source
> > GoAhead Web Server using assabet and eCos?  What was your experience in
> > building the application ?  How was the support for GoAhead ?  How did it
> > perform ?  
> > 
> 
> We have run this server, but it was many years ago.  I've not
> tried it recently, but that older version ran fine.

I played with it a few months ago. It seemed rather slow, but i never
spent the time to work out why. 

I also had problems with GoAheads built in ROM file system when used
with Lynx. Lynx added a leading /. I don't remember which, but it
caused the ROM filesystem to fail to find the file. This worked OK for
Nutscape.

        Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ECOS] GoAhead Web server
  2002-11-19 12:53 [ECOS] GoAhead Web server rhea santos
@ 2002-11-20  0:53 ` Gary Thomas
  2002-11-20  0:59   ` Andrew Lunn
  0 siblings, 1 reply; 11+ messages in thread
From: Gary Thomas @ 2002-11-20  0:53 UTC (permalink / raw)
  To: rhea santos; +Cc: eCos Discussion

On Mon, 2002-11-18 at 22:52, rhea santos wrote:
> 
> hi!
> I would like to ask if anyone here had already tried to use the open source
> GoAhead Web Server using assabet and eCos?  What was your experience in
> building the application ?  How was the support for GoAhead ?  How did it
> perform ?  
> 

We have run this server, but it was many years ago.  I've not
tried it recently, but that older version ran fine.

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [ECOS] GoAhead Web server
@ 2002-11-19 12:53 rhea santos
  2002-11-20  0:53 ` Gary Thomas
  0 siblings, 1 reply; 11+ messages in thread
From: rhea santos @ 2002-11-19 12:53 UTC (permalink / raw)
  To: eCos Discussion


[-- Attachment #1.1: Type: Text/Plain, Size: 271 bytes --]


hi!
I would like to ask if anyone here had already tried to use the open source
GoAhead Web Server using assabet and eCos?  What was your experience in
building the application ?  How was the support for GoAhead ?  How did it
perform ?  

Thanks in advance...

[-- Attachment #1.2: Type: Text/HTML, Size: 2015 bytes --]

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><html>
<head>
<meta name="GENERATOR" content="IncrediMail 1.0">
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER>2.0</X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->

</head>

<BODY background="" bgColor=#ffffff style="BACKGROUND-POSITION: 0px 0px; FONT-FAMILY: Arial; FONT-SIZE: 10pt; MARGIN: 1px" scroll=yes ORGYPOS="0" X-FVER="2.0">
<TABLE border=0 cellPadding=0 cellSpacing=0 id=INCREDIMAINTABLE width="95%">
<TR>

<TD id=INCREDITEXTREGION width="100%" style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; PADDING-LEFT: 7px; PADDING-RIGHT: 7px" 
   >
      <DIV>&nbsp;</DIV>
      <DIV>hi!</DIV>
      <DIV>I would like to ask if anyone here had already tried to use the open 
      source GoAhead Web Server using assabet and eCos?&nbsp; What was your 
      experience in building the application ?&nbsp; How was the support for 
      GoAhead ?&nbsp; How did it perform ?&nbsp; </DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Thanks in advance...</DIV></TD>
</TR>

<TR>
<TD id=INCREDIFOOTER width="100%">

	<TABLE cellPadding=0 cellSpacing=0 width="100%">
	<TR>
	<TD width="100%"></TD>
	<TD align=middle id=INCREDISOUND vAlign=bottom></TD>
	<TD align=middle id=INCREDIANIM vAlign=bottom></TD>
	</TR>
	</TABLE>

</TD>
</TR>

</TABLE><SPAN 
id=IncrediStamp><SPAN dir=ltr><FONT face="Arial, Helvetica, sans-serif" 
size=2>____________________________________________________<BR><FONT 
face="Comic Sans MS" size=2><A 
href="http://www.incredimail.com/redir.asp?ad_id=309&amp;lang=9"><IMG 
align=baseline alt="" border=0 hspace=0 
src="cid:A901A8E5-FB97-11D6-A4A0-00A0241C12F2"></A>&nbsp; <I>IncrediMail</I> - 
<B>Email has finally evolved</B> - </FONT><A 
href="http://www.incredimail.com/redir.asp?ad_id=309&amp;lang=9"><FONT 
face="Times New Roman" size=3><B><U>Click 
Here</U></B></FONT></A></SPAN></SPAN></FONT>
</BODY>
</html>

[-- Attachment #2: Type: image/gif, Size: 494 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [ECOS] GoAhead Web Server
  2000-10-25 16:25 amassa
@ 2000-10-25 17:01 ` Gary Thomas
  0 siblings, 0 replies; 11+ messages in thread
From: Gary Thomas @ 2000-10-25 17:01 UTC (permalink / raw)
  To: amassa; +Cc: ecos-discuss

On 25-Oct-2000 amassa@cts.com wrote:
> What is the output from this compile of the goahead web server - is it a
> webs.exe file as a stand alone app?
>

Yes.
 
> If I wanted to integrate it into my app do I just use the libwebs.a file and
> include it in my link?
> 
> I guess I would need to then take the steps that are taken in ecos/main.c to
> make sure the web server is initialized, right?
> 

That should work.

> Thanks.
> 
> Gary Thomas <gthomas@redhat.com> writes:
>>On 25-Oct-2000 amassa@cts.com wrote:
>>> I am developing on Windows NT4 for the MBX860 platform.  I am in the
> process
>>> of compiling the goahead web server.  I am finding that I need to make
> quite
>>> a few changes, which seems to contradict previous messages posted to
> this
>>> board.
>>> 
>>> I was wondering if someone has compiled in the goahead web server and
>>> documented the changes they needed to make in order to get it working on
>>> their system.
>>
>>I did have to make some patches for version 2.1 against the latest eCos.
>>With these [attached] patches, it runs fine on the MBX.
>>
>>
>>
>>
>>Attachment: diffs (application/octet-stream)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [ECOS] GoAhead Web Server
@ 2000-10-25 16:25 amassa
  2000-10-25 17:01 ` Gary Thomas
  0 siblings, 1 reply; 11+ messages in thread
From: amassa @ 2000-10-25 16:25 UTC (permalink / raw)
  To: gary, Gary Thomas, ecos-discuss

What is the output from this compile of the goahead web server - is it a
webs.exe file as a stand alone app?

If I wanted to integrate it into my app do I just use the libwebs.a file and
include it in my link?

I guess I would need to then take the steps that are taken in ecos/main.c to
make sure the web server is initialized, right?

Thanks.

Gary Thomas <gthomas@redhat.com> writes:
>On 25-Oct-2000 amassa@cts.com wrote:
>> I am developing on Windows NT4 for the MBX860 platform.  I am in the
process
>> of compiling the goahead web server.  I am finding that I need to make
quite
>> a few changes, which seems to contradict previous messages posted to
this
>> board.
>> 
>> I was wondering if someone has compiled in the goahead web server and
>> documented the changes they needed to make in order to get it working on
>> their system.
>
>I did have to make some patches for version 2.1 against the latest eCos.
>With these [attached] patches, it runs fine on the MBX.
>
>
>
>
>Attachment: diffs (application/octet-stream)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-05-24  4:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-25 15:14 [ECOS] GoAhead Web Server amassa
2000-10-25 15:35 ` Gary Thomas
2000-10-25 16:25 amassa
2000-10-25 17:01 ` Gary Thomas
2002-11-19 12:53 [ECOS] GoAhead Web server rhea santos
2002-11-20  0:53 ` Gary Thomas
2002-11-20  0:59   ` Andrew Lunn
2002-11-20  1:14     ` sandeep
2002-11-20  9:07 Anthony Massa
2004-05-23 23:18 [ECOS] goAhead web server baljeet singh
2004-05-24  7:21 ` mohanlal jangir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).