This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: i386 pc target net template problem
- To: John <john at imining dot com dot tw>
- Subject: Re: [ECOS] i386 pc target net template problem
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 13 Mar 2001 21:07:23 +0000
- Cc: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <NDBBKMEDOKEJKFEDGCLOEEOHCEAA.john@imining.com.tw>
John wrote:
>
> Hi all,
>
> I have downloaded the latest version of ecos (ecos,net,snmp) from anonymous cvs.
> My configuration tool version is 1.3.1.2.
> Repository path has been changed to the current version ecos.
> I build ecos with i386 pc target net template.
>
> 1. I can not compile tcp_lo_test.c test program.
> What packages should I add?
> I list the error messges below.
See below.
> 2. My target pc uses lan card with Intel 82559 ethernet controller.
> But I find that Intel 82559 ethernet driver is not in the packages list of net template.
> When I add Intel 82559 ethernet driver into the package list of net template, there is nothing added.
> Why?
If you are using the PC target, you will need Fabrice Gautier's patches to
get an 82559 driver. Look in the ecos-discuss list archives for details.
http://sources.redhat.com/ml/ecos-discuss
> 3. Because the lan card is PCI interface.
> Should I add PCI configuration library?
Again, get Fabrice's patches.
> Thanks in advance.
>
> Below are compile error messages:
>
> bash.exe-2.04$ i386-elf-gcc -g -I/d/john/ecos-work/i386_n01_install/include tcp
> _lo_test.c -L/d/john/ecos-work/i386_n01_install/lib -Ttarget.ld -nostdlib
> In file included from /d/john/ecos-work/i386_n01_install/include/network.h:63,
> from tcp_lo_test.c:51:
> /d/john/ecos-work/i386_n01_install/include/sys/param.h:120: sys/simplelock.h: No
[snip]
Don't build them that way. Instead enable the CDL option
CYGPKG_NET_BUILD_TESTS. This will ensure they are built with the correct
options - in particular -D__ECOS.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine