public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS]  lwip - Ethernet 2
@ 2003-09-01 10:59 Stuart Park
  0 siblings, 0 replies; only message in thread
From: Stuart Park @ 2003-09-01 10:59 UTC (permalink / raw)
  To: ecos-discuss

Hi,
>
>Just added the lwip package downloaded from the savannah site and have
>added this package into my eCos resopitory. What is the Ethernet net
>package that is to be included to allow Ethernet support. I have tried
>using the 'Common Ethernet Support' package but it gives errors when I
>build it, such as below, is this the right package to use. I am using the
>Intel default target, and am using the old 'current' eCos repository
>(problems with v2 repository).


I use lwip with ecos synthetic target and on my HW with cs8900a. The
only think I had to do by hand is to disable 
CYGPKG_IO_ETH_DRIVERS_STAND_ALONE.
You have 2 eth drivers in ecos - the net and the stand alone (used with
redboot). With lwip you get the third one, it seems to me that your
low level eth driver only supports interrupts when using the standard net
driver (CYGPKG_IO_ETH_DRIVERS_NET) - it may be just a matter of defines.

I would start by changing the
	#ifdef CYGPKG_IO_ETH_DRIVERS_NET
into
	#ifndef CYGPKG_IO_ETH_DRIVERS_STAND_ALONE
in eth_dsr - but it is just a guess since I never used the i82559 driver.

savin

Thanks for that, changed the define in the i82559.c file, configuration now 
builds without errors.

However when I try and use this when making my application (simple test 
application, using makefile supplied with basic1.c, altered to suit), I get 
the following errors.

/******/

/cygdrive/c/workdir1/ecos2/ethery/ecos_install/lib/libtarget.a(net_lwip_tcpip_init.o): 
In function 'IP_ADDR':
/ecos-c/ecoslwip/packages/net/lwip_tcpip/current/src/ecos/init.c:39 multiple 
definition of '__NETDEVTAB__'
/cygdrive/c/workdir/ecos2/ethery/ecos_install/lib/libtarget.a(io_eth_eth_drv.o):/ecos-c/ecoslwip
/packages/io/eth/current/src/lwip/eth_drv.c:206: first defined here

/cygdrive/c/workdir1/ecos2/ethery/ecos_install/lib/libtarget.a(net_lwip_tcpip_init.o): 
In function 'IP_ADDR':
/ecos-c/ecoslwip/packages/net/lwip_tcpip/current/src/ecos/init.c:39 multiple 
definition of '__NETDEVTAB__'
/cygdrive/c/workdir/ecos2/ethery/ecos_install/lib/libtarget.a(io_eth_eth_drv.o):/ecos-c/ecoslwip
/packages/io/eth/current/src/lwip/eth_drv.c:206: first defined here

/*************/

Is this anything to do with the 'ioeth.diff' file that I put in the folder 
'packages/io/eth', given in the lwip readme?

Anyone had this problem before or any idea of how to fix this.

Thanks
Stuart.

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today! 
http://www.msn.co.uk/messenger


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-01 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-01 10:59 [ECOS] lwip - Ethernet 2 Stuart Park

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).