From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5270 invoked by alias); 15 Oct 2003 06:48:06 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 5263 invoked from network); 15 Oct 2003 06:48:04 -0000 Received: from unknown (HELO mail.idtinc.de) (195.30.47.34) by sources.redhat.com with SMTP; 15 Oct 2003 06:48:04 -0000 Received: from DynaPel.com (unknown [10.0.2.109]) by mail.idtinc.de (Postfix on SuSE Linux eMail Server 3.0) with ESMTP id C2849182CF; Wed, 15 Oct 2003 08:48:36 +0200 (CEST) Message-ID: <3F8CEDE2.501@DynaPel.com> Date: Wed, 15 Oct 2003 06:48:00 -0000 From: Eric Doenges User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030626 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dhawal Mer , ecos-discuss References: In-Reply-To: X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [ECOS] Hi, X-SW-Source: 2003-10/txt/msg00236.txt.bz2 Dhawal Mer wrote: > Hi, > Thanx for immediate reply. > Eric as per your info , i have successfully build (libtarget.a) the platf= orm using net package/RAM startup. > But when i try to link the basic.c example application given in chapter12= of 'Embedded software Development with eCos' doc to libtarget.a , i have g= ot the error as given below.The make file for above i have send as attachme= nt (Application named as rb8139). > -------------------------------------------------------------------------= ----------------------------------------- > Administrator@DHAWAL172 /ecos-c/workdir/application > $ make > i386-elf-gcc -nostartfiles -L/cygdrive/c/workdir/rb8139/rb8139_install/li= b -Wl,- > -gc-sections -Wl,--Map -Wl,basic1.map -o basic1 basic1.o -Ttarget.ld -nos= tdlib > /cygdrive/c/workdir/rb8139/rb8139_install/lib/extras.o: In function `__st= atic_in > itialization_and_destruction_0': > /ecos-c/ecos/packages/io/fileio/current/src/misc.cxx:104: undefined refer= ence to > `CYGARC_PCI_DMA_ADDRESS' > /ecos-c/ecos/packages/io/fileio/current/src/misc.cxx:123: undefined refer= ence to > `CYGARC_PCI_DMA_ADDRESS' > /ecos-c/ecos/packages/io/fileio/current/src/misc.cxx:141: undefined refer= ence to > `CYGARC_PCI_DMA_ADDRESS' > /ecos-c/ecos/packages/io/fileio/current/src/misc.cxx:141: undefined refer= ence to > `CYGARC_PCI_DMA_ADDRESS' > /ecos-c/ecos/packages/io/fileio/current/src/misc.cxx:141: undefined refer= ence to > `CYGARC_PCI_DMA_ADDRESS' > collect2: ld returned 1 exit status > make: *** [basic1] Error 1 > -------------------------------------------------------------------------= --------------------- > Please mail me where i am going wrong. I suspect you are using and older version of eCos that does not have the CYGARC_PCI_DMA_ADDRESS macro, which was added just a month or two ago, You need to either a) Get the latest version of eCos from CVS (see the eCos home page for details on how to do this). I would strongly suggest doing this since eCos is being continually improved. b) As a 'quick fix', add the following to <...>/packages/io/pci/current/include/pci.h: // Map a logical (CPU local) address to one used by a PCI master // Normally, this is just the physical address of the object, but // it may differ if the platform has different address maps from // the CPU side vs. the PCI side #ifndef CYGARC_PCI_DMA_ADDRESS #define CYGARC_PCI_DMA_ADDRESS(_x_) CYGARC_PHYSICAL_ADDRESS(_x_) #endif > I have also tried out configuration 'i386 pc with 8139' with 'redboot',st= ill redboot Networking options remains disabled.Than how i should ableto en= abled the network debugging ? I don't know, since I've never used redboot (my target doesn't support it, unfortunately). > Kindly also maill me the detail, how i can boot my system using 'libtarge= t.a' generated by your suggested configuration. You must write an application that is linked with libtarget.a, and then boot that on your target. See the eCos user's guide; it has a small tutorial that shows how to do this. And/or get the book "Embedded Software Development with eCos" by Anthony J. Massa, which explains in some detail how to get Redboot working. >=20 > Regards, > Dhawal. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D P.S.: I've also sent this to ecos-discuss, so other people can contribute/benefit as well. --=20 -------------------------------------------------------------------- | Eric Doenges | DynaPel Laboratories GmbH | | Tel: +49 89 962428 23 | Fraunhoferstrasse 9/2 | | Fax: +49 89 962428 90 | D - 85737 Ismaning, Germany | -------------------------------------------------------------------- -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss