From: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
To: linux-sh@vger.kernel.org
Subject: Re: upgrading u-boot from linux for SH7785LCR board
Date: Sun, 04 Jul 2010 23:01:29 +0000 [thread overview]
Message-ID: <4C3112C9.8060704@renesas.com> (raw)
In-Reply-To: <4C30CEC3.1050003@naoi.ca>
Hi, Bill.
Bill Traynor wrote:
> I've compiled and tested u-boot from git for the 7785lcr board. I'd
> like to write the u-boot.bin to flash but do not have a JTAG to be able
> to recover if the write fails.
>
> Given the MTD layout:
> dev: size erasesize name
> mtd0: 00080000 00040000 "loader"
> mtd1: 00080000 00040000 "bootenv"
> mtd2: 00400000 00040000 "kernel"
> mtd3: 03b00000 00040000 "data"
>
> Is it reasonable to do the following:
>
> flash_erase /dev/mtd[0]
> dd if=/tmp/u-boot.bin of=/dev/mtd0 bs\x128k conv=sync
I think that you shoud use flashcp command if you use flash_erase.
This command is in mtd-utils ( same flash_erase).
Best regards,
Nobuhiro
next prev parent reply other threads:[~2010-07-04 23:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-04 18:11 upgrading u-boot from linux for SH7785LCR board Bill Traynor
2010-07-04 21:24 ` Mike Frysinger
2010-07-04 23:01 ` Nobuhiro Iwamatsu [this message]
2010-07-05 3:29 ` Bill Traynor
2010-07-05 4:37 ` Mike Frysinger
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=4C3112C9.8060704@renesas.com \
--to=nobuhiro.iwamatsu.yj@renesas.com \
--cc=linux-sh@vger.kernel.org \
/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