[U-Boot-Users] u-boot compilation problem

Pradip Singh linux_porting at yahoo.co.in
Fri Nov 26 09:53:45 CET 2004


Hi,
 
  Ya I agree that address is wrong 0x000007fc0. Actually in the U-boot example directory Makefile there is a macro LOAD_ADDR. I wanted the hellow_world program to load at address 0x00007fc0. Hence I thought that by changing this macro i may be able to achive my objective. Is my asumption correct? I am relocating the u-boot code at address 0x0078000. Also When i am going through the U-boot examples directory Makfile I find that hello_world is not getting linked  with libcommon.a which is having this printf. So i tried also linking with libcommon.a but it seems it has a lot of dipendencies on other libraries. I donot suspect the tool chain becouse the U-boot builds and also runs fine when i remove the compilation of example directory. I want to compile this hello world example to see that i am able to run a program from memory using go command. 
 
Also I want the printf in Hello_world so that i can see some output on my console.
thanks and regards,
Pradip

Wolfgang Denk <wd at denx.de> wrote:
In message <20041126060937.99611.qmail at web8502.mail.in.yahoo.com> you wrote:
> 
> I am porting the U-boot to my custom board which is arm based. While building the u-boot i get the following compilation error.

What did you change for your port?

> armv5b-softfloat-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00780000 -I/root/isl/heron_old/u-boot-1.1.1/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/crosstool/armv5b-softfloat-
> linux/gcc-3.4.1-glibc-2.3.3/lib/gcc/armv5b-softfloat-linux/3.4.1/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv5te -mbig-endian -Wall
> -Wstrict-prototypes -c -o hello_world.o hello_world.c
> armv5b-softfloat-linux-ld -g -EB -Ttext 0x000007fc0 \
^^^^^^^^^^^

For example, where is this address coming from?

> Any clue what this problem can Be?

Since it compiles find with working toolchains for the existing
boards the problem is either in your modifications to the code and/or
in your toolchain.

Can you compile your modified code using a working toolchain (like ELDK 3.1) ?

Can you compile other ARM boards using your own toolchain?

> --0-87651495-1101449377=:95334
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
> 
> 
> Hi all,


NEVER, NEVER ever post HTML again!

Best regards,

Wolfgang Denk

-- 
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Physician: One upon whom we set our hopes when ill and our dogs when
well. - Ambrose Bierce


Yahoo! India Matrimony: Find your life partneronline.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20041126/ac8e9cf5/attachment.htm 


More information about the U-Boot mailing list