From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19059 invoked by alias); 2 Nov 2007 19:08:06 -0000 Received: (qmail 19044 invoked by uid 22791); 2 Nov 2007 19:08:05 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Nov 2007 19:08:03 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 4226A1950211; Fri, 2 Nov 2007 13:08:01 -0600 (MDT) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id B830B19500A2; Fri, 2 Nov 2007 13:07:47 -0600 (MDT) Message-ID: <472B7580.4080409@mlbassoc.com> Date: Fri, 02 Nov 2007 19:08:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: C B CC: ecos-discuss@ecos.sourceware.org References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] networking support for my eCos application X-SW-Source: 2007-11/txt/msg00015.txt.bz2 C B wrote: > Wow. Thanks for the quick response. > > I'm using the 2.0 release of eCos, not the latest from CVS although I can easily switch if you think it may be part of my problem (or future ones...) Yes, I would definitely suggest that you update to the CVS tree (release 2.0 is nearing 5 years old!) Once you've done that, I'd also suggest that you try some simple things. This sequence should work and generate a test that you can try on your hardware: % ecosconfig new eb9261 net % ecosconfig tree % make; make -C net/common/current tests TESTS=tests/ping_test Note: it's not clear to me why your tree has its own 'eb9261-net' template as this should not be necessary. Using .ecm files is a much better approach. n.b. of course you can do the steps above using the config tool, but using ecosconfig is much more concise and easier to explain :-) >> Date: Fri, 2 Nov 2007 12:41:25 -0600 >> From: gary@mlbassoc.com >> To: csb_80@hotmail.com >> CC: ecos-discuss@ecos.sourceware.org >> Subject: Re: [ECOS] networking support for my eCos application >> >> C B wrote: >>> I'm new to eCos and am trying to get some simple networking capabilities into an application that I've inherited. The eCos configuration I have appears to have the networking package included and yet when I attempt to link my application against the eCos libs I get several 'undefined reference' type errors. In particular: >>> >>> undefined reference to 'init_all_network_interfaces' >>> undefined reference to 'eth0_up' >>> undefined reference to 'eth0_bootp_data' >>> undefined reference to 'inet_ntoa' >>> >>> It's some simple ftp client side stuff that is generating these errors but all I'd really like to be able to do is create and read data from a socket. >>> >>> I'm using the eCos Configuration Tool Version 2.11 in Windows XP and everything in the configuration builds fine. In the configuration view I have 'Basic networking framework' with 'INET support' checked under it, and 'OpenBSD TCP/IP Stack' and 'FTP client' also there. >>> >>> I've tried to provide the summary of what I'm doing but please ask if there is something I've left out that would be valuable. I've searched the archives and google'd a bunch but I'm unable to figure out a simple explanation for why the networking stuff doesn't seem to make it into my config. >> It doesn't look like the network has been configured. >> >> What eCos sources are you using (latest from anon CVS is recommended) >> Can you send your actual configuration? (use File->Export) >> >> Also, you probably should be using the FreeBSD network stack >> as the OpenBSD stack is very old and no longer maintained. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss