public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "hacklu.uboot" <hacklu.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] is any bug in cp?
Date: Fri, 15 Apr 2011 17:15:28 +0800	[thread overview]
Message-ID: <201104151715238470584@gmail.com> (raw)
In-Reply-To: 20110415084445.A7470151F83@gemini.denx.de

 em..
how linux does that?
does linux read the data to mem first before it write to the same bank of a nor flash?

thanks much~

------------------				 
hacklu.uboot
2011-04-15

-------------------------------------------------------------
????????????Wolfgang Denk
???????????????2011-04-15 16:44:47
????????????hacklu.uboot
?????????u-boot
?????????Re: [U-Boot] is any bug in cp?

Dear "hacklu.uboot",

In message <201104151401034442433@gmail.com> you wrote:
> 
> there is some bugs when I cp to flash like this:
> cp.b addr1 addr2 0x100
> 
> when the two addr in the same bank of a flash. it go wrongs
> 
> finally the date of addr2 is  0x8080808080...
> 
> cp to another bank of flash is work correctly.
> cp from mem to flash or from flash to mem also correctly.

You cannot copy directly within the same bank of NOR flash.
While in programming mod, you cannot read any user data from that
device.  This is a "feature" of how NOR flash works and no bug in the
code.  Just don't do it.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There are two ways of constructing a software design. One way  is  to
make  it  so  simple that there are obviously no deficiencies and the
other is to make it so complicated that there are  no  obvious  defi-
ciencies.                             - Charles Anthony Richard Hoare

  reply	other threads:[~2011-04-15  9:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3.1302775202.27468.u-boot@lists.denx.de>
2011-04-15  6:01 ` [U-Boot] is any bug in cp? hacklu.uboot
2011-04-15  8:44   ` Wolfgang Denk
2011-04-15  9:15     ` hacklu.uboot [this message]
2011-04-15 10:21       ` Wolfgang Denk
2011-04-18  1:49         ` hacklu.uboot
2011-04-15 13:58   ` Charles Krinke
2011-04-18  1:47     ` hacklu.uboot

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=201104151715238470584@gmail.com \
    --to=hacklu.uboot@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox