This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

lwip - Ethernet 2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]