[U-Boot-Users] Compiling a debug version of U-boot

Wolfgang Denk wd at denx.de
Mon May 23 17:48:12 CEST 2005


In message <d6ssmd$ea9$1 at sea.gmane.org> you wrote:
> What should I do to build a debug version of U-boot.
> I currently add ¨#define DEBUG¨ to the u-boot_1.1.2/include/configs/board_name.h file.
> Is it the right method?

Normally you would just enable  "-DDEBUG"  in  "config.mk";  in  some
cases  you  may  also  have  to  select a debug version of the linker
script (see the LDSCRIPT definition).  However,  this  enables  DEBUG
globally,  which  usually  is NOT a good idea. It may even crash your
system if you don't know exactly what you're doing.

It's usually better to just enable DEBUG in the specific files you're
interested in.

> I building U-boot for a custom board derived from the MPC8540ADS, and when I start gdb I
> get a strange warning. If someone has any idea it would help!
> 
> linuxcompiler:~/u-boot/u-boot_1.1.2$ ppc-linux-gdb u-boot
> Warning: Cannot initialize solib-absolute-prefix
> GNU gdb Yellow Dog Linux (5.2.1-4b_8)
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "--host=i386-redhat-linux --target=ppc-linux"...
> 0xfffffffc in ?? ()
> (gdb)

And which of that is a strange warning?

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
Q: What do you get when you cross an ethernet with an income statement?
A: A local area networth.




More information about the U-Boot mailing list