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]

problem building redboot - very strange


hi,

i am facing a problem in building redboot. the redbot is for ARM evaluator 7t
board and i am working on linux 7.1, kernel 2.4.2, gcc 2.95.2(arm-elf-gcc).
i did following things.

ecosconfig new e7t redboot
ecosconfig add flash
ecosconfig tree
make

i got the following error
arm-elf-gcc -mcpu=arm7tdmi -mno-short-load-words -Wl,--gc-sections
-Wl,-static -g -nostdlib
-L/u/ARM/new-ecos/ecos/packages/redboot-work/install/lib -Ttarget.ld -o
/u/ARM/new-ecos/ecos/packages/redboot-work/install/bin/redboot.elf
/u/ARM/new-ecos/ecos/packages/redboot-work/install/lib/version.o
/u/ARM/new-ecos/ecos/packages/redboot-work/install/lib/extras.o: In function
`do_load':
/u/ARM/new-ecos/ecos/packages/redboot/current/src/load.c:337: undefined
reference to `flash_code_overlaps'
/u/ARM/new-ecos/ecos/packages/redboot/current/src/load.c:410: undefined
reference to `flash_code_overlaps'
/u/ARM/new-ecos/ecos/packages/redboot-work/install/lib/extras.o: In function
`fis_create':
/u/ARM/new-ecos/ecos/packages/redboot/current/src/flash.c:603: undefined
reference to `flash_code_overlaps'
/u/ARM/new-ecos/ecos/packages/redboot-work/install/lib/libtarget.a(io_flash_f
lash.o): In function `flash_errmsg':
/u/ARM/new-ecos/ecos/packages/io/flash/current/src/flash.c:417: undefined
reference to `flash_hwr_init'
/u/ARM/new-ecos/ecos/packages/io/flash/current/src/flash.c:445: undefined
reference to `flash_erase_block'
/u/ARM/new-ecos/ecos/packages/io/flash/current/src/flash.c:447: undefined
reference to `flash_hwr_map_error'
/u/ARM/new-ecos/ecos/packages/redboot-work/install/lib/libtarget.a(io_flash_f
lash.o): In function `flash_program':
/u/ARM/new-ecos/ecos/packages/io/flash/current/src/flash.c:274: undefined
reference to `flash_hwr_map_error'
/u/ARM/new-ecos/ecos/packages/io/flash/current/src/flash.c:294: undefined
reference to `flash_program_buf'
collect2: ld returned 1 exit status
make[1]: ***
[/u/ARM/new-ecos/ecos/packages/redboot-work/install/bin/redboot.elf] Error 1
make[1]: Leaving directory
`/u/ARM/new-ecos/ecos/packages/redboot-work/redboot/current'
make: *** [build] Error 2

here are certain interesting results.
1. but if i see load.c file there is no occurence of flash_code_overlaps at
all.
2. i am able to build the redboot image if i dont add flash(i.e without
ecosconfig add flash). in this case the build goes fine.
3. but i am able to build redboot with flash support on a different machine
which is using the same tools.

can some body give some clue to fix this problem

regards,

ravi kumar






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