From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17166 invoked by alias); 25 May 2005 09:07:40 -0000 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 Received: (qmail 16810 invoked by uid 22791); 25 May 2005 09:07:30 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 25 May 2005 09:07:30 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Daroi-00064v-BE for ecos-discuss@sources.redhat.com; Wed, 25 May 2005 11:04:44 +0200 Received: from iv.ro ([194.105.28.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2005 11:04:44 +0200 Received: from jani by iv.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2005 11:04:44 +0200 To: ecos-discuss@sources.redhat.com From: Jani Monoses Date: Wed, 25 May 2005 12:44:00 -0000 Message-ID: References: <33253.10.129.11.162.1116958423.squirrel@www.it.iitb.ac.in> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) In-Reply-To: <33253.10.129.11.162.1116958423.squirrel@www.it.iitb.ac.in> Subject: [ECOS] Re: lwip eth doubt........ X-SW-Source: 2005-05/txt/msg00330.txt.bz2 > > the code is as........ > ************************* > static void > init_hw_drivers(void) > { > > cyg_netdevtab_entry_t *t; > > for (t = &__NETDEVTAB__[0]; t != &__NETDEVTAB_END__; t++) { > diag_printf("H/W device name:%s\n",t->name); > if (t->init(t)) { > t->status = CYG_NETDEVTAB_STATUS_AVAIL; > } else { > // What to do if device init fails? > t->status = 0; // Device not [currently] available > } > } > Do you have two NETDEVTAB_ENTRY-s in you platforms devs/eth sources? Another point is that lwip has IP_ADDRs configurable in the CDL but it assumes there's one interface only You'll have to modify the lwip_set_addr() function to cope with multiple interfaces. When it works send a patch :) There no documentation other than the code, but make sure you read io/eth/current/src/lwip as well to understand how initialization takes place Jani -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss