[U-Boot-Users] U-boot for MIPS problems compiling...

Chris Jones cjones at sutus.com
Thu Sep 16 20:07:15 CEST 2004


Lief;

On Thu, Sep 16, 2004 at 11:37:48AM +0200, Leif Lindholm wrote:
> Could you give a more detailed description of your problems?
> 
> I had some problems finding working versions of gcc/binutils, but
> finally succeeded with binutils 2.13 and gcc 3.2.3.

<SNIP>

> 		Leif

Thanks so much for your quick reply. I was going to do some work on this
board as well independently in attempt to see if I can't get the machine to
boot from an ide HDD. I'll keep bugging you for the patches offline, 
but for the benefit of everyone else I'll elaborate a little more here:

Cross-compiling from x86 using: a custom built (crosstool) toolchain
gcc3.3.2-glibc2.3.2-binutils-2.15; I get this error:

make[1]: Leaving directory `/home/cjones/dev/boot/u-boot-1.1.1/post/cpu'
mipsel-unknown-linux-gnu-gcc -Wa,-gstabs -D__ASSEMBLY__ -g  -Os
-D__KERNEL__ -DTEXT_BASE=0xbfc00000
-I/home/cjones/dev/boot/u-boot-1.1.1/include -fno-builtin -ffreestanding
-nostdinc -isystem /usr/lib/gcc-lib/i486-linux/3.3.4/include -pipe
-DCONFIG_MIPS -D__MIPS__ -mips32 -c -o cpu/mips/start.o
/home/cjones/dev/boot/u-boot-1.1.1/cpu/mips/start.S
/home/cjones/dev/boot/u-boot-1.1.1/cpu/mips/start.S: Assembler messages:
/home/cjones/dev/boot/u-boot-1.1.1/cpu/mips/start.S:246: Error: Cannot
branch to undefined symbol.
/home/cjones/dev/boot/u-boot-1.1.1/cpu/mips/start.S:251: Error: Cannot
branch to undefined symbol.
/home/cjones/dev/boot/u-boot-1.1.1/cpu/mips/start.S:263: Error: Cannot
branch to undefined symbol.
make: *** [cpu/mips/start.o] Error 1

I've seen other people compiling for the Au1x00 series have this similar
problem.

Not unsurprisingly while compiling natively with a similar toolchain: 
gcc-3.2.3,glibc-2.3.2,binutils-2.15 I get the same errors.

I know my toolchain is not BAD as I can perfectly build and execute the
resulting kernel; however, it may not be compatible with they way things
are done in u-boot. 

Perhaps Wolfgang or the people at DENX could put some input into their
toolchain version(s). I suppose I should just download it and check it out.
But I would really like to be in control of my own toolchain.

Cheers,

    -=chris

-- 
                  Chris Jones | Software Developer | Sutus, Inc.
                 t: +1.604.987.8866 x 2204 | e: cjones at sutus.com




More information about the U-Boot mailing list