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: Linker Errors


On Wed, Jan 12, 2005 at 04:22:41AM -0700, Kondaiah, Dasari (IE10) wrote:
> Hi All,
> 
> I am facing a problem regarding the jffs2 file system.
> 
> I am trying to compile the jffs2 file for i386 architecture.
> 
> I am able to build target.lib successfully. But while building the tests, I
> am getting following linker errors.
> 
> /ecos-d/workdir/ecos/sleep_test_install/lib/libtarget.a(io_flash_flash.o):
> In function `flash_errmsg':
> make: Leaving directory `/ecos-d/workdir/ecos/sleep_test_build'
> /ecos-d/ecos-2.0/packages/io/flash/v2_0/src/flash.c:484: undefined reference
> to `flash_hwr_init'
> /ecos-d/ecos-2.0/packages/io/flash/v2_0/src/flash.c:484: undefined reference
> to `flash_erase_block'
> /ecos-d/ecos-2.0/packages/io/flash/v2_0/src/flash.c:510: undefined reference
> to `flash_hwr_map_error'
> /ecos-d/ecos-2.0/packages/io/flash/v2_0/src/flash.c:484: undefined reference
> to `flash_program_buf'
> /ecos-d/ecos-2.0/packages/io/flash/v2_0/src/flash.c:508: undefined reference
> to `flash_hwr_map_error'
> collect2: ld returned 1 exit status
> make[1]: ***
> [/ecos-d/workdir/ecos/sleep_test_install/tests/io/pci/v2_0/tests/pci1] Error
> 1
> make: *** [tests] Error 2
> 
> 
> I can find these functions under flash support for different architectures.
> I am adding general flash support package to the build tree.

You need a driver of the flash device on your i386 device. This is
usually made up of two packages. One provides generic support of a
family of flash devices, eg strata, AMD, sst etc, plus you need a part
which is specific to your hardware, which knows the address of the
flash, how wide it is, how many devices etc.

        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


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