It helped. Thanks.
I was building the kernel library with the right compiler but the problem was with my path. After adding the path to XP settings, everything started working. However when I run the program I get the following instead of the program output: Starting program: /ecos-c/ecos-work/PPC_install/a.out core_find_mapping() - access to unmaped address, attach a default map to handle this - addr=0xf000101a nr_bytes=0x1 processor=0xc871c0 cia=0x4514 I don't know how to get around this. Also, let me tell you when I use the config tool to build the library for PowerPC simulator target, I get certain conflicts. I just continue building. Is the above error due to the conflicts? Thanks dranne > Date: Tue, 22 Jan 2008 12:27:14 -0600 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: [ECOS] target.ld error > CC: [EMAIL PROTECTED]; [email protected] > >> I choose the PowerPC simulator target and build it. > > Did you build your kernel library with the PowerPC compiler or your > native compiler (gcc) ? What's the value of > CYGBLD_GLOBAL_COMMAND_PREFIX in your kernel configuration? > > If you don't know how to find the value of CYGBLD_GLOBAL_COMMAND_PREFIX: > 1.) Select Edit -> Find... in the ConfigTool. A find dialog box should pop up. > 2.) Set the "Search In" field to "Macro Names" > 3.) Search for CYGBLD_GLOBAL_COMMAND_PREFIX > > It should be "powerpc-eabi-". If it is, then you've been compiling > with the powerpc-eabi-gcc compiler that's on your Windows machine. > That's a good thing! > > >> My installation or build directory is c:\eCos-Work\PPC_install. >> After doing this and following the user guide, I try to compile the hello.c >> example. >> When I use the powerpc-eabi-gcc command, I get this error: bash: >> powerpc-eabi-gcc: command not found. > > This means that either you don't have have the powerpc-eabi-gcc > compiler, or (more likely) that the command's path is not in your PATH > environment variable. > > Usually the eCos cross compilers reside in C:\cygwin\opt\gnutools. My > powerpc-eabi-gcc resides in: > > C:\cygwin\opt\gnutools\powerpc-eabi\bin\powerpc-eabi-gcc > > Make sure to use a cygwin formatted path (i.e. /cygdrive/c/...). > > Hope this helps, > Mike _________________________________________________________________ Helping your favorite cause is as easy as instant messaging. You IM, we give. http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
