public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG?
@ 2012-05-29  5:53 坚石
  2012-05-29 14:44 ` Marek Vasut
  2012-05-30 10:44 ` Wolfgang Denk
  0 siblings, 2 replies; 6+ messages in thread
From: 坚石 @ 2012-05-29  5:53 UTC (permalink / raw)
  To: u-boot

? ??I have found some tutorials to debug uboot an samsung 2440 and
6410 chip by JTAG .I also known I must write a init program or script
first .But I don't known to debug uboot on S5pv210 and write the init
DDR script.Anyone gives me a guide to establish the process.
   Thanks.

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

* [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG?
  2012-05-29  5:53 [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG? 坚石
@ 2012-05-29 14:44 ` Marek Vasut
       [not found]   ` <CAKM5mEhnUc0P1811GM9cXE+_etO9=k_KsswbOfWRjPBFdfu-NA@mail.gmail.com>
  2012-05-30 10:44 ` Wolfgang Denk
  1 sibling, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2012-05-29 14:44 UTC (permalink / raw)
  To: u-boot

Dear ??,

>     I have found some tutorials to debug uboot an samsung 2440 and
> 6410 chip by JTAG .I also known I must write a init program or script
> first .But I don't known to debug uboot on S5pv210 and write the init
> DDR script.Anyone gives me a guide to establish the process.
>    Thanks.

What does eclipse have to do with it?

What debugger do you use? OpenOCD/BDI/Peedi/... ?

Best regards,
Marek Vasut

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

* [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG?
       [not found]   ` <CAKM5mEhnUc0P1811GM9cXE+_etO9=k_KsswbOfWRjPBFdfu-NA@mail.gmail.com>
@ 2012-05-30 10:27     ` Marek Vasut
  0 siblings, 0 replies; 6+ messages in thread
From: Marek Vasut @ 2012-05-30 10:27 UTC (permalink / raw)
  To: u-boot

Dear ??,

>     Oh, I want to use eclipse to debug uboot .

All right, I have no experience with eclipse.

>     And the debugger is OpenOCD.

Ok, so you need to connect GDB backend to it somehow.

>     But I don't known how to establish the enviroment settings to
> uboot debugging.Because I should write some init script to close
> MMU,init DDR2,etc,then I can begin to connect the target.

Right, there's openocd TCL scripting stuff for that. You'd have to write the 
correct registers before starting u-boot on the target. I dunno if the DRAM is 
inited in U-Boot SPL or via some bootrom stuff on your platform. You can check 
the former by analyzing u-boot code a bit, the later by looking into your 
datasheet.

>     I used  1GB DDR2 and S5PV210 CPU in my paltform.
> Best regards,
> steven.
> 
> 2012/5/29 Marek Vasut <marek.vasut@gmail.com>:
> > Dear ??,
> > 
> >>     I have found some tutorials to debug uboot an samsung 2440 and
> >> 
> >> 6410 chip by JTAG .I also known I must write a init program or script
> >> first .But I don't known to debug uboot on S5pv210 and write the init
> >> DDR script.Anyone gives me a guide to establish the process.
> >> 
> >>    Thanks.
> > 
> > What does eclipse have to do with it?
> > 
> > What debugger do you use? OpenOCD/BDI/Peedi/... ?
> > 
> > Best regards,
> > Marek Vasut

Best regards,
Marek Vasut

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

* [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG?
  2012-05-29  5:53 [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG? 坚石
  2012-05-29 14:44 ` Marek Vasut
@ 2012-05-30 10:44 ` Wolfgang Denk
  2012-05-30 11:09   ` Marek Vasut
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2012-05-30 10:44 UTC (permalink / raw)
  To: u-boot

Dear =?GB2312?B?vOHKrw==?=,

In message <CAKM5mEg9rbi8yLsQfjawE74gh-eu9p7prSgP=TSX7P9RJiMQAw@mail.gmail.com> you wrote:
> ? ??I have found some tutorials to debug uboot an samsung 2440 and
> 6410 chip by JTAG .I also known I must write a init program or script
> first .But I don't known to debug uboot on S5pv210 and write the init
> DDR script.Anyone gives me a guide to establish the process.

Why would you need to initialize DDR though the JTAG debugger?

The common use of a JTAG debugger to debug U-Boot is _not_ to
initialize the system at all though JTAG, as this will be done by
U-Boot.  Just start the CPU out of reset.

Actually on quite a number of architectures U-Boot expects to find a
virgin CPU right out of reset, and any previous meddling with the
configuration may have unexpected (and usually adverse) effects.
Better don't do it.

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
Many aligators will be slain, but the swamp will remain.

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

* [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG?
  2012-05-30 10:44 ` Wolfgang Denk
@ 2012-05-30 11:09   ` Marek Vasut
  2012-05-30 14:02     ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2012-05-30 11:09 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Denk,

> Dear =?GB2312?B?vOHKrw==?=,
> 
> In message <CAKM5mEg9rbi8yLsQfjawE74gh-
eu9p7prSgP=TSX7P9RJiMQAw@mail.gmail.com> you wrote:
> >     I have found some tutorials to debug uboot an samsung 2440 and
> > 6410 chip by JTAG .I also known I must write a init program or script
> > first .But I don't known to debug uboot on S5pv210 and write the init
> > DDR script.Anyone gives me a guide to establish the process.
> 
> Why would you need to initialize DDR though the JTAG debugger?

The system has some BootROM, which does the DDR init. But without special header 
in the NAND, the DDR won't be inited ... that was my point about initing it via 
the debugger.

> The common use of a JTAG debugger to debug U-Boot is _not_ to
> initialize the system at all though JTAG, as this will be done by
> U-Boot.  Just start the CPU out of reset.
> 
> Actually on quite a number of architectures U-Boot expects to find a
> virgin CPU right out of reset, and any previous meddling with the
> configuration may have unexpected (and usually adverse) effects.
> Better don't do it.
> 
> Best regards,
> 
> Wolfgang Denk

Best regards,
Marek Vasut

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

* [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG?
  2012-05-30 11:09   ` Marek Vasut
@ 2012-05-30 14:02     ` Wolfgang Denk
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2012-05-30 14:02 UTC (permalink / raw)
  To: u-boot

Dear Marek Vasut,

In message <201205301309.23163.marex@denx.de> you wrote:
> 
> > Why would you need to initialize DDR though the JTAG debugger?
> 
> The system has some BootROM, which does the DDR init. But without special header 
> in the NAND, the DDR won't be inited ... that was my point about initing it via 
> the debugger.

That's actually a different topic - how to install a U-Bootimage to
NAND.  The question here was how to debug U-Boot, so it seems a valid
assumption that there is actually some code to debug.  And in this
case the JTAG debugger is supposed not to mess with the initialization,
but leave the system alone so it run the same code you actually want
to debug.

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
Be careful what you wish for. You never know who will be listening.
                                      - Terry Pratchett, _Soul Music_

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

end of thread, other threads:[~2012-05-30 14:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29  5:53 [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG? 坚石
2012-05-29 14:44 ` Marek Vasut
     [not found]   ` <CAKM5mEhnUc0P1811GM9cXE+_etO9=k_KsswbOfWRjPBFdfu-NA@mail.gmail.com>
2012-05-30 10:27     ` Marek Vasut
2012-05-30 10:44 ` Wolfgang Denk
2012-05-30 11:09   ` Marek Vasut
2012-05-30 14:02     ` Wolfgang Denk

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