On Tue, Jun 06, 2006 at 03:57:26PM +0200, Socrates Socrates wrote:
> Thanks Andrew,
>
> Certainly I am new to embedded systems indeed. I now run:
> /arm-elf-ld -nostartfiles -nodefaultlibs -nostdlib -s -static
> -L/opt/ecos/gnutools/arm-elf/arm-elf/lib
> -L/opt/ecos/gnutools/arm-elf/lib/gcc-lib/arm-elf/3.2.1/ -o test test.o
> -Ttarget.ld
>
> So the size is now down to (~91k):
> -rwxr-xr-x 1 socrates socrates 91364 Jun 6 14:07 test
>
> which I think is still big in my opinion.
and what does arm-elf-size say?
> -b option: The upload always fails until I use the -r option which
> forces me to use the -b option.
> How do I go about getting a succesful upload without using the -r and
> hence -b option?
If you upload the elf file you don't want -r otherwise the raw elf
file will be loaded as is. Redboot knows how to process an elf to
extract the executable code and data.
Andrew