public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <sergei.gavrikov@gmail.com>
To: Simon Kallweit <simon.kallweit@intefo.ch>
Cc: ecos-devel@ecos.sourceware.org
Subject: Re: lwip 1.3.1 testing
Date: Mon, 24 Aug 2009 20:18:00 -0000	[thread overview]
Message-ID: <20090824201853.GA10163@ubuntu.local> (raw)
In-Reply-To: <20090821184336.GA24882@ubuntu.local>

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

On Fri, Aug 21, 2009 at 09:43:36PM +0300, Sergei Gavrikov wrote:
> On Fri, Aug 21, 2009 at 09:12:02AM +0200, Simon Kallweit wrote:
> > Hi
> >
> > If anyone volunteers, I'd be glad if you could test the current state of  
> > the lwip 1.3.1 port. It has been updated with the latest changes from  
> > the 1.3.1 release. I currently left in my changes for SLIP and PPP (see  
> > my last mail for details), but this should not matter for testing. The  
> > package can be installed by just replacing the existing lwip and eth  
> > drivers packages.
> >
> > http://download.westlicht.ch/lwip-20090821.tar.gz
> 
> Hi Simon,
> 
> I need a bit clarification from you. Does it mean that we should try
> 'lwip_eth' template only on real HW? I stub on 'left in' phrase. Did
> your SLIP/PPP hack leave this tarball? Does it mean what tests of SLIP,
> for example, will be useless just now?

Hi Simon,

Last weekend I tested a bit your lwip 1.3.1 port. Well, that was not any
stress test, just compile and run a few net tests out from the box and
pinging. Short summary the below

  Synth			  ARM-7 (LE)
+ http_simple		+ http_simple
+ http_sequential	+ http_sequntial
+ tcpecho		+ tcpecho

External ping/arping worked for both targets. For the tests I used
configs with DHCP support.

For the followers I attach the ecos minimal configs which I used for
simple and sequential modes for synth and real hardware and a small
patch for simple.c, sequential.c. All build were started as

ecosconfig new <target> lwip_eth

I had got `stack overlow' in GDB with default stack's settings on real
target when I enabled a tracing and turned off optimization, I tried
multipy stack amounts (for interrupts, tcp_thread, eth_thread) x 2, x 4,
but error did not go away.  Perhaps, I should investigate more time for
the issue, but may be in the next weekend.

Thanks for the port!

Regards
Sergei

Appendix

Host and tools details
----------------------
Host		Ubuntu 8.04.3 LTS
eCos		CVS updated + lwIP 1.3.1 package
ecosconfig	3.net (Aug 23 2009 17:00:44)
dhcpd3		V3.0.6

Synth target details
--------------------
GCC		4.2.4
GDB		GNU gdb 6.8-debian
CFLAGS		-g -O2

ARM target details
------------------
BOARD		Olimex LPC-E2294 rev. B
NIC		DAVICOM DM900 32-bits
STARTUP		RAM
ROM monitor	RedBoot+GDB stubs
GCC		arm-eabi-gcc 4.3.2
CFLAGS		-g -O2

[-- Attachment #2: lwip.patch --]
[-- Type: text/x-diff, Size: 1858 bytes --]

diff -r c04951f2b777 net/lwip_tcpip/current/src/ecos/sequential.c
--- a/net/lwip_tcpip/current/src/ecos/sequential.c	Fri Aug 21 20:43:16 2009 +0300
+++ b/net/lwip_tcpip/current/src/ecos/sequential.c	Mon Aug 24 17:27:13 2009 +0300
@@ -75,6 +75,10 @@
 #include <cyg/infra/diag.h>
 #include <cyg/kernel/kapi.h>
 
+#ifdef CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
+#include <cyg/hal/hal_if.h>            // HAL_CTRLC_CHECK
+#endif
+
 #ifdef CYGPKG_LWIP_ETH
 #include <cyg/io/eth/eth_drv.h>
 #include <cyg/io/eth/netdev.h>
@@ -227,7 +231,7 @@
 #endif
                 sc->state &= ~ETH_DRV_NEEDS_DELIVERY;
 #if defined(CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT)
-                was_ctrlc_int = HAL_CTRLC_CHECK(*sc->funs->int_vector(sc),
+                was_ctrlc_int = HAL_CTRLC_CHECK(sc->funs->int_vector(sc),
                                                 (int) sc);
                 if (!was_ctrlc_int) // Fall through and run normal code
 #endif
diff -r c04951f2b777 net/lwip_tcpip/current/src/ecos/simple.c
--- a/net/lwip_tcpip/current/src/ecos/simple.c	Fri Aug 21 20:43:16 2009 +0300
+++ b/net/lwip_tcpip/current/src/ecos/simple.c	Mon Aug 24 17:27:13 2009 +0300
@@ -76,6 +76,10 @@
 #include <cyg/infra/diag.h>
 #include <cyg/kernel/kapi.h>
 
+#ifdef CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
+#include <cyg/hal/hal_if.h>            // HAL_CTRLC_CHECK
+#endif
+
 #ifdef CYGPKG_LWIP_ETH
 #include <cyg/io/eth/eth_drv.h>
 #include <cyg/io/eth/netdev.h>
@@ -291,7 +295,7 @@
 #endif
                 sc->state &= ~ETH_DRV_NEEDS_DELIVERY;
 #if defined(CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT)
-                was_ctrlc_int = HAL_CTRLC_CHECK(*sc->funs->int_vector(sc),
+                was_ctrlc_int = HAL_CTRLC_CHECK(sc->funs->int_vector(sc),
                                                 (int) sc);
                 if (!was_ctrlc_int) // Fall through and run normal code
 #endif

[-- Attachment #3: synth_simple.ecm --]
[-- Type: text/plain, Size: 171 bytes --]

cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH0 {
    user_value 1
};
cdl_component CYGPKG_LWIP_DHCP {
    user_value 1
};
cdl_option CYGDAT_LWIP_ETH0_DHCP {
    user_value 1
};

[-- Attachment #4: synth_seq.ecm --]
[-- Type: text/plain, Size: 407 bytes --]

cdl_option CYGVAR_DEVS_ETH_ECOSYNTH_ETH0 {
    user_value 1
};
cdl_option CYGIMP_LWIP_MODE {
    user_value Sequential
};
cdl_component CYGPKG_LWIP_NETIF_API {
    user_value 1
};
cdl_component CYGPKG_LWIP_NETCONN_API {
    user_value 1
};
cdl_component CYGPKG_LWIP_SOCKET_API {
    user_value 1
};
cdl_component CYGPKG_LWIP_DHCP {
    user_value 1
};
cdl_option CYGDAT_LWIP_ETH0_DHCP {
    user_value 1
};

[-- Attachment #5: lpc_simple.ecm --]
[-- Type: text/plain, Size: 108 bytes --]

cdl_component CYGPKG_LWIP_DHCP {
    user_value 1
};
cdl_option CYGDAT_LWIP_ETH0_DHCP {
    user_value 1
};

[-- Attachment #6: lpc_seq.ecm --]
[-- Type: text/plain, Size: 344 bytes --]

cdl_option CYGIMP_LWIP_MODE {
    user_value Sequential
};
cdl_component CYGPKG_LWIP_NETIF_API {
    user_value 1
};
cdl_component CYGPKG_LWIP_NETCONN_API {
    user_value 1
};
cdl_component CYGPKG_LWIP_SOCKET_API {
    user_value 1
};
cdl_component CYGPKG_LWIP_DHCP {
    user_value 1
};
cdl_option CYGDAT_LWIP_ETH0_DHCP {
    user_value 1
};

  reply	other threads:[~2009-08-24 20:18 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-21  7:11 Simon Kallweit
2009-08-21  7:43 ` John Dallaway
2009-08-21  9:12   ` Edgar Grimberg
2009-08-21 18:43 ` Sergei Gavrikov
2009-08-24 20:18   ` Sergei Gavrikov [this message]
2009-08-25  6:09     ` Simon Kallweit
2009-08-25  7:41       ` Simon Kallweit
2009-08-25 12:08         ` Sergei Gavrikov
2009-08-25 20:33           ` Sergei Gavrikov
2009-08-26  6:38             ` Simon Kallweit
2009-08-26  8:43               ` Sergei Gavrikov
2009-08-26 20:46               ` Sergei Gavrikov
2009-08-27  7:17                 ` Simon Kallweit
2009-08-27  8:03                   ` Sergei Gavrikov
2009-10-25 16:46         ` John Dallaway
2009-10-26 13:00           ` Simon Kallweit
2009-10-26 13:54             ` John Dallaway
2009-10-26 14:29               ` Simon Kallweit
2009-10-26 17:13                 ` John Dallaway
2009-10-27 13:06                   ` Simon Kallweit
2009-11-20 10:24                     ` John Dallaway
2009-12-07 13:41                       ` Simon Kallweit
2009-12-17 10:45                         ` John Dallaway
2010-01-19 12:07                         ` John Dallaway

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090824201853.GA10163@ubuntu.local \
    --to=sergei.gavrikov@gmail.com \
    --cc=ecos-devel@ecos.sourceware.org \
    --cc=simon.kallweit@intefo.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).