Skip to contentSkip to conversation

Wierd assembler error

U-Boot-Users Vandra Akos 2 participants 2 messages Jun 3, 2007 – Jun 4, 2007

lore
Share & tools
lore
#0 lore raw

I am trying to build U-Boot 1.2.0 for a kb9202 board, but it gives a wierd assembler error:

akos at akosv:~/ARM/bootldr/u-boot-1.2.0$ make kb9202_config Configuring for kb9202 board...
akos at akosv:~/ARM/bootldr/u-boot-1.2.0$ make CROSS_COMPILE=arm-linux-

for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/akos/ARM/bootldr/u-boot-1.2.0/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/akos/ARM/bootldr/u-boot-1.2.0/tools'
make[1]: Entering directory `/home/akos/ARM/bootldr/u-boot-1.2.0/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/akos/ARM/bootldr/u-boot-1.2.0/examples'
make[1]: Entering directory `/home/akos/ARM/bootldr/u-boot-1.2.0/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/akos/ARM/bootldr/u-boot-1.2.0/post'
make[1]: Entering directory `/home/akos/ARM/bootldr/u-boot-1.2.0/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/akos/ARM/bootldr/u-boot-1.2.0/post/cpu'
make -C tools all
make[1]: Entering directory `/home/akos/ARM/bootldr/u-boot-1.2.0/tools'
gcc -Wall -pedantic -idirafter /home/akos/ARM/bootldr/u-boot-1.2.0/include -idirafter /home/akos/ARM/bootldr/u-boot-1.2.0/include2 -idirafter /home/akos/ARM/bootldr/u-boot-1.2.0/include -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c gcc -Wall -pedantic -idirafter /home/akos/ARM/bootldr/u-boot-1.2.0/include -idirafter /home/akos/ARM/bootldr/u-boot-1.2.0/include2 -idirafter /home/akos/ARM/bootldr/u-boot-1.2.0/include -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -O -o img2srec img2srec.o strip img2srec

(..... blah blah blah blah.... )

make[1]: Leaving directory `/home/akos/ARM/bootldr/u-boot-1.2.0/post/cpu' make -C cpu/arm920t start.o
make[1]: Entering directory `/home/akos/ARM/bootldr/u-boot-1.2.0/cpu/arm920t'
arm-linux-gcc -D__ASSEMBLY__ -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x21f00000 -I/home/akos/ARM/bootldr/u-boot-1.2.0/include -fno-builtin -ffreestanding -nostdinc -isystem /home/akos/ARM/tools/lib/gcc/arm-linux/4.0.2/include -pipe -DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -c -o start.o start.S
start.S: Assembler messages:
start.S:185: Error: invalid constant (20200) after fixup start.S:375: Error: invalid constant (28200) after fixup start.S:376: Error: invalid constant (28200) after fixup start.S:381: Error: invalid constant (28200) after fixup start.S:382: Error: invalid constant (28200) after fixup start.S:387: Error: invalid constant (28200) after fixup start.S:388: Error: invalid constant (28200) after fixup start.S:393: Error: invalid constant (28200) after fixup start.S:394: Error: invalid constant (28200) after fixup start.S:399: Error: invalid constant (28200) after fixup start.S:400: Error: invalid constant (28200) after fixup start.S:424: Error: invalid constant (28200) after fixup start.S:425: Error: invalid constant (28200) after fixup start.S:430: Error: invalid constant (28200) after fixup start.S:431: Error: invalid constant (28200) after fixup
make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/home/akos/ARM/bootldr/u-boot-1.2.0/cpu/arm920t'
make: *** [cpu/arm920t/start.o] Error 2

Can you help me with this please?

Thanks in advance,
Akos Vandra

_________________________________________________________________________________

How would you spend $50,000 to create a more sustainable environment in Australia? Go to Yahoo!7 Answers and share your idea.
http://advision.webevents.yahoo.com/aunz/lifestyle/answers/y7ans-babp_reg.html

#1 lore raw

[snip]

Quoted 1 line

start.S:185: Error: invalid constant (20200) after fixup

[snip]

Quoted 1 line

Can you help me with this please?

Try googling on it. ARMs have certain rules about which constants they can reference directly. If you haven't changed any code in start.S, yet it is still giving the error, see what constant it is referencing. Maybe you provided a constant in your board header file that it is trying to use directly.

Signature · 1 line
Zachary P. Landau <[email protected]>