From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13814 invoked by alias); 3 Apr 2006 13:14:10 -0000 Received: (qmail 13805 invoked by uid 22791); 3 Apr 2006 13:14:09 -0000 X-Spam-Check-By: sourceware.org Received: from Unknown (HELO mail.maxt.com) (207.61.20.50) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Apr 2006 13:14:08 +0000 Received: from cygnus ([207.61.20.54]) by mail.maxt.com (Merak 4.2.1) with ESMTP id MYE73786 for ; Mon, 03 Apr 2006 09:01:25 -0500 From: "Michael Grimard" To: Date: Mon, 03 Apr 2006 13:14:00 -0000 Message-ID: <002401c65720$7b5a18f0$8c0a0a0a@cygnus> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Trouble using lwIP (driver crash...) X-SW-Source: 2006-04/txt/msg00004.txt.bz2 Hi, =A0 I have downloaded the latest source for eCos with the ported version of lwIP (1.1.1) and I have some trouble with it. With the eCos Configuration Tool, I choose i386 PC target with i82559 ethernet template with the lwip_eth package and this configuration doesn=92t compile. I got =93cyg/fileio/limits.h: No such file or directory=94 error. = In fact, the directory cyg/fileio has not been created by the config tool. I added the POSIX File IO compatibility layer package and now eCos builds without errors. I guess that this package should be included by default=85 I never used lwIP so I wanted to start with the nc_test_xxx examples to test it, but nc_test_master.c is not given, so I started porting it to use lwIP. The biggest problem I had with the code was that gethostbyname() and struct hostent that are undefined. struct hostent is defined in netdb.h or dns.h. I don=92t have dns.h (the directory =93ns=94 has not been created by the config tool), so I must use netdb.h, but by doing this, gethostbyname() gets defined to a function returning NULL=85 That=92s not really what I was expecting=85 Does lwIP supports a call to gethostbyname()? If yes, how can I do it? For now, I=92m using the IP4_ADDR macro and nc_test_master compiles. Now=85 my real problem. Is anybody have used lwIP with the i82559 driver? When I run nc_test_master, the first packet sent triggers the ARP Protocol. An ARP Request is sent, the reply from the slave is sent and the master sends the first packet (NC_REQUEST_TCP_ECHO), but when the master receives the ACK from the slave, I got: ASSERT FAIL: <5>if_i82559.c [2008]PacketRxReady() No prev EL Can anyone help me with this? If someone has already the nc_test_master.c file modified for lwIP and can send it to me, I will try it to see if it is the modification I made to the nc_test_master.c file that causes this or something else (maybe eth_drv.c?). Thanks, Michael -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss