From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32725 invoked by alias); 24 Aug 2009 20:18:59 -0000 Received: (qmail 32716 invoked by uid 22791); 24 Aug 2009 20:18:58 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_73,RCVD_IN_SORBS_WEB,SPF_PASS X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Aug 2009 20:18:51 +0000 Received: by fg-out-1718.google.com with SMTP id e21so572593fga.21 for ; Mon, 24 Aug 2009 13:18:48 -0700 (PDT) Received: by 10.86.13.7 with SMTP id 7mr3422575fgm.64.1251145128275; Mon, 24 Aug 2009 13:18:48 -0700 (PDT) Received: from smtp.gmail.com ([93.85.56.154]) by mx.google.com with ESMTPS id 4sm3917193fge.17.2009.08.24.13.18.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 Aug 2009 13:18:47 -0700 (PDT) Date: Mon, 24 Aug 2009 20:18:00 -0000 From: Sergei Gavrikov To: Simon Kallweit Cc: ecos-devel@ecos.sourceware.org Subject: Re: lwip 1.3.1 testing Message-ID: <20090824201853.GA10163@ubuntu.local> References: <4A8E48C2.10802@intefo.ch> <20090821184336.GA24882@ubuntu.local> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="cWoXeonUoKmBZSoM" Content-Disposition: inline In-Reply-To: <20090821184336.GA24882@ubuntu.local> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-08/txt/msg00040.txt.bz2 --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 2321 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 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 --cWoXeonUoKmBZSoM Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="lwip.patch" Content-length: 1858 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 #include +#ifdef CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT +#include // HAL_CTRLC_CHECK +#endif + #ifdef CYGPKG_LWIP_ETH #include #include @@ -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 #include +#ifdef CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT +#include // HAL_CTRLC_CHECK +#endif + #ifdef CYGPKG_LWIP_ETH #include #include @@ -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 --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="synth_simple.ecm" Content-length: 171 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 }; --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="synth_seq.ecm" Content-length: 407 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 }; --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="lpc_simple.ecm" Content-length: 108 cdl_component CYGPKG_LWIP_DHCP { user_value 1 }; cdl_option CYGDAT_LWIP_ETH0_DHCP { user_value 1 }; --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="lpc_seq.ecm" Content-length: 344 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 }; --cWoXeonUoKmBZSoM--