All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Debugging u-boot
@ 2011-08-30 11:59 Mirko Banchi
  2011-08-30 12:09 ` Stefano Babic
  2011-08-30 12:55 ` Wolfgang Denk
  0 siblings, 2 replies; 9+ messages in thread
From: Mirko Banchi @ 2011-08-30 11:59 UTC (permalink / raw)
  To: u-boot

Hi all, could someone write briefly the steps needed to debug u-boot with BDI2000? I can-t find documentation about it. On-line docs specify only how to proceed with gdb after that the host bdi is up and configured.

Thank you all!

Mirko

--
Mirko Banchi

e-mail:    mk.banchi at gmail.com
id-jabber: mk.banchi at jabber.org

PGP key fingerprint:

308F BFB1 4E67 2522 C88E 
DC69 7631 52ED 32A5 6456

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [U-Boot] Debugging u-boot
@ 2014-10-07  6:30 Kantanu Kumar Mohapatra
  0 siblings, 0 replies; 9+ messages in thread
From: Kantanu Kumar Mohapatra @ 2014-10-07  6:30 UTC (permalink / raw)
  To: u-boot

Hi

In reply to this, can anyone please suggest me, how to debug the
fw_printenv code in u-boot?
I am using buildroot-2014.02, which used uboot-tools-2014.01. But I am
having few custom changes in uboot-2010.03, those I want to use, in
tools-2014.01 I can see as of now, the code fails on fw_printenv().

Thanks,
Kantanu

Dear Kantanu,

In message <
20141002235515.0f6337076cc849064921372b9de1c389.ce86d191f7.mailapi@email10.secureserver.net>
you wrote:
>
> I am Kantanu, working for U-Boot related stuff as a freelancer. Can
> you please suggest how to see the u-boot logs. I am using syslog to
> see the logs, but how to get these u-boot stderr logs to syslog?

It is always best to ask such questions on the U-Boot mailing list.

U-Boot does not support a file concept, and thus no file redirection
either. So there is no easy way to "redirect" console output to a log
buffer. You would have to implement such a redirecting driver.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"What if" is a trademark of Hewlett Packard, so stop using it in your
sentences without permission, or risk being sued.

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [U-Boot] Debugging u-boot
@ 2010-03-11 14:48 Bjørnar Syverstad
  2010-03-11 15:41 ` Wolfgang Denk
  0 siblings, 1 reply; 9+ messages in thread
From: Bjørnar Syverstad @ 2010-03-11 14:48 UTC (permalink / raw)
  To: u-boot

Hello,
I am trying to debug the u-boot with help of gdb + eclipse. Useing the phy3250_config.

The problem is that when debugging, the listed source code seems to be out of sync.
The debugger pointer in the source code, seems not to point to the correct source code.

The assembler windows shows typical this:

<source line is not available>
0x00013f0c <phy3250_get_board_info>:     ldr    r1, [pc, #480]   ; 0x140f4 <phy3250_get_board_info+488>
0x00013f14 <phy3250_get_board_info+8>:   ldr    r3, [r1, #120]                ; 0x78
0x00013f1c <phy3250_get_board_info+16>:  orr    r3, r3, #1
0x00013f20 <phy3250_get_board_info+20>:  str    r3, [r1, #120]               ; 0x78

It does miss the code in "<source line is not available>"

It is the same problem useing only gdb.

So it seems to me that some debug information is missing in the elf file u-boot.

I did look at u-boot.lds and did not find any debug sections.
I do find some debug information on the u-boot elf file in readelf/objdump.

Bellow is an output of some part of the compiling. And there it have -g and -Os flags.....

arm-none-linux-gnueabi-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -fno-strict-aliasing  -fno-common -ffixed-r8  -D__KERNEL__ -DTEXT_BASE=0x00000000 -I/opt/ltib/ltib-10-1-1a-sv/rpm/BUILD/u-boot-2009.03-rc1/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv5te -mabi=aapcs-linux -mno-thumb-interwork -march=armv5te   -Wall -Wstrict-prototypes -fno-stack-protector -c -o lowlevelsys_init.o lowlevelsys_init.c

Is there something parameters to make to add more debug information?

Best Regards
Bj?rnar Syverstad

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-10-07  6:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30 11:59 [U-Boot] Debugging u-boot Mirko Banchi
2011-08-30 12:09 ` Stefano Babic
2011-08-30 12:14   ` Mirko Banchi
2011-08-30 12:55 ` Wolfgang Denk
2011-08-30 13:59   ` Mirko Banchi
2011-08-30 14:13     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2014-10-07  6:30 Kantanu Kumar Mohapatra
2010-03-11 14:48 Bjørnar Syverstad
2010-03-11 15:41 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.