All of lore.kernel.org
 help / color / mirror / Atom feed
From: LanceZ <Lance.Zhang@taihootech.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] debug uboot from ram for x86 board
Date: Wed, 24 Dec 2008 21:52:58 -0800 (PST)	[thread overview]
Message-ID: <21165593.post@talk.nabble.com> (raw)


Hi there,

I am trying to add some codes(driver) to u boot, but I do not have jtag or
other debugging tools. what I can use are :serial port/ethernet, so I can
use tftp and loadb to download the bin to ram.

Currently, I tried to use "loadb" to load the sample(hello_world) to ram and
then execute it, I always failed .here are the output for my testing.

I rename hello_world to rt61test
then rebuild all uboot
use nm command get follows:

00040000 T rt61test
00040098 T dummy

then start my board
In:    serial
Out:   serial
Err:   serial
Net:   i82559#0
boot > loadb 0x40000
## Ready for binary (kermit) download to 0x00040000 at 115200 bps...
## Start Addr      = 0x00040000
boot > go 40000
## Starting application at 0x00040000 ...
Invalid Instruction at 0000:00000000

I also tried other address for loadb(loadb 0x1000000)

I got the same error result

 Appreciate anyone can give me a direction or explain the error

Thanks
-- 
View this message in context: http://www.nabble.com/debug-uboot-from-ram-for-x86-board-tp21165593p21165593.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

             reply	other threads:[~2008-12-25  5:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-25  5:52 LanceZ [this message]
2008-12-25 11:36 ` [U-Boot] debug uboot from ram for x86 board Graeme Russ
2008-12-26  5:34   ` Lance Zhang
  -- strict thread matches above, loose matches on Subject: below --
2008-12-26  6:45 Lance Zhang

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=21165593.post@talk.nabble.com \
    --to=lance.zhang@taihootech.com \
    --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.