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] Download the u-boot from flash back to PC
Date: Wed, 08 Jun 2011 15:43:36 +0200	[thread overview]
Message-ID: <m2tyc04ewn.fsf@ohwell.denx.de> (raw)
In-Reply-To: <BANLkTimorJsgB612oHdcfgi7g=c6WXmhdw@mail.gmail.com> (Rishi Dhupar's message of "Wed, 8 Jun 2011 09:25:42 -0400")

Hi Rishi,

> I have a board which has a version of u-boot on it that I would like
> to save before overwriting. I did not flash this version so I do not
> have the source code for it.
>
> I am trying to figure out is there away to essentially do a 'tftp get'
> of the u-boot.bin that was originally written to flash.  I do not see
> any methods to "read" data from U-boot back to the PC.  Is there any
> method to do this?

The only thing that I know of is CONFIG_CMD_SAVES which does a "save S
record over serial line" (check common/cmd_load.c).  It is likely that
your binary U-Boot does noe have this feature though (it is not in
config_cmd_default, so the board maintainer has to define it
explicitely).

When I needed to do this, I could either attach a BDI3000 which can do a
tftp put (remember to create the file on the host first, otherwise it
will fail silently!), or I used a linux kernel that was able to read
U-Boot through the mtd interface.

If you decide to implement a "tftpput" command, I for one would find
this a very nice addition indeed ;)

Cheers
  Detlev

-- 
Question    : If you were redesigning UNIX, what would you do differently?
Ken Thompson: I'd spell creat with an e.
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

  reply	other threads:[~2011-06-08 13:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08 13:25 [U-Boot] Download the u-boot from flash back to PC Rishi Dhupar
2011-06-08 13:43 ` Detlev Zundel [this message]
2011-06-08 16:53   ` Mike Frysinger
2011-06-08 21:42     ` Detlev Zundel
2011-06-08 22:11       ` Mike Frysinger
2011-06-08 15:35 ` Jason

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=m2tyc04ewn.fsf@ohwell.denx.de \
    --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.