public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] How to debug uboot code on Samsung S5pv210 chip by eclipse and JTAG?
Date: Wed, 30 May 2012 12:27:07 +0200	[thread overview]
Message-ID: <201205301227.07730.marex@denx.de> (raw)
In-Reply-To: <CAKM5mEhnUc0P1811GM9cXE+_etO9=k_KsswbOfWRjPBFdfu-NA@mail.gmail.com>

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

  parent reply	other threads:[~2012-05-30 10:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2012-05-30 10:44 ` Wolfgang Denk
2012-05-30 11:09   ` Marek Vasut
2012-05-30 14:02     ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201205301227.07730.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox