public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] help starting
@ 2004-12-01  6:44 Ilan Finci
  2004-12-01  7:22 ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: Ilan Finci @ 2004-12-01  6:44 UTC (permalink / raw)
  To: u-boot

Hi,
I'm totally new to the world of porting U-Boot (or other boot loaders) 
to new hardware.

I have an older version of U-Boot (0.4.5) that was ported to 2 custom 
made boards we have, based on the MPC5200 CPU, and the IceCube 
evaluation board. Both has the same U-Boot up and running.

We now have a new board, base on the same design, but with some 
modification.

I have BDI2000 up and running, and I can access the board's memory, 
flash, cpu registers etc.

When I try to run the same U-boot, it, as can be expected, fails to run, 
and stop very soon after startup (no message comes out on the serial 
console).

I've tried to connect with GDB to debug, and I manage to do it, then 
step few commands, and I get SIGSTOP. To make sure that this is not a 
problem of the new board, I've tried the same with a working board, and 
the U-Boot fails at the same place (right after the starting point). On 
the other hand, if I don't try to do a step by step debugging, but give 
a "cont" command, the U-boot (on the older board) does work.

So I guess I have a basic problem in understanding how to debug the 
U-Boot with GDB.

Any help (either specific, or pointers to guides), will be great.

Thanks,
Ilan

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

* [U-Boot-Users] help starting
  2004-12-01  6:44 [U-Boot-Users] help starting Ilan Finci
@ 2004-12-01  7:22 ` Wolfgang Denk
  2004-12-01  9:06   ` Ilan Finci
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2004-12-01  7:22 UTC (permalink / raw)
  To: u-boot

In message <41AD683B.9080105@finci.org> you wrote:
> 
> So I guess I have a basic problem in understanding how to debug the 
> U-Boot with GDB.

Did you read the "Debugging" section in the manual?

See http://www.denx.de/twiki/bin/view/DULG/DebuggingUBoot

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
Uuencode/uudecode is just a mickey-mouse archiver.
                       - Doug Gwyn in <1995Mar4.011139.22820@arl.mil>

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

* [U-Boot-Users] help starting
  2004-12-01  7:22 ` Wolfgang Denk
@ 2004-12-01  9:06   ` Ilan Finci
  2004-12-01 11:13     ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: Ilan Finci @ 2004-12-01  9:06 UTC (permalink / raw)
  To: u-boot

Hi,
Yes I've read it, but when I try this (on the older board, where the 
u-boot is working), the gdb doesn't stop at that function, just continue 
(and over the serial terminal, I see the normal u-boot messages, and 
later auto booting into linux).

Here is the screen dump of what I've done:

U-Boot $ powerpc-linux-gdb u-boot
GNU gdb 5.3
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=i686-pc-linux-gnu 
--target=powerpc-linux"...
(gdb) target remote jtag2:2001
Remote debugging using jtag2:2001
_start () at /homes/ifinci/secure/work/SeeQNet/U-Boot/cpu/mpc5xxx/start.S:91
91              li      r21, BOOTFLAG_COLD      /* Normal Power-On 
        */
(gdb) b cpu_init_f
Breakpoint 1 at 0xfff03a34: file cpu_init.c, line 53.
(gdb) c
Continuing.


and I don't get the GDB prompt back unless I press CTRL+C.

Any idea?

Thanks,
Ilan

on 12/01/04 09:22 Wolfgang Denk said the following:
> In message <41AD683B.9080105@finci.org> you wrote:
> 
>>So I guess I have a basic problem in understanding how to debug the 
>>U-Boot with GDB.
> 
> 
> Did you read the "Debugging" section in the manual?
> 
> See http://www.denx.de/twiki/bin/view/DULG/DebuggingUBoot
> 
> Best regards,
> 
> Wolfgang Denk
> 

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

* [U-Boot-Users] help starting
  2004-12-01  9:06   ` Ilan Finci
@ 2004-12-01 11:13     ` Wolfgang Denk
  2004-12-01 11:20       ` Ilan Finci
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2004-12-01 11:13 UTC (permalink / raw)
  To: u-boot

In message <41AD89B1.2020904@finci.org> you wrote:
> 
> Yes I've read it, but when I try this (on the older board, where the 
> u-boot is working), the gdb doesn't stop at that function, just continue 
> (and over the serial terminal, I see the normal u-boot messages, and 
> later auto booting into linux).

Is your BDI is configured to use hardware breakpoints?

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
"Open the pod bay doors, HAL."                    - Dave Bowman, 2001

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

* [U-Boot-Users] help starting
  2004-12-01 11:13     ` Wolfgang Denk
@ 2004-12-01 11:20       ` Ilan Finci
  0 siblings, 0 replies; 8+ messages in thread
From: Ilan Finci @ 2004-12-01 11:20 UTC (permalink / raw)
  To: u-boot

Apparently not :(

Setting it to use hardware BP, did the trick.

Thanks,
Ilan

on 12/01/04 13:13 Wolfgang Denk said the following:
> In message <41AD89B1.2020904@finci.org> you wrote:
> 
>>Yes I've read it, but when I try this (on the older board, where the 
>>u-boot is working), the gdb doesn't stop at that function, just continue 
>>(and over the serial terminal, I see the normal u-boot messages, and 
>>later auto booting into linux).
> 
> 
> Is your BDI is configured to use hardware breakpoints?
> 
> Best regards,
> 
> Wolfgang Denk
> 

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

* [U-Boot-Users] help starting
@ 2004-12-02  8:48 Sam Song
  2004-12-02  9:47 ` Wolfgang Denk
  0 siblings, 1 reply; 8+ messages in thread
From: Sam Song @ 2004-12-02  8:48 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk <wd@denx.de> wrote:
> 
> Is your BDI is configured to use hardware
breakpoints?

Well, I'd like to cut in here. A little out of
topic:-)

Does BDI2000 support Interrupt Service Routine debug?
How about exception?

Thanks in advance,

=====
Best regards,

Sam

_________________________________________________________
Do You Yahoo!?
150??MP3????????????
http://music.yisou.com/
???????????????????
http://image.yisou.com
1G??1000???????????
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

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

* [U-Boot-Users] help starting
  2004-12-02  8:48 Sam Song
@ 2004-12-02  9:47 ` Wolfgang Denk
  2004-12-02 13:02   ` Sam Song
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2004-12-02  9:47 UTC (permalink / raw)
  To: u-boot

In message <20041202084804.96333.qmail@web15602.mail.cnb.yahoo.com> you wrote:
>
> Does BDI2000 support Interrupt Service Routine debug?

Yes.

> How about exception?

Yes with some limitations.

Is it just my paranoid suspicion or did you really forget to read the
FAQ before postting? See http://www.denx.de/twiki/bin/view/DULG/FaqBDI2000

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
"I think they're going to take all this money that we  spend  now  on
war and death --"                   "And make them spend it on life."
	-- Edith Keeler and Kirk, "The City on the Edge of Forever",
	   stardate unknown.

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

* [U-Boot-Users] help starting
  2004-12-02  9:47 ` Wolfgang Denk
@ 2004-12-02 13:02   ` Sam Song
  0 siblings, 0 replies; 8+ messages in thread
From: Sam Song @ 2004-12-02 13:02 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk <wd@denx.de> ????
> > Does BDI2000 support Interrupt Service Routine
> debug?
> 
> Yes.
> 
> > How about exception?
> 
> Yes with some limitations.
> 
> Is it just my paranoid suspicion or did you really
> forget to read the FAQ before postting? See
> http://www.denx.de/twiki/bin/view/DULG/FaqBDI2000

Oops, I forgot the post etiquette. Apologize, no more
next time.

Thank you very much,

=====
Best regards,

Sam

_________________________________________________________
Do You Yahoo!?
150??MP3????????????
http://music.yisou.com/
???????????????????
http://image.yisou.com
1G??1000???????????
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

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

end of thread, other threads:[~2004-12-02 13:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-01  6:44 [U-Boot-Users] help starting Ilan Finci
2004-12-01  7:22 ` Wolfgang Denk
2004-12-01  9:06   ` Ilan Finci
2004-12-01 11:13     ` Wolfgang Denk
2004-12-01 11:20       ` Ilan Finci
  -- strict thread matches above, loose matches on Subject: below --
2004-12-02  8:48 Sam Song
2004-12-02  9:47 ` Wolfgang Denk
2004-12-02 13:02   ` Sam Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox