This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: RedBoot and semaphore
- From: Mark Salter <msalter at redhat dot com>
- To: Nickolay <nickolay at protei dot ru>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 01 Apr 2005 08:47:15 -0500
- Subject: Re: [ECOS] RedBoot and semaphore
- Organization: Red Hat, Inc.
- References: <424D31D6.5020401@protei.ru>
On Fri, 2005-04-01 at 15:34 +0400, Nickolay wrote:
> Hallo!
>
> What last ecos version, that successfuly builded with IXP425 NPE support
> from Intel?
> I did try build last ecos version from CVS with Intel's
> CYGPKG_DEVS_ETH_INTEL_NPE and
> CYGPKG_DEVS_ETH_ARM_IXDP425_NPE. But when compile, has some error:
>
> In file included from
> /home/nickolay/ecos/build1/install/include/os_datatypes.h:168,
> from
> /home/nickolay/ecos/build1/install/include/ix_ossl.h:170,
> from
> /home/nickolay/ecos/packages/devs/eth/intel/npe/v1_4/src/if_npe.c:72:
> /opt/montavista/previewkit/arm/xscale_le/target/usr/include/asm/semaphore.h:20:
> error: parse error before "wait_queue_head_t"
>
> But wait_queue_head_t really defined only with -D__KERNEL__, but ecos
> compile without this flag.
The problem seems to be that you are using a linux toolchain. This won't
work because the NPE software sees the __linux__ define and thinks its
building for linux, not RedBoot. You really need to use an xscale-elf
or arm-elf toolchain, not a toolchain meant to build linux apps.
--Mark
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss