All of lore.kernel.org
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: emulate u-boot in gdb
Date: Sat, 30 Oct 2004 16:15:15 +0200	[thread overview]
Message-ID: <87k6t89tsc.fsf@deepthought.outer.space.org> (raw)
In-Reply-To: <20041027012643.95630.qmail@web60003.mail.yahoo.com> (Luc Verbist's message of "Tue, 26 Oct 2004 18:26:43 -0700 (PDT)")

Hi Luc,

> I am looking into SkyEye and busy in creating an extension for
> potentially ipaq (cheap finished hardware to play with for embedded
> software/ui development).
>
> How can I debug a boot loader such as u-boot in a emulator/simulator
> environment ?

Good question.  I have only thought for a short while about this
question, but I think in such an environment, you need only small
pieces of U-Boot.  Of course you don't have real hardware to setup in
a debugger (so I guess, but I have never used one) things like
setting up a memory controller etc. will probably not work without
emulating all of the hardware of a "real system" - and I guess this is
simply not possible to have emulators for all hardware components.

So what you would need for such an environment would be U-Boot
stripped from all the hardware inits which is probably a major surgery
on the sources.

Try asking on the U-Boot mailing list (I cc'ed the list) as there are
_very probably_ more competent people in this field.

> Is it possible to debug u-boot in a arm-linux-gdb environment ? If I
> assign this to memory 0x000000 and put 'set $pc =0' should that work
> ? ... it didn't when I tried

It is of course possible to debug U-Boot on ARM systems - we did ports
for some ARM based boards - but again putting U-Boot at address 0 is a
much bigger question.  What board config did you use?  What address
does this image think it runs from?  And what address was U-Boot
linked for?  You have to load the U-Boot image there - but again I
think the U-Boot hardware inits will cause you grief.

> I searched the web but could not find any good result. Can give me
> some direction ?

I hope I did ;)

Cheers
  Detlev

-- 
;; Self-replicator in ELisp
((lambda (l) (prin1-to-string (list l (list (quote quote) l))))
 (quote (lambda (l) (prin1-to-string (list l (list (quote quote) l))))))

           reply	other threads:[~2004-10-30 14:15 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20041027012643.95630.qmail@web60003.mail.yahoo.com>]

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=87k6t89tsc.fsf@deepthought.outer.space.org \
    --to=dzu@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 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.