All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Unable to debug UBOOT
@ 2009-05-08  6:12 Vivek DALAL
  2009-05-08  6:15 ` Aggrwal Poonam-B10812
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Vivek DALAL @ 2009-05-08  6:12 UTC (permalink / raw)
  To: u-boot

Hello guys

I am newbie in bootloader.
I am trying to port latest uboot on omap2430(poseidon board). Currently
support for omap2430 is not present in uboot; so I made changes accordingly.

I am putting it in RAM using Trace 32 debugger. But unable to get prompt.
Code hangs but giving message *"DRAM: 64MB" ...*
Please suggest me different ways of debugging uboot.
I tried using Trace 32(LAUTERBACH JTAG debugger). Loaded uboot elf
file(u-boot) into RAM. I am getting symbols and function names. But unable
to put breakpoints. Also C code is not visible even after changing mode.

Please suggest me ways to debug uboot.

-- 
Cheers

Vivek Dalal
=== He who angers you conquers you ===

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

* [U-Boot] Unable to debug UBOOT
  2009-05-08  6:12 [U-Boot] Unable to debug UBOOT Vivek DALAL
@ 2009-05-08  6:15 ` Aggrwal Poonam-B10812
  2009-05-08 15:01   ` alfred steele
  2009-05-08  6:59 ` Nishanth Menon
  2009-05-08  8:44 ` Wolfgang Denk
  2 siblings, 1 reply; 6+ messages in thread
From: Aggrwal Poonam-B10812 @ 2009-05-08  6:15 UTC (permalink / raw)
  To: u-boot

 

> -----Original Message-----
> From: u-boot-bounces at lists.denx.de 
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Vivek DALAL
> Sent: Friday, May 08, 2009 11:43 AM
> To: U-Boot at lists.denx.de
> Subject: [U-Boot] Unable to debug UBOOT
> 
> Hello guys
> 
> I am newbie in bootloader.
> I am trying to port latest uboot on omap2430(poseidon board). 
> Currently support for omap2430 is not present in uboot; so I 
> made changes accordingly.
> 
> I am putting it in RAM using Trace 32 debugger. But unable to 
> get prompt.
> Code hangs but giving message *"DRAM: 64MB" ...* Please 

Looks like you are reinitializing the DDR , when u are already executing
from it, you may want to comment out that code, which initializes DDR.
> suggest me different ways of debugging uboot.
> I tried using Trace 32(LAUTERBACH JTAG debugger). Loaded uboot elf
> file(u-boot) into RAM. I am getting symbols and function 
> names. But unable to put breakpoints. Also C code is not 
> visible even after changing mode.
> 
> Please suggest me ways to debug uboot.
> 
> --
> Cheers
> 
> Vivek Dalal
> === He who angers you conquers you ===
> 

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

* [U-Boot] Unable to debug UBOOT
  2009-05-08  6:12 [U-Boot] Unable to debug UBOOT Vivek DALAL
  2009-05-08  6:15 ` Aggrwal Poonam-B10812
@ 2009-05-08  6:59 ` Nishanth Menon
  2009-05-08  8:44 ` Wolfgang Denk
  2 siblings, 0 replies; 6+ messages in thread
From: Nishanth Menon @ 2009-05-08  6:59 UTC (permalink / raw)
  To: u-boot

Vivek DALAL said the following on 05/08/2009 01:12 AM:
> I am newbie in bootloader.
> I am trying to port latest uboot on omap2430(poseidon board). Currently
> support for omap2430 is not present in uboot; so I made changes accordingly.
>
>   
would be nice to see your patches when you are ready :).. it might even
pave way to get sdp2430 support in place..
> I am putting it in RAM using Trace 32 debugger. But unable to get prompt.
> Code hangs but giving message *"DRAM: 64MB" ...*
> Please suggest me different ways of debugging uboot.
> I tried using Trace 32(LAUTERBACH JTAG debugger). Loaded uboot elf
> file(u-boot) into RAM. I am getting symbols and function names. But unable
> to put breakpoints. Also C code is not visible even after changing mode.
>
> Please suggest me ways to debug uboot
I would recommend you start with reading Lauterbach user manual(hitting
F1 key when trace32 runs will help). IMHO, Lauterbach will be the best
tool to go ahead and use esp for OMAP2-3 processors.
When you read the user manual, pay close attention to 'd.load.elf ...
/strippart /lowerpath' option also s.path..

Regards,
Nishanth Menon

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

* [U-Boot] Unable to debug UBOOT
  2009-05-08  6:12 [U-Boot] Unable to debug UBOOT Vivek DALAL
  2009-05-08  6:15 ` Aggrwal Poonam-B10812
  2009-05-08  6:59 ` Nishanth Menon
@ 2009-05-08  8:44 ` Wolfgang Denk
  2 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2009-05-08  8:44 UTC (permalink / raw)
  To: u-boot

Dear Vivek DALAL,

In message <7c7ce0c60905072312i74ad8bb8vbc8693e829fc4978@mail.gmail.com> you wrote:
>
> I am putting it in RAM using Trace 32 debugger. But unable to get prompt.
> Code hangs but giving message *"DRAM: 64MB" ...*

You are running into exactly the type of problems tha cause us to add
the FAQ entry:

http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM

The summary of this is: unless you know *exactly* what you are doing
(which seems not to be the case for you), you better don't attempt
doing this.

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
An optimist believes we live in the best world possible; a  pessimist
fears this is true.

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

* [U-Boot] Unable to debug UBOOT
  2009-05-08  6:15 ` Aggrwal Poonam-B10812
@ 2009-05-08 15:01   ` alfred steele
  2009-05-09  5:21     ` Vivek DALAL
  0 siblings, 1 reply; 6+ messages in thread
From: alfred steele @ 2009-05-08 15:01 UTC (permalink / raw)
  To: u-boot

> Looks like you are reinitializing the DDR , when u are already executing
> from it, you may want to comment out that code, which initializes DDR.
To add to that, if you have cloned code for an already existing
platform config file, See if the "CONFIG_SKIP_RELOCATE_UBOOT" and
"CONFIG_SKIP_LOWLEVEL_INIT" flags in your config file(include/configs)
are enabled. If these flags are not enabled, you might need to enable
them,s o that the early initialization code is skipped.

Thanks.

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

* [U-Boot] Unable to debug UBOOT
  2009-05-08 15:01   ` alfred steele
@ 2009-05-09  5:21     ` Vivek DALAL
  0 siblings, 0 replies; 6+ messages in thread
From: Vivek DALAL @ 2009-05-09  5:21 UTC (permalink / raw)
  To: u-boot

Thanks for your help guys.
I will looking into all the pointers you guys had given...

thanks alot

Vivek Dalal
On Fri, May 8, 2009 at 8:31 PM, alfred steele <alfred.jaquez@gmail.com>wrote:

> > Looks like you are reinitializing the DDR , when u are already executing
> > from it, you may want to comment out that code, which initializes DDR.
> To add to that, if you have cloned code for an already existing
> platform config file, See if the "CONFIG_SKIP_RELOCATE_UBOOT" and
> "CONFIG_SKIP_LOWLEVEL_INIT" flags in your config file(include/configs)
> are enabled. If these flags are not enabled, you might need to enable
> them,s o that the early initialization code is skipped.
>
> Thanks.
>

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

end of thread, other threads:[~2009-05-09  5:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-08  6:12 [U-Boot] Unable to debug UBOOT Vivek DALAL
2009-05-08  6:15 ` Aggrwal Poonam-B10812
2009-05-08 15:01   ` alfred steele
2009-05-09  5:21     ` Vivek DALAL
2009-05-08  6:59 ` Nishanth Menon
2009-05-08  8:44 ` 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.