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: i386 problem


Hello.

I installed eCos again, updated the repository and built some tests again...
The problem is really, as Andrew Lunn said, when linking with the pci tests.
Everything is alright when HAL_STARTUP is not the Floppy...

Is there a way to have a .ecc file with network support and http to run from a floppy? what are the packages needed to do this? How can I check the image size so I can fit it to a floppy?

Thank you.

Gonçalo Antunes.



----- Original Message ----- From: "Andrew Lunn" <andrew@lunn.ch>
To: "Gon?alo Antunes" <gmma@gmma.net>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Saturday, April 30, 2005 6:18 PM
Subject: Re: [ECOS] i386 problem



On Sat, Apr 30, 2005 at 04:32:27AM +0100, Gon?alo Antunes wrote:
Hello again!

I tried to start with a plain net template, changed the HAL_STARTUP to
FLOPPY and the error on the "make tests" is the same:

>>/home/gmma/config_install/lib/vectors.o:/tmp/ccfRQjJM.s: undefined
>>reference
>>to 'hal_saved_interrupt_state'
>>make: leaving directory '/home/gmma/config_build'
>>collect2: ld returned 1 exit status

I tried this myself:


$ ecosconfig new pc_rltk8139 net
$ emacs ecos.ecc - FLOPPY startup
$ ecosconfig tree
$ make -s
headers finished
build finished

$ make tests

this bombs when linking the pci tests becasue the floppy startup has
restribted memory and the image is too big:

make[1]: Entering directory `/home/lunn/eCos/work/io/pci/current'
i386-elf-gcc -L/home/lunn/eCos/work/install/lib -Ttarget.ld -o /home/lunn/eCos/work/install/tests/io/pci/current/tests/pci1 tests/pci1.o -g -nostdlib -Wl,--gc-sections -Wl,-static
/opt/ecos/gnutools/i386-elf/bin/../lib/gcc-lib/i386-elf/3.2.1/../../../../i386-elf/bin/ld: address 0xbc1f8 of /home/lunn/eCos/work/install/tests/io/pci/current/tests/pci1 section .bss is not within region ram
/opt/ecos/gnutools/i386-elf/bin/../lib/gcc-lib/i386-elf/3.2.1/../../../../i386-elf/bin/ld: address 0xbc1f8 of /home/lunn/eCos/work/install/tests/io/pci/current/tests/pci1 section .bss is not within region ram
collect2: ld returned 1 exit status


However if i do:

lunn@londo:~/eCos/work$ (cd hal/common/current/ ; make tests)
i386-elf-gcc -c -I/home/lunn/eCos/work/install/include -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current/src -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current/tests -I. -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current/tests/ -finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -g -O2 -ffunction-sections -fdata-sections -fno-exceptions -Wp,-MD,tests/context.tmp -o tests/context.o /home/lunn/eCos/anoncvs-clean/packages/hal/common/current/tests/context.c
i386-elf-gcc -L/home/lunn/eCos/work/install/lib -Ttarget.ld -o /home/lunn/eCos/work/install/tests/hal/common/current/tests/context tests/context.o -g -nostdlib -Wl,--gc-sections -Wl,-static
i386-elf-gcc -c -I/home/lunn/eCos/work/install/include -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current/src -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current/tests -I. -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current/tests/ -finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -g -O2 -ffunction-sections -fdata-sections -fno-exceptions -Wp,-MD,tests/basic.tmp -o tests/basic.o /home/lunn/eCos/anoncvs-clean/packages/hal/common/current/tests/basic.c
i386-elf-gcc -L/home/lunn/eCos/work/install/lib -Ttarget.ld -o /home/lunn/eCos/work/install/tests/hal/common/current/tests/basic tests/basic.o -g -nostdlib -Wl,--gc-sections -Wl,-static
i386-elf-gcc -c -I/home/lunn/eCos/work/install/include -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current/src -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current/tests -I. -I/home/lunn/eCos/anoncvs-clean/packages/hal/common/current/tests/ -finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -g -O2 -ffunction-sections -fdata-sections -fno-exceptions -Wp,-MD,tests/cache.tmp -o tests/cache.o /home/lunn/eCos/anoncvs-clean/packages/hal/common/current/tests/cache.c
i386-elf-gcc -L/home/lunn/eCos/work/install/lib -Ttarget.ld -o /home/lunn/eCos/work/install/tests/hal/common/current/tests/cache tests/cache.o -g -nostdlib -Wl,--gc-sections -Wl,-static


So the hal tests compile fine....

Are you realy sure you have the latest code with no local changes?

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





-- 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]