Skip to contentSkip to conversation

building u-boot 1.1.3 for PPChameleon

U-Boot-Users massoud sabzali 2 participants 2 messages Mar 14, 2006

lore
Share & tools
lore
#0 lore raw

Hi Everybody,

I'm trying to build the u-boot (version 1.1.3) for a PPC405 platform(PPChameleon board), but "make.exe" reports some error and warning messages like as are mentioned below. I've got such erros both in the cygwin and RedHat environment .
What is wrong with me?
any comments would be appreciated.

make[1]: Entering directory `/cygdrive/d/WIN_LINUX/u-boot/u-boot-1.1.3/examples'
gcc -g -Os -fPIC -ffixed-r14 -meabi -fno-strict-aliasing -D__KERNEL__ -DTEXT_
BASE=0xFFFC0000 -I/cygdrive/d/WIN_LINUX/u-boot/u-boot-1.1.3/include -fno-builtin
-ffreestanding -nostdinc -isystem /usr/lib/gcc/i686-pc-cygwin/3.4.4/include -pi
pe -DCONFIG_PPC -D__powerpc__ -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -Wa, -m405 -mcpu=405 -msoft-float -Wall -Wstrict-prototypes -c -o hello_world.o hello _world.c
-mcpu=' is deprecated. Use -mtune=' or '-march=' instead.
cc1: error: invalid option `eabi'
cc1: error: invalid option `string'
cc1: warning: unknown register name: r2
cc1: warning: unknown register name: r29
hello_world.c:1: warning: -fPIC ignored for target (all code is position indepen dent)
hello_world.c:1: error: bad value (405) for -mtune= switch /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as: unrecognize d option `-m405'
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/cygdrive/d/WIN_LINUX/u-boot/u-boot-1.1.3/examples'

---------------------------------
Yahoo! Travel
Find great deals to the top 10 hottest destinations!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060313/427f7719/attachment.htm

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

I'm trying to build the u-boot (version 1.1.3) for a PPC405 platform(PPChameleon board),

Why are you using old code and not the current version?

Quoted 3 lines

but "make.exe" reports some error and warning messages like as are mentioned below. I've got such erros both in the cygwin and RedHat environment .
What is wrong with me?

It seems you did not read the documentation (or ignored it).

Quoted 4 lines

any comments would be appreciated.

make[1]: Entering directory `/cygdrive/d/WIN_LINUX/u-boot/u-boot-1.1.3/examples'
gcc -g -Os -fPIC -ffixed-r14 -meabi -fno-strict-aliasing -D__KERNEL__ -DTEXT_

This does not look like a cross compiler to me. Did you really set CROSS_COMPILE as needed?

Quoted 3 lines

--0-1962479413-1142318416=:41139
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

And please never post HTML here!!!

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Vulcans believe peace should not depend on force.
	-- Amanda, "Journey to Babel", stardate 3842.3