From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9335 invoked by alias); 9 Nov 2007 18:48:45 -0000 Received: (qmail 9299 invoked by uid 22791); 9 Nov 2007 18:48:38 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc3-s18.bay0.hotmail.com (HELO bay0-omc3-s18.bay0.hotmail.com) (65.54.246.218) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Nov 2007 18:48:29 +0000 Received: from BAY105-W33 ([65.54.224.133]) by bay0-omc3-s18.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 9 Nov 2007 10:48:28 -0800 Message-ID: From: C B To: Date: Fri, 09 Nov 2007 18:48:00 -0000 In-Reply-To: References: <472B7580.4080409@mlbassoc.com> <473426B2.3080907@ecoscentric.com> Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS] RE: networking support for my eCos application X-SW-Source: 2007-11/txt/msg00056.txt.bz2 So of course once I was able to compile and link everything I attempted to = run a simple HelloWorld program on my target hardware. Using the older eCos config that I inherited I was able use arm-elf-egb to = load the program and then execute it and view the output in RedBoot. I tri= ed following the same process only this time I compiled & linked against my= new eCos config and I got no output. I noticed that the older version was= getting a different start address that than new and took a look at the tar= get.ld files for each of the two and they were more different than I expect= ed. In particular I was surprised that the specification of the memory lay= out was MEMORY { ram : ORIGIN =3D 0x20000000, LENGTH =3D 0x00C00000 rom : ORIGIN =3D 0x20C00000, LENGTH =3D 0x00400000 sram : ORIGIN =3D 0x00000100, LENGTH =3D 0x00023F00 } versus this for the older (working) version: MEMORY { ram : ORIGIN =3D 0x20000000, LENGTH =3D 0x02000000 sram : ORIGIN =3D 0x00000000, LENGTH =3D 0x00024000 } Can anyone provide a little clarification on how these files are generated = and what I may have screwed up in my config. Thank you. > From: csb_80@hotmail.com > To: jld@ecoscentric.com > CC: ecos-discuss@ecos.sourceware.org > Date: Fri, 9 Nov 2007 08:32:07 -0500 > Subject: [ECOS] RE: networking support for my eCos application > > > Ugh. I had somehow specified arm-elf-ld rather than arm-elf-gcc as the li= nker. Using arm-elf-gcc fixed the problem. Thanks again for everyone's help. > > Chris > > > >> Date: Fri, 9 Nov 2007 09:21:54 +0000 >> From: jld@ecoscentric.com >> To: csb_80@hotmail.com >> CC: ecos-discuss@ecos.sourceware.org >> Subject: Re: networking support for my eCos application >> >> Chris >> >> C B wrote: >> >>> But, when I try to compile and link my own code I still get these undef= ined references when I try to link with the eCos libs I've built: >>> >>>>>> undefined reference to 'init_all_network_interfaces' >>>>>> undefined reference to 'eth0_up' >>>>>> undefined reference to 'eth0_bootp_data' >>>>>> undefined reference to 'inet_ntoa' >>> >>> The command that gives those errors: >>> arm-elf-ld -L"C:\cygwin\opt\ecos\ecos-cvs\tmp\install\lib" -L"C:\cygwin= \opt\ecos\ecos-cvs\tmp\net\common\current" -L"C:\cygwin\opt\ecos\gnutools\a= rm-elf\arm-elf\lib" -L"C:\cygwin\opt\ecos\gnutools\arm-elf\lib\gcc-lib\arm-= elf\3.2.1" -Ttarget.ld -o"Simple.exe" ./simple.o >>> >>> The ping_test calls init_all_network_interfaces() so I'm not sure why i= t's not found. >> >> I suggest you look at the command line arguments which the eCos build >> system used to successfully link the ping test. Try linking your own >> code similarly at a command line prompt and, assuming the linker >> succeeds, work backwards to see which switches make the difference. >> >> For a start, you should be using "-nostdlib" in your link command and >> you should need to explicitly reference only the lib directory in your >> eCos install tree. >> >> John Dallaway >> eCosCentric Limited > > _________________________________________________________________ > Peek-a-boo FREE Tricks & Treats for You! > http://www.reallivemoms.com?ocid=3DTXT_TAGHM&loc=3Dus > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > _________________________________________________________________ Windows Live Hotmail and Microsoft Office Outlook =96 together at last. =A0= Get it now. http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=3DCL10062= 6971033 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss