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]

Re: RedBoot and semaphore


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


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