[U-Boot-Users] Advice about a problem compiling with alternative toolchain

Wolfgang Denk wd at denx.de
Tue Dec 14 20:24:40 CET 2004

In message <41BF392A.908 at wiline.com> you wrote:

[33 lines of unrelated quote deleted]

Please quote only those parts of the  message  you  really  need  for

> I'm compiling using the settings for the a3000 (make A3000_config). The 

The A3000 board builds fine without any  errors;  and  the  resulting
images has a reasonable size:

	-> MAKEALL A3000
	Configuring for A3000 board...
	   text    data     bss     dec     hex filename
	 119432    7648   25616  152696   25478 u-boot
	-> ls -lh u-boot.bin
	-rwxr-xr-x    1 wd       users        127K Dec 14 20:19 u-boot.bin

> board I'm using is similar, there were some slight modifications to make 

Then double-check your "slight" modifications.

> it work.  But, I'm running into the same issue when I use the "vanilla" 
> 1.1.1 release of u-boot.

Except for a harmless warning (by GCC-3.3.3) U-Boot-1.1.1 builds just
fine, too:

	-> MAKEALL A3000
	Configuring for A3000 board...
	cmd_bootm.c: In function `do_bootm':
	cmd_bootm.c:329: warning: dereferencing type-punned pointer will break strict-aliasing rules
	   text    data     bss     dec     hex filename
	 119296    7648   25616  152560   253f0 u-boot
	-> ls -lh u-boot.bin
	-rwxr-xr-x    1 wd       users        127K Dec 14 20:22 u-boot.bin

> Changing the TEXT_BASE allowed me to compile but I had to set it to a 
> very low address. Initially it was set to 0xFFF00000, I was able to 
> compile when I changed it to 0xF00000. The resulting u-boot.bin was over 
> 15MB in size which can't be right.

Indeed. Check your "slight" modifications.

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
Time is fluid ... like a river with currents, eddies, backwash.
	-- Spock, "The City on the Edge of Forever", stardate 3134.0

More information about the U-Boot mailing list