public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: ?????? <ipv06@163.com>
Cc: ecos-discuss <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] flash build problem
Date: Thu, 04 Aug 2005 07:20:00 -0000	[thread overview]
Message-ID: <20050804072028.GA6049@lunn.ch> (raw)
In-Reply-To: <E1E0TY8-0001IH-00@londo.lunn.ch>

On Thu, Aug 04, 2005 at 08:25:02AM +0800, ?????? wrote:
> I ported my platform from mcb2100 and aim711 in eCos repository. The
> aim711 is made of the template of flash part. But the problem occurs
> when I ld flash. I created or modified some file that is attached.

Looking at the error messages it is very obvious what is wrong. Im
really suprised you cannot see the error yourself. 

The linker is complaining that all the hardware dependant functions
are missing. Where are the hardware dependant functions? They are in
cyg/io/flash_sst_39vfxxx.inl. So how could they be missing? Look at
your code.

// The EasyARM2200 is equipped with one single SST 39VF160 flash chip.

#define CYGPKG_DEVS_FLASH_SST_39VF160
#define CYGNUM_FLASH_INTERLEAVE 1
#define CYGNUM_FLASH_SERIES     1
#define CYGNUM_FLASH_BASE       0x80000000

#ifdef  CYGINT_DEVS_FLASH_SST_39VFXXX_REQUIRED
    #include "cyg/io/flash_sst_39vfxxx.inl"
#endif

// ------------------------------------------------------------------------
// EOF zlg2200_flash.c

If CYGINT_DEVS_FLASH_SST_39VFXXX_REQUIRED is not defined then the
include is not going to happen and so all the functions are
missing. But how is CYGINT_DEVS_FLASH_SST_39VFXXX_REQUIRED going to
get defined? You don't #include anything and don't explicitely #define
it so obviously it is not going to be defined. 

Now go take a look at the code you copied from. Find what you have
deleted which you should of kept but modified.

        Andrew
 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

       reply	other threads:[~2005-08-04  7:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1E0TY8-0001IH-00@londo.lunn.ch>
2005-08-04  7:20 ` Andrew Lunn [this message]
2005-08-04  0:25 吴身国

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050804072028.GA6049@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=ipv06@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).